what is a reasonable step tolerance for optimization algorithms if parameters are in the range [0,1]?

조회 수: 20 (최근 30일)
My parameters are bounded from below by zero and from above by roughly one.
I recently worked with a quite small step tolerence of 1e-12, but I think the default value of 1e-6 would be fine as well.
Or should the step tolerance not exclusively be determined from the order of magnitude of the parameters?

채택된 답변

Bruno Luong
Bruno Luong 2023년 3월 2일
Your question is not clear enough. the official doc explains how it eaxctly works
"StepTolerance is a lower bound on the size of a step, meaning the norm of (xi – xi+1). If the solver attempts to take a step that is smaller than StepTolerance, the iterations end. StepTolerance is generally used as a relative bound, meaning iterations end when |(xi – xi+1)| < StepTolerance*(1 + |xi|), or a similar relative measure. See Tolerance Details."
The written equation can be viwed as some sort of relative tolerance, unless the optimum soluion is close to 0 then it can be viewed as absolute tolerance.
  댓글 수: 2
SA-W
SA-W 2023년 3월 2일
I have read about that. But how would you choose the step tolerance based on the range of parameters? Or are there also other aspects to be considered when choosing the tolerance value?
Bruno Luong
Bruno Luong 2023년 3월 2일
편집: Bruno Luong 2023년 3월 2일
The range of parameters are only part of the story
Imagine you want to minimize
f(x) where |x| is about 1 (unity)
Now if you minimize a function that has parameter shifted:
g(y) := f(y-1e6)
Obviouly
yopt = argmin(g) = argmin(f) + 1e6 = xopt + 1e6
The range of x is 1, the range of y is 1e6 but However the absolute StepTolerance should be identical for both. Meaning the relative StepTolerance for g should be 1e-6 time than that of f.
So not one can't chose correctly StepTolerance base ONLY on the range.
The range of the variation of the parameters is more important than the range of the parameters.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by