how to use abs as a constratint of fmincon
4 次查看(过去 30 天)
显示 更早的评论
I want to solve optimization problem
the function, fmincon, I want to make a constraint as a form of 'abs'
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!