Nonlinear optimization problem: The final point is the initial point.

5 次查看(过去 30 天)
Hi there
I am trying to perform a non-linear optimization of a model (non-linear line with 3 input parameters) to a positive intensity map, to obtain the line for which the highest total intensity is reached (i.e.: best line fit to the intensity map). The problem works well using fminsearch but I would like to constrain one of the parameters to positive values only and thus started looking into fmincon. Here the problem fails to converge on the following grounds:
Optimization completed: The final point is the initial point.
The first-order optimality measure, 0.000000e+00, is less than
options.TolFun = 1.000000e-06.
Optimization Metric Options
relative first-order optimality = 0.00e+00 TolFun = 1e-06 (default)
I have tried looking into the list of recommendations given at the top here but am unable to find a solution.
Does anyone have any suggestions to me? I have tried running the problem unconstrained with fminunc, suspecting that it might at least yield the same solution as fminsearch, but it too suggests to use the starting point. What am I doing wrong?
Cheers
Jakob

采纳的回答

Alan Weiss
Alan Weiss 2014-3-11
Most likely, you have finite difference steps that are too small. This section of the documentation describes the problem and possible solutions.
You might also be interested in using John D'Errico's fminsearchbnd, which uses clever nonlinear transformations to allow fminsearch to satisfy bounds.
Alan Weiss
MATLAB mathematical toolbox documentation

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by