Configure Simulation Conditions

Select solver, set initial conditions, pick input data set, set step size

After you build a model in Simulink®, you can configure the simulation to run quickly and accurately without making structural changes to the model.

The first step in configuring your simulation is to select a solver. By default, Simulink autoselects a variable-step solver. You can finetune the solver options or select a different solver in the Solver Pane of the Configuration Parameters dialog box.

Sometimes, a simulation can slow down or stall. Use the Solver Profiler to identify bottlenecks in the simulation and get recommendations to improve the solver performance.

Functions

expand all

openDialogOpen configuration parameters dialog
closeDialogClose configuration parameters dialog
Simulink.BlockDiagram.getAlgebraicLoopsShow algebraic loops in a model
solverprofiler.profileModelExamine model for performance analysis

Simulink Configuration Parameters

Topics

Solvers in Simulink

Choose a Solver

Choose a solver based on the dynamics of the model.

Compare Solvers

A dynamic system is simulated by computing its states at successive time steps over a specified time span, using information provided by the model.

Zero-Crossing Detection

Learn how zero-crossing events affect simulation.

Choose a Jacobian Method for an Implicit Solver

For implicit solvers, Simulink must compute the solver Jacobian, which is a submatrix of the Jacobian matrix associated with the continuous representation of a Simulink model.

Configuration Sets

About Configuration Sets

A configuration set comprises groups of related parameters called components.

Manage a Configuration Set

Specify interchangeable sets of simulation configuration parameters for a model.

Multiple Configuration Sets in a Model

Attach additional configuration sets to your model.

State Information

State Information

How blocks use the state information for calculating the output signal value for the current simulation step.

Load State Information

Import initial states and initialize specific states.

Save and Restore Simulation Operating Point

Save and restore the complete simulation snapshot for further simulation.

Solver Profiler

Examine Model Dynamics Using Solver Profiler

Identify factors affecting model simulation using the Solver Profiler.

Solver Resets

The Solver Profiler logs events that cause the solver to reset its parameters because solver resets do incur computational cost.

Zero-Crossing Events

This example simulates a ball bouncing on a hard surface.

Solver Exception Events

This example simulates two identical nonlinear spring-damping systems.

Jacobian Logging and Analysis

The Solver Profiler supports Jacobian logging and analysis for ode15s and ode23t solvers only.

Algebraic Loops

Algebraic Loop Concepts

Learn how algebraic loops are created during simulation.

Identify Algebraic Loops in Your Model

If Simulink reports an algebraic loop in your model, the algebraic loop solver may be able to solve the loop.

Remove Algebraic Loops

Learn how to break undesired algebraic loops in a model.

Modeling Considerations with Algebraic Loops

Learn modeling techniques to avoid unnecessary algebraic loops.

Artificial Algebraic Loops

An artificial algebraic loop occurs when an atomic subsystem or Model block causes Simulink to detect an algebraic loop, even though the contents of the subsystem do not contain a direct feedthrough from the input to the output.

Featured Examples