how to use abs as a constratint of fmincon
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Matt J
am 12 Sep. 2013
Instead of
abs(c(x))<=D
You can reformulate as two constraints
c(x)-D<=0
-c(x)-D<=0
0 Kommentare
Siehe auch
Kategorien
Mehr zu Nonlinear Optimization finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!