What does the exitflag "Change in X too small" imply for the optimum?
Show older comments
Dear all,
I am using fmincon to optimize a highly non-linear objective function (with constraints that are not twice differentiable). I use the interior-point algorithm. When I check my exitflags almost all of them are "2", meaning that "the change in X is too small". What does this imply for my optimum and what can I do to reach the optimum?
Given that my X are portfolio weights, it seems unreasonable/unrealistic to me to further reduce 'options.TolX', which is already very low at the default value (1e-6)...
Many thanks in advance for helping me out!
Accepted Answer
More Answers (1)
Alan Weiss
on 28 Jun 2012
0 votes
With nonsmooth constraint functions you will not be able to get an exit flag of 1. So in what way are you dissatisfied with your current result?
If you want to check that your result is good, take a look at the suggestions in Local Minimum Possible or even When the Solver Succeeds.
Alan Weiss
MATLAB mathematical toolbox documentation
Categories
Find more on Get Started with Optimization Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!