Unable to load initial operating point after modifying blockparameters.

19 views (last 30 days)
Hi,
I need to run a large simulink model under varying operating conditions (resistances between nodes). I have been trying to save the operating state, changing block parameters (struct which has the resistance values), load the saved as initial state and continue. But I get the error:
'Simulink cannot load the initial operating point because the model, 'mymodel', was changed after the operating point was saved. Run the simulation again and resave the operating point.'
I understood that unless datatype, dimensions or connections change, this should not happen, but that is not the case here. I also disabled the block parameter changes, and then the model runs fine.
If this is impossible how can this be achieved? (i.e. block parameters defined via strcuts in the workplace needs to change at a particular time).
  2 Comments
Yifeng Tang
Yifeng Tang on 28 Jan 2025
Is it possible to share a simple model to reproduce this issue? With some instructions on the steps probably.
My impression is that the Simscape operating point should be more flexible than that.
NV
NV on 30 Jan 2025
Hi Yifeng, thanks. I have resolved the issue - it was that the resistances needed to be set as run-time configurable (duh!!). Although that did make the solver a lot slower, this issue is resolved.

Sign in to comment.

Answers (1)

NV
NV on 30 Jan 2025
The resistances need to be changed to run time parameters as follows: Manage Simscape Run-Time Parameters
This also works with fastrestart.

Categories

Find more on Run-Time Parameters in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!