Why are the upper and lower bounds violated during iterations with the LSQNONLIN function from the Optimization Toolbox?

1 view (last 30 days)
I am using lsqnonlin with the trust-region-reflective algorithm and the bounds are violated. Which is the problem?thank you!

Accepted Answer

Alan Weiss
Alan Weiss on 23 Apr 2015
Perhaps you didn't write your bounds as complete vector constraints. For example, if you have 15 decision variables and want a lower bound of 0 on each variable, then you have to specify
lb = zeros(15,1);
not
lb = 0;
Alan Weiss
MATLAB mathematical toolbox documentation

More Answers (0)

Categories

Find more on Problem-Based Optimization Setup in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!