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!

 Accepted Answer

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

More Answers (0)

Products

Release

R2017a

Asked:

on 23 May 2018

Commented:

on 23 May 2018

Community Treasure Hunt

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

Start Hunting!