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

조회 수: 14 (최근 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
  댓글 수: 1
Jakob Sievers
Jakob Sievers 2014년 3월 11일
Thank you very much for this suggestion Alan. The fminsearchbnd resolved the problem very nicely! Cheers!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Nonlinear Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by