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!

 Akzeptierte Antwort

Alan Weiss
Alan Weiss am 23 Mai 2018
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

Weitere Antworten (0)

Produkte

Version

R2017a

Gefragt:

am 23 Mai 2018

Kommentiert:

am 23 Mai 2018

Community Treasure Hunt

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

Start Hunting!

Translated by