how to use abs as a constratint of fmincon

1 回表示 (過去 30 日間)
Hwang
Hwang 2013 年 9 月 12 日
I want to solve optimization problem
the function, fmincon, I want to make a constraint as a form of 'abs'
is there any way ??

回答 (1 件)

Matt J
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

カテゴリ

Help Center および File ExchangeNonlinear Optimization についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by