Simulink Parameter Estimation Error Nonlinear Least Squares

조회 수: 13 (최근 30일)
Guilherme Pereira
Guilherme Pereira 2017년 8월 29일
댓글: subramanya 2025년 5월 12일
Hi,
I'm trying to run the parameter estimation example showed on this video (https://www.mathworks.com/videos/estimating-parameters-of-a-battery-68957.html).
I've done all the setups exactly as in the video and when I start the estimation of the parameters, I get the following message: "the levenberg-marquardt algorithm does not handle bound constraints and the trust-region-reflective algorithm requires at least as many equations as variables: aborting". I'm completly lost at what's the reason for that, even more because I use the exact same model as in the video and I can't find the source of the problem.
Does anyone know how to solve it?
The model and codes I use are the ssc_lithium_cell_1RC_estim.slx and ssc_lithium_cell_1RC_estim_ini.mat and the data used for the estimation is the one from LiBatt_PulseData.mat that comes together with the files when you download it.
PS.: I've had to change the solver type in the configurations manually to ode15s. The simscape model also comes with the ssc_lithium_cell_1RC_estim_ini.mat in the PreLoadFnc Callback. I'm working with Matlab 2014a.
  댓글 수: 1
Guilherme Pereira
Guilherme Pereira 2017년 8월 30일
I've somehow managed to make it work. I still don't know the exact cause of the problem, but I think there's some kind of setup on the Simulink model that must be done before someone starts to work with the parameter estimation tool.
The reason for that hypothesis is because different from the file used for the parameter estimation of the lithium ion battery on the video I mentioned before, the one I got from the download section seems to be missing some kind of model configuration that wasn't shown on the video, since for example, I had to manually change the solver type, the simulation time isn't the same and there are no inputs configured to the inport of the model, so I can't run the simulation like on the video.
The second reason for the hypothesis is that I've managed to make it work, by putting the battery's circuit model in a copy of a different Simulink model I've downloaded from Matlab, in which I've successfully performed the parameter estimation during previous work.
Does anyone know what am I missing when configuring my model for parameter estimation, so I can avoid the same mistake in the future?

댓글을 달려면 로그인하십시오.

답변 (1개)

Zuolu Wang
Zuolu Wang 2020년 4월 8일
Hi,
Could you please share where I can find the model of ssc_lithium_cell_1RC_estim.slx?
Many thanks.
  댓글 수: 2
Changjiang Wang
Changjiang Wang 2022년 3월 6일
type "ssc_lithium_cell_2RC" in Matlab command window and press "Enter"
subramanya
subramanya 2025년 5월 12일
You wont get anything

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Parameter Estimation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by