How to define if/else non linear constraint in an optimization problem
조회 수: 1 (최근 30일)
이전 댓글 표시
if x(1)+x(2)+x(3)= 0 then x(4)= 0
elseif 0<x(1)+x(2)+x(3)<20 then x(4)=10
elseif 20<x(1)+x(2)+x(3)<60 then x(4)=30
댓글 수: 0
답변 (1개)
Bruno Luong
2024년 3월 25일
편집: Bruno Luong
2024년 3월 25일
Simply solve three different optimization pbs with the three repectively constraints independently and ignore the two other, then select the best of the three solutions.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Quadratic Programming and Cone Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!