Parameter Estimator Error: Output times must be within specified simulation start and stop times.
42 views (last 30 days)
Show older comments
I'm trying to create a supercapacitor model using Simulink and estimating the component parameters using the parameter estimator app.
The model is able to run when I input the current source values but when trying to 'plot model response' or 'Estimate' in the parameter estimator app, the following errors occur:
Error:The function handle passed to the optimize command encountered an error when evaluated with a parameter vector.
Error:Output times for the block diagram 'Dynamic_model' must be within the specified simulation start (0.0) and stop (45.9084) times.
------------
I have tried changing the solver selection type to 'Fixed-Step' as per what some solutions recommended but it creates a different error as shown below:
Error:An error occurred while running the simulation and the simulation was terminated
Caused by:
Derivative of state 'Dynamic_model.Capacitor4.vc' in block 'Dynamic_model/Capacitor4' at time 19.051986 is not finite. The simulation will be stopped. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances)
Attached is the model file and the data file used (Col 1: time, Col2: Voltage output, Col3: Current Input). Your advice is much appreciated, thank you.
2 Comments
Arun
on 16 Apr 2024 at 8:57
Please provide more information regarding reproduction steps for the error and MATLAB version.
Answers (0)
See Also
Categories
Find more on Estimate Parameters and States in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!