Why are the upper and lower bounds violated during iterations with the LSQNONLIN function from the Optimization Toolbox?
1 view (last 30 days)
Show older comments
Elena Katsagani
on 22 Apr 2015
Commented: Elena Katsagani
on 23 Apr 2015
I am using lsqnonlin with the trust-region-reflective algorithm and the bounds are violated. Which is the problem?thank you!
0 Comments
Accepted Answer
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)
See Also
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!