Vary step size for fminunc

조회 수: 3 (최근 30일)
Cy
Cy 2015년 10월 4일
답변: Alan Weiss 2015년 10월 7일
Is there a way to adaptively update DiffMinChange during execution of fminunc? I ask because I am using fminunc in a problem where it's sometimes converging to the initial point, which is not the minimum, because it does not use a large enough step-size in evaluating the gradient so the function does not appear to change.
I thought it may be possible using an output function, but from what is says here : "Using an output function you can view, but not set, optimization quantities", it appears this may not be the case. Has anyone tried this before, or have any suggestions?
Thanks,
CY

채택된 답변

Alan Weiss
Alan Weiss 2015년 10월 7일
Sorry, no, you cannot set DiffMinChange adaptively. You might want to use the FinDiffRelStep option instead, but I don't know that this will really help.
As the note in the link states, it is hard to know how to set these finite differencing options.
Alan Weiss
MATLAB mathematical toolbox documentation

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by