Why are non-linear equality constraints not fulfilled for a constrained optimization problem using "fmincon" and "GlobalSearch"
4 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2016 年 3 月 30 日
編集済み: MathWorks Support Team
2021 年 3 月 3 日
I am trying to optimize 13 variables to maximize a cost function (depends on solutions of a dynamic system) . I have 2 linear equality constraints and 2 linear inequality constraints and 1 non-linear constraint. When I use "GlobalSearch" and "fmincon" as local solver, the linear equality constraints are fulfilled but non-linear equality constraint is not fulfilled. Also, if I use "fmincon" alone, the result shows no feasible solution found.
I would like to know if I am putting the non-linear constraint correctly.
採用された回答
MathWorks Support Team
2021 年 3 月 3 日
編集済み: MathWorks Support Team
2021 年 3 月 3 日
This behavior is expected, the solver might not be able to satisfy the non-linear constraints completely for all use cases. If the difference is a small value from the bound, the 'TolCon' property can be lowered by doing the following when creating the optimization options:
>> opts = optimoptions(@fmincon,'TolCon',1e-8);
Alternatively you can also try using the alternative algorithms such as ('sqp', 'active-set', 'interior-point') for "fmincon" to see if the constraints are satisfied. More details are available in the following link:
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Nonlinear Optimization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!