Linear and Non-Linear constraint Optimization

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.
Anosh Mevawalla
Anosh Mevawalla 2021 年 2 月 21 日
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 ExchangeNonlinear Optimization についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by