Borrar filtros
Borrar filtros

fmincon instead of lsqcurvefit

6 visualizaciones (últimos 30 días)
Mohammad Nidal
Mohammad Nidal el 27 de Feb. de 2021
Editada: Matt J el 2 de Mzo. de 2021
options = optimoptions(@lsqcurvefit,'Algorithm','levenberg-marquardt','MaxIter',10000,'TolX',1e-12);
[p,resnorm,res,EXITFLAG,OUTPUT,LAMBDA,jocob]=lsqcurvefit(@fun725,p0,time,x,pL,pU);
While using this we are not getting proper value. How can we implement 'fmincon' or someother optimisation tools.
  1 comentario
Star Strider
Star Strider el 27 de Feb. de 2021
Note that ‘proper value’ is a matter of interpretation. It depends on what ‘fun725’ is, how you wrote it, and what initial parameter estimates you provided.
Some of the Global Optimization Toolbox functions can search the entire parameter space for the best parameter set, so using it would likely be appropriate.

Iniciar sesión para comentar.

Respuesta aceptada

Shadaab Siddiqie
Shadaab Siddiqie el 2 de Mzo. de 2021
If the problem is data fitting, then you should use 'lsqcurvefit' if possible. If the problem has nonlinear constraints, then see the random discussion.
if the problem is to find minimum, then you should use 'fmincon' if possible. It workes for nonlinear multivariable function.

Más respuestas (0)

Categorías

Más información sobre Nonlinear Optimization en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by