Least squares solvers - Optimization Toolbox

1 次查看(过去 30 天)
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