IMPOSING CONSTRAINTS in FMINCON

Hi to everyone, I would like to know if is it possible to insert a constraint on fmincon, that works on parameters, in the sense that from optimization that returns me 4 parameters (w,a,b,e), I want to constrain the parameter a to be less than b, a<b. What is the correct form to add this new constraint to the others A=[0 1 1 0] and b=[1].
Thank you in advance for any reply and suggestion.

 Accepted Answer

Torsten
Torsten on 4 Mar 2019
A=[0 1 1 0; 0 1 -1 0];
b=[1;0];

More Answers (0)

Products

Release

R2018b

Community Treasure Hunt

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

Start Hunting!