How to adjust the FminSearch step?
조회 수: 5 (최근 30일)
이전 댓글 표시
I'm using fminsearch to find the minimum of a 2 variable problem ... I would like the search to be at least in the range of 0.3 to 2 .. however, the algorithm performs search only on values close to the initial .. (0.3 , 0.31 ...) How can I improve this condition?
댓글 수: 0
답변 (1개)
Sulaymon Eshkabilov
2019년 5월 16일
Hi,
Set tolerances in optimset and include in in your fminsearch(..., ..., OPTsN) :
OPTs = optimset('TolFun', 1e-15);
OPTsN = optimset(OPTs, 'TolX', 1e-9);
fminsearch(..., ..., OPTsN);
Good luck.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Quantum Mechanics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!