unconstrained nonlinear optimization problem
이전 댓글 표시
Hello,
Kindly I have a question concerning nonlinear optimization problem. I have the following problem:

How I can define this objective function in matlab?
Thank you
댓글 수: 5
Why fmincon? You have no constraints. You probably should add some constraints, however, because the solution is currently not unique. Since the objective depends only on the differences
, adding any constant to any optimal
will produce another optimal solution.
Bjorn Gustavsson
2020년 10월 16일
Why isn't
for all i a solution? Shouldn't that make every term in the sum zero, and that ought to be the smallest possible value...
John D'Errico
2020년 10월 16일
편집: John D'Errico
2020년 10월 16일
And why would you bother to use fmincon to minimize a function that can be solved using multiple linear regression in the first place?
Not only are you wanting to use a Mack truck to carry a pea to Boston, but you never even needed any truck at all. A bycycle would suffice.
And as Bjorn points out, a trivial solution exists anyway.
Heborvi
2020년 10월 16일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!