I have a series of linear constarints and a series of non linear constraints.
I know nonlinconstr(x) deals with the non-linear constraints [c, ceq]. However can we implement series of non linear constraints instead of just one?

 채택된 답변

Matt J
Matt J 2019년 2월 16일
편집: Matt J 2019년 2월 16일

1 개 추천

Yes, c and ceq can be vectors (or matrices, or arrays of any dimension...).

댓글 수: 2

Matt J
Matt J 2019년 2월 16일
See also this example.
use the code i have provided here:
https://www.mathworks.com/matlabcentral/answers/751894-fmincon-nonlinear-constraints-not-being-optimized?s_tid=prof_contriblnk

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Nonlinear Optimization에 대해 자세히 알아보기

태그

질문:

2019년 2월 16일

댓글:

2021년 2월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by