Large Simulink® models and blocks with complex initialization functions can slow linearization.
Usually, the time it takes to linearize a model is directly related to the time it takes to update the block diagram.
Use the MATLAB® Profiler to identify complex bottlenecks in block initialization functions.
In the MATLAB Profiler, run the command:
You can speed up the linearization of large models by disabling the Linearization Advisor in the Model Linearizer app.
The Linearization Advisor stores diagnostic information, including linearization values of individual blocks, which can impact linearization performance.
To disable the Linearization Advisor, in Model Linearizer, on the Linear Analysis tab, clear Linearization Advisor.
Alternatively, you can disable the Linearization Advisor by default when the Model Linearizer app opens. To do so, in the MATLAB preferences dialog box, click Simulink Control Design™. Then, clear the Launch Linearization Advisor for exact linearizations in the Model Linearizer option. This global setting persists from session to session until you change this option.
When batch linearizing a large model that contains only a few varying parameters,
you can use
linlftfold to reduce the
For more information, see More Efficient Batch Linearization Varying Parameters.