lower bound in fmincon
7 views (last 30 days)
Show older comments
Hi Dear all,
I have a question that in my programming, I have already setted the lower bound of every variable is zero. Why there is still some variables lower than zero?
Thank you
0 Comments
Accepted Answer
Matt J
on 9 May 2014
Edited: Matt J
on 9 May 2014
Only certain algorithms enforce bounds strictly (sqp, interior-point with 'AlwaysHonorConstraints' option active). Otherwise, they can be violated up to the TolCon tolerance parameter. Also, fmincon may have failed to find a solution. You need to check the exitflag output to see if it reported success.
4 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!