Unable to load initial operating point after modifying blockparameters.

19 ビュー (過去 30 日間)
NV
NV 2025 年 1 月 27 日
回答済み: NV 2025 年 1 月 30 日
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 件のコメント
Yifeng Tang
Yifeng Tang 2025 年 1 月 28 日
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 2025 年 1 月 30 日
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.

サインインしてコメントする。

回答 (1 件)

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

カテゴリ

Help Center および File ExchangeRun-Time Parameters についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by