Implementation of limits on the optimization results
Mostra commenti meno recenti
Hi guys, I've want to optimize my problem using "fmincon". I want to put limits on the answers, let's say I want x1 > x2 and x2 > x3 in here:
x = fmincon(fun,x0,A,b,[],[],nonlincon)
how should I implement this kinda constraints?
I've set "A" to [-1 1 0;0 -1 1] and "b" to zeros(size(A,1),1) but I get infeasible results! Shouldn't it work?! Please help me out.
Best regards,
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Choose a Solver in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!