lower bound in fmincon

7 views (last 30 days)
Wanying
Wanying on 9 May 2014
Commented: Matt J on 11 May 2014
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

Accepted Answer

Matt J
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
Wanying
Wanying on 11 May 2014
Hi,your answer is really really useful for me, Thank u so much. However, I have another question, what does it mean F-count which is shown in the command window. I know the meaning of it is the cumulative number of times Rosenbrock's function was evaluated. But, what kind of information I can get from it . Or how can i know soem information after knowing this value? Thank u
Matt J
Matt J on 11 May 2014
You should post that as a different question (and close this one).

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!