how to fit a Nonlinear model with multiple input and single output by using dataset in matlab
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Padmapritha T
el 19 de Abr. de 2020
Comentada: Thiago Henrique Gomes Lobato
el 19 de Abr. de 2020
i have input and output measured data for my system and i have ODE model equations which is bilinear and it has 11 states.
i want to fit the model with the measured data and i have to estimate the parmeters of that model, can anyone kindly help me to solve this problem. Thanks in advance.
0 comentarios
Respuestas (1)
Thiago Henrique Gomes Lobato
el 19 de Abr. de 2020
Without your data nor any code is difficult to specifically help you. Still, a general thing you may do, if you already have the model, is to simply optimize the parameters. An way to do it is:
Par0 = InitialParameters;
[Par,fval] = fminsearch(@(Par)Error(Par,Input,Output),Par0)
function e = Error(Par,Input,Output)
ModelOuput = YourModel(Par,Input);
e = rms(ModelOutput-Output);
end
Just substitute the variables/functions accordingly.
2 comentarios
Thiago Henrique Gomes Lobato
el 19 de Abr. de 2020
You can try change the model order https://de.mathworks.com/help/ident/ref/n4sid.html#mw_3b314c29-7732-49b5-8f64-0ad3d618a94f
Ver también
Categorías
Más información sobre Least Squares 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!