Least squares solvers - Optimization Toolbox

1 visualización (últimos 30 días)
Sana KHALED
Sana KHALED el 10 de Mzo. de 2022
Editada: Vaibhav el 18 de Oct. de 2023
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.

Respuestas (1)

Vaibhav
Vaibhav el 18 de Oct. de 2023
Editada: Vaibhav el 18 de Oct. de 2023
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!

Categorías

Más información sobre Get Started with Optimization Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by