Non-linear least squares estimation with linear constraints in Simulink?
Ältere Kommentare anzeigen
I'm trying to implement a non-linear least squares solver in Simulink, with linear constraints. However, it seems that only the 'levenberg-marquardt' algorithm can be used in Simulink, which does not have the facility to add linear constraints.
I get the following error message when I try to use the 'interior-point' algorithm:
OPTIMOPTIONS property 'Algorithm' must be one of the following values for lsqcurvefit:
'levenberg-marquardt'
My code is:
options = optimoptions('lsqcurvefit', 'Algorithm', 'interior-point');
x = lsqcurvefit(fun, x0, Q, P, lb, ub, options);
This problem does not occur when I use the lsqcurvefit function in a regular MATLAB script.
Do you have any advice on how I could implement a non-linear least squares solver with linear constraints in Simulink?
Many thanks.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Nonlinear Least Squares (Curve Fitting) finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!