how to use abs as a constratint of fmincon
조회 수: 2 (최근 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!