How can you change the bounds used by a solver with each iteration?

3 Ansichten (letzte 30 Tage)
Abigail Cafferty
Abigail Cafferty am 8 Jan. 2022
Beantwortet: Torsten am 8 Jan. 2022
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.

Antworten (1)

Torsten
Torsten am 8 Jan. 2022
Use "fmincon" instead of "lsqnonlin" and change the bounds in "nonlcon".

Kategorien

Mehr zu Systems of Nonlinear Equations finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by