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!

 Réponse acceptée

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

Plus de réponses (0)

Produits

Version

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by