How to check the FMINCON feasibility correctly

16 ビュー (過去 30 日間)
Santiago Pulido Guerrero
Santiago Pulido Guerrero 2021 年 11 月 4 日
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
Santiago Pulido Guerrero 2021 年 11 月 5 日
Hello Alan,
Thank for youir soon and assertive comment.Now I can see why is not working.
Best regards,
Santiago

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSolver 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