How to change the step size for fmincon?

조회 수: 6 (최근 30일)
Nathan Batta
Nathan Batta 2020년 9월 29일
편집: Mario Malic 2020년 10월 1일
Hello! I am trying to use fmincon to optimize some weights for an MPC controller. The weights can vary from about 0 to 1000 but the weights only change by about 0.001 each iteration. I would like it to change by whole numbers. I have tried to adjust FiniteDifferenceStepSize and DiffMinChange but have had no luck yet. Does anyone have experience with this? Thank you!
Nathan
  댓글 수: 7
Nathan Batta
Nathan Batta 2020년 10월 1일
I did try RelLineSrchBnd and RelLineSrchBndDuration but had little luck. The best results I've found is by making the OptimalityTolerance and StepTolerance extremely small (1e-80). However, it is still only varying by about 30 when I want it to step by much more.
Mario Malic
Mario Malic 2020년 10월 1일
편집: Mario Malic 2020년 10월 1일
Well, fmincon searches locally. Plot your fval values, do they converge, if so, then local minimum is found. This could be a good problem for ga if your function evaluations are short.

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

답변 (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