nonlinear optimization with dynamic constraints
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Jakob Sievers
am 10 Mär. 2014
Kommentiert: Jakob Sievers
am 11 Mär. 2014
Hi all
Is it possible to assign a dynamic set of constraints when using an optimization routine such as fmincon? Specifically I am trying to solve a problem with 3 variables and I'd like to have the bounds on the last variable depend on the sign of the first variable.
edit: the bounds on the third variable are set in advance (bound_pos & bound_neg).
Cheers
Jakob
0 Kommentare
Akzeptierte Antwort
Alan Weiss
am 10 Mär. 2014
While you can program anything you like into a nonlinear constraint function, I recommend that you solve the problem twice, one with bounds set assuming that x(1) is positive, the other assuming that x(1) is negative. Then examine your solutions and take the one that is consistent with your assumption.
Alan Weiss
MATLAB mathematical toolbox documentation
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Nonlinear Optimization finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!