fastRestart
(Not recommended) Simulate Simulink model in fast restart mode using simulation scenario
fastRestart
is not recommended. Enable fast restart using the
setup
function instead. For more information, see Compatibility Considerations.
Syntax
Simulator_out = fastRestart(Simulator,EnablefastRestart)
Description
configures
a Simulink® model and simulation scenario specified in Simulator_out
= fastRestart(Simulator
,EnablefastRestart
)sdo.SimulationTest
object, Simulator
,
for simulation in fast restart mode. Fast restart configures the model
to compile once when first simulated. Subsequent model simulations
reuse the compiled data, speeding up subsequent simulation runs.
Input Arguments
Output Arguments
Examples
Tips
To optimize, evaluate, or estimate a Simulink model, first create a simulator configured for fast restart (
Simulator_out
). Then useSimulator_out
as an input to your cost function. If you create a simulator in the cost function, you cannot use fast restart mode.When you enable fast restart, you can change only tunable properties of the model.
To linearize the model, specify the linearization logging information in the
SystemLoggingfInfo
property ofSimulator
before configuring the model for fast restart.