フィルターのクリア

How to impose multiple inequality constraints on fmincon?

5 ビュー (過去 30 日間)
Shahab
Shahab 2012 年 9 月 13 日
How should I provide two inequality constraints as:
A1*x < b1
A2*x < b2
where the syntax is like this:
x = fmincon(fun,x0,A,b,Aeq,beq,lb,ub,nonlcon,options)
My mathematical constraint is this, actually:
-B < x(i+1)-x(i) < B

採用された回答

Titus Edelhofer
Titus Edelhofer 2012 年 9 月 13 日
Hi,
for the left hand side, you multiply by -1, i.e.,
-x(i+1) + x(i) <= B
And combining is easy:
A = [A1; A2];
b = [b1; b2];
Titus

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNonlinear Optimization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by