MATLAB Answers

Can fast restart be set programmatically?

6 views (last 30 days)
My model takes a long time to initialize and compile relative to simulation run time. This model is called iteratively in a script using sim(). I hoped to use the Fast Restart feature but the R2015a documentation indicates that Fast Restart can only be used interactively. I verified that my model can use Fast Restart when simulated interactively by clicking the run button. Is there really no way to avoid recompilation programmatically?

  0 Comments

Sign in to comment.

Accepted Answer

Sebastian Castro
Sebastian Castro on 17 Aug 2015
Edited: Sebastian Castro on 25 Apr 2018
Unfortunately, Fast Restart can't be used programmatically in its initial R2015a release.
In R2015b and later, you can enter:
set_param(modelName, 'FastRestart', 'on')
- Sebastian

  0 Comments

Sign in to comment.

More Answers (1)

Rostislav Teryaev
Rostislav Teryaev on 24 Apr 2018
set_param(modelName, 'FastRestart', 'on')

  0 Comments

Sign in to comment.

Products