Toolbox optimization parameters inequalities constraints

Hello every body, I am using the optimization toolbox to find the optimal value of 2 parameters a1,a2. How to add the following inequality to the toolbox? can we add such constraints somewhere in the toolbox? (a1<=1+a2)
Every help would be appreciated. Thanks!

 採用された回答

Alan Weiss
Alan Weiss 2018 年 5 月 23 日

2 投票

a1 <= 1 + a2
is the same as
a1 - a2 <= 1
So, as described in Linear Constraints, set
A = [1 -1];
b = 1
in the appropriate A and b entry boxes in the Optimization app.
Alan Weiss
MATLAB mathematical toolbox documentation

その他の回答 (0 件)

カテゴリ

製品

リリース

R2017a

質問済み:

2018 年 5 月 23 日

コメント済み:

2018 年 5 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by