How to check the FMINCON feasibility correctly

15 次查看(过去 30 天)
Dear all,
I havee been working with the fmincon function and I have a question regarding the feasibility. First, when the display of the iteration is activated a table appears in the command window. One of its columns referes to the feasibility. Can someone please clarify what does that value mean? it alway oscillates from low to very large values. But I do not know if the large value is better or not. Since, I am also considering the flags and it never shows that the problem is infeasible even when whose values oscillate. I am minimizing a function with quadratic and linear constraints.
Thanks in advance for your help,

回答(1 个)

Alan Weiss
Alan Weiss 2021-11-4
If you look at the documentation for fmincon iterative display, you see:
Feasibility: Maximum constraint violation, where satisfied inequality constraints count as 0
Generally, a nonlinear inequality constraint function is feasible at x if . If a constraint value is positive, well, that means that the point is infeasible.
The "flags" apply only at the end of the optimization. After the optimization is finished, if the maximum constraint violation is low enough relative to the initial value, then the final point is declared feasible.
Does that help?
Alan Weiss
MATLAB mathematical toolbox documentation
  1 个评论
Santiago Pulido Guerrero
Hello Alan,
Thank for youir soon and assertive comment.Now I can see why is not working.
Best regards,
Santiago

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Solver Outputs and Iterative Display 的更多信息

产品


版本

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by