How can you change the bounds used by a solver with each iteration?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am using lsqnonlin to sovle a system of equations and my problem requires that I change the bounds I have restraining the solution with each iteration of the solver. I tried to define the bounds as global variables then recalculate the upper and lower bounds at the end of the function file that the sovler calls. This doesn't work as the bounds are recalculated at the end of each iteration but the solver just uses the original bounds it was given.
0 Kommentare
Antworten (1)
Torsten
am 8 Jan. 2022
Use "fmincon" instead of "lsqnonlin" and change the bounds in "nonlcon".
0 Kommentare
Siehe auch
Kategorien
Mehr zu Systems of Nonlinear Equations 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!