how to use abs as a constratint of fmincon
1 回表示 (過去 30 日間)
古いコメントを表示
I want to solve optimization problem
the function, fmincon, I want to make a constraint as a form of 'abs'
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149709/image.png)
is there any way ??
0 件のコメント
回答 (1 件)
Matt J
2013 年 9 月 12 日
Instead of
abs(c(x))<=D
You can reformulate as two constraints
c(x)-D<=0
-c(x)-D<=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!