Least squares solvers - Optimization Toolbox

조회 수: 1 (최근 30일)
Sana KHALED
Sana KHALED 2022년 3월 10일
편집: Vaibhav 2023년 10월 18일
Hello,
I am working on an optimization of a discretized differential function that depends on several parameters.
I am using the lsqcurvefit solver and the trust-region-reflective algorithm to optimize one parameter. The code runs but I still get this warning, does someone have an idea how to get over it? I tried to increase the difference (ub, lb), but the code stutters.
"Warning: Derivative finite-differencing step was artificially reduced to be within bound constraints. This may adversely affect convergence. Increasing distance between bound constraints, in dimension 1, to be at least 1.5799e-09 may improve results".
Thanks in advance for your help.

답변 (1개)

Vaibhav
Vaibhav 2023년 10월 18일
편집: Vaibhav 2023년 10월 18일
Hi Sana,
I understand that this error could surface when the tolerances set are not realistic considering the scale of data. Additionally, if the imposed limits on certain parameters make it practically impossible to find a solution, this error could occur.
One possible solution can be adjusting the bounds and tolerances to be more realistic and considering centring and scaling for the fit.
You can refer to the below MATLAB answer for more information:
Hope this helps!

카테고리

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