Documentation

Solver Pane

The Solver category includes parameters for configuring a solver for a model. A solver computes a dynamic system's states at successive time steps over a specified time span. You also use these parameters to specify the simulation start and stop times.

On the Configuration Parameters dialog box, the following configuration parameters are on the Commonly Used tab on the Solver pane, or on the All Parameters tab in the Solver category.

ParameterDescription

Start time

Specify the start time for the simulation or generated code as a double-precision value, scaled to seconds.

Stop time

Specify the stop time for the simulation or generated code as a double-precision value, scaled to seconds.

Type

Select the type of solver you want to use to simulate your model.

Solver

Select the solver you want to use to compute the states of the model during simulation or code generation.

Max step size

Specify the largest time step that the solver can take.

Initial step size

Specify the size of the first time step that the solver takes.

Min step size

Specify the smallest time step that the solver can take.

Relative tolerance

Specify the largest acceptable solver error, relative to the size of each state during each time step. If the relative error exceeds this tolerance, the solver reduces the time step size.

Absolute tolerance

Specify the largest acceptable solver error, as the value of the measured state approaches zero. If the absolute error exceeds this tolerance, the solver reduces the time step size.

Shape preservation

At each time step use derivative information to improve integration accuracy.

Maximum order

Select the order of the numerical differentiation formulas (NDFs) used in the ode15s solver.

Solver reset method

Select how the solver behaves during a reset, such as when it detects a zero crossing.

Number of consecutive min steps

Specify the maximum number of consecutive minimum step size violations allowed during simulation.

Solver Jacobian Method

Specify the method to compute the Jacobian matrix for an implicit solver.

Treat each discrete rate as a separate task

Specify whether Simulink® executes blocks with periodic sample times individually or in groups.

Automatically handle rate transition for data transfer

Specify whether Simulink software automatically inserts hidden Rate Transition blocks between blocks that have different sample rates to ensure: the integrity of data transfers between tasks; and optional determinism of data transfers for periodic tasks.

Deterministic data transfer

Control whether the Rate Transition block parameter Ensure deterministic data transfer (maximum delay) is set for auto-inserted Rate Transition blocks.

Higher priority value indicates higher task priority

Specify whether the real-time system targeted by the model assigns higher or lower priority values to higher priority tasks when implementing asynchronous data transfers.

Zero-crossing control

Enables zero-crossing detection during variable-step simulation of the model. For most models, this speeds up simulation by enabling the solver to take larger time steps.

Time tolerance

Specify a tolerance factor that controls how closely zero-crossing events must occur to be considered consecutive.

Number of consecutive zero crossings

Specify the number of consecutive zero crossings that can occur before Simulink software displays a warning or an error.

Algorithm

Specifies the algorithm to detect zero crossings when a variable-step solver is used.

Signal threshold

Specifies the deadband region used during the detection of zero crossings. Signals falling within this region are defined as having crossed through zero.

Periodic sample time constraint

Select constraints on the sample times defined by this model. If the model does not satisfy the specified constraints during simulation, Simulink software displays an error message.

Fixed-step size (fundamental sample time)

Specify the step size used by the selected fixed-step solver.

Sample time properties

Specify and assign priorities to the sample times that this model implements.

Extrapolation order

Select the extrapolation order used by the ode14x solver to compute a model's states at the next time step from the states at the current time step.

Number Newton's iterations

Specify the number of Newton's method iterations used by the ode14x solver to compute a model's states at the next time step from the states at the current time step.

Allow tasks to execute concurrently on target

Enable concurrent tasking behavior for model.

Related Examples

Was this topic helpful?