Solver Pane

Solver Overview

Specify the simulation start and stop time, and the solver configuration for the simulation. Use the Solver pane to set up a solver for a model's active configuration set.

A solver computes a dynamic system's states at successive time steps over a specified time span, using information provided by the model.

Configuration

  1. Select a solver type from the Type list.

  2. Select a solver from the Solver list.

  3. Set the parameters displayed for the selected type and solver combination.

  4. Apply the changes.

Tips

See Also

Start time

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

Settings

Default: 0.0

Command-Line Information

Parameter: StartTime
Type: string
Value: any valid value
Default: '0.0'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precaution0.0

See Also

Stop time

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

Settings

Default: 10

Command-Line Information

Parameter: StopTime
Type: string
Value: any valid value
Default: '10.0'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionAny positive value

See Also

Type

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

Settings

Default: Variable-step

Variable-step

Step size varies from step to step, depending on model dynamics. A variable-step solver:

Variable-step is recommended for models in which states change rapidly or that contain discontinuities. In these cases, a variable-step solver requires fewer time steps than a fixed-step solver to achieve a comparable level of accuracy. This can significantly shorten simulation time.

Fixed-step

Step size remains constant throughout the simulation.

Required for code generation, unless you use an S-function or RSim target.

Dependencies

Selecting Variable-step enables the following parameters:

Selecting Fixed-step enables the following parameters:

Command-Line Information

Parameter: SolverType
Type: string
Value: 'Variable-step' | 'Fixed-step'
Default: 'Variable-step'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionFixed-step

See Also

Solver

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

Settings

The available solvers change depending on which solver Type you selected:

Fixed-step Solvers.  

Default: ode3 (Bogacki-Shampine)

ode3 (Bogacki-Shampine)

Computes the model's state at the next time step as an explicit function of the current value of the state and the state derivatives, using the Bogacki-Shampine Formula integration technique to compute the state derivatives. In the following example, X is the state, DX is the state derivative, and h is the step size:

X(n+1) = X(n) + h * DX(n)
discrete (no continuous states)

Computes the time of the next time step by adding a fixed step size to the current time.

Use this solver for models with no states or discrete states only, using a fixed step size. Relies on the model's blocks to update discrete states.

The accuracy and length of time of the resulting simulation depends on the size of the steps taken by the simulation: the smaller the step size, the more accurate the results but the longer the simulation takes.

ode5 (Dormand-Prince)

Computes the model's state at the next time step as an explicit function of the current value of the state and the state derivatives, using the Dormand-Prince Formula integration technique to compute the state derivatives. In the following example, X is the state, DX is the state derivative, and h is the step size:

X(n+1) = X(n) + h * DX(n)
ode4 (Runge-Kutta)

Computes the model's state at the next time step as an explicit function of the current value of the state and the state derivatives, using the Fourth-Order Runge-Kutta (RK4) Formula integration technique. In the following example, X is the state, DX is the state derivative, and h is the step size:

X(n+1) = X(n) + h * DX(n)
ode2 (Heun)

Computes the model's state at the next time step as an explicit function of the current value of the state and the state derivatives, using the Heun's Method integration technique. In the following example, X is the state, DX is the state derivative, and h is the step size:

X(n+1) = X(n) + h * DX(n)
ode1 (Euler)

Computes the model's state at the next time step as an explicit function of the current value of the state and the state derivatives, using the Euler's Method integration technique. In the following example, X is the state, DX is the state derivative, and h is the step size:

X(n+1) = X(n) + h * DX(n)
ode14x (extrapolation)

Computes the model's state at the next time step as an implicit function of the state and state derivative at the next time step, using a combination of Newton's method and extrapolation from the current value. In the following example, X is the state, DX is the state derivative, and h is the step size:

X(n+1) - X(n) - h * DX(n+1) = 0

This solver requires more computation per step than an explicit solver, but is more accurate for a given step size.

Variable-step Solvers.  

Default: ode45 (Dormand-Prince)

ode45 (Dormand-Prince)

Computes the model's state at the next time step using an explicit Runge-Kutta (4,5) formula (the Dormand-Prince pair) for numerical integration.

ode45 is a one-step solver, needing only the solution to the preceding time point.

Use ode45 as a first try for most problems.

discrete (no continuous states)

Computes the time of the next step by adding a step size that varies depending on the rate of change of the model's states.

Use this solver for models with no states or discrete states only, using a variable step size.

ode23 (Bogacki-Shampine)

Computes the model's state at the next time step using an explicit Runge-Kutta (2,3) formula (the Bogacki-Shampine pair) for numerical integration.

ode23 is a one-step solver, needing only the solution to the preceding time point.

ode23 is more efficient than ode45 at crude tolerances and in the presence of mild stiffness.

ode113 (Adams)

Computes the model's state at the next time step using a variable-order Adams-Bashforth-Moulton PECE numerical integration technique.

ode113 is a multistep solver, generally needing the solutions at several preceding time points to compute the current solution.

ode113 can be more efficient than ode45 at stringent tolerances.

ode15s (stiff/NDF)

Computes the model's state at the next time step using variable-order numerical differentiation formulas (NDFs). These are related to but are more efficient than the backward differentiation formulas, BDFs (also known as Gear's method).

ode15s is a multistep solver, generally needing the solutions at several preceding time points to compute the current solution.

ode15s is efficient for stiff problems. Try this solver if ode45 fails or is inefficient.

ode23s (stiff/Mod. Rosenbrock)

Computes the model's state at the next time step using a modified Rosenbrock formula of order 2.

ode23s is a one-step solver, needing only the solution to the preceding time point.

ode23s is more efficient than ode15s at crude tolerances, and can solve stiff problems for which ode15s is ineffective.

ode23t (Mod. stiff/Trapezoidal)

Computes the model's state at the next time step using an implementation of the trapezoidal rule using a "free" interpolant.

ode23t is a one-step solver, needing only the solution to the preceding time point.

Use ode23t if the problem is only moderately stiff and you need a solution without numerical damping.

ode23tb (stiff/TR-BDF2)

Computes the model's state at the next time step using a multistep implementation of TR-BDF2, an implicit Runge-Kutta formula with a trapezoidal rule first stage, and a second stage consisting of a backward differentiation formula of order two. By construction, the same iteration matrix is used in evaluating both stages.

ode23tb is more efficient than ode15s at crude tolerances, and can solve stiff problems for which ode15s is ineffective.

Tips

Dependencies

Selecting the ode1 (Euler) , ode2 (Huen), ode 3 (Bogacki-Shampine), ode4 (Runge-Kutta), ode 5 (Dormand-Prince), or discrete (no continuous states) fixed-step solvers enables the following parameters:

Selecting ode14x (extrapolation) enables the following parameters:

Selecting the discrete (no continuous states) variable-step solver enables the following parameters:

Selecting ode45 (Dormand-Prince), ode23 (Bogacki-Shampine), ode113 (Adams), or ode23s (stiff/Mod. Rosenbrock) enables the following parameters:

Selecting ode15s (stiff/NDF), ode23t (Mod. stiff/Trapezoidal), or ode23tb (stiff/TR-BDF2) enables the following parameters:

Command-Line Information

Parameter: Solver
Type: string
Value: 'VariableStepDiscrete' | 'ode45' | 'ode23' | 'ode113' | 'ode15s' | 'ode23s' | 'ode23t' | 'ode23tb' | 'FixedStepDiscrete' | 'ode5' | 'ode4' | 'ode3' | 'ode2' | 'ode1' | 'ode14x'
Default: 'ode45'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautiondiscrete (no continuous states)

See Also

Max Step Size

Specify the largest time step that the solver can take.

Settings

Default: auto

Tips

Dependencies

This parameter is enabled only if the solver Type is set to Variable-step.

Command-Line Information

Parameter: MaxStep
Type: string
Value: any valid value
Default: 'auto'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Initial Step Size

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

Settings

Default: auto

By default, the solver selects an initial step size by examining the derivatives of the states at the start time.

Tips

Dependencies

This parameter is enabled only if the solver Type is set to Variable-step.

Command-Line Information

Parameter: InitialStep
Type: string
Value: any valid value
Default: 'auto'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Min Step Size

Specify the smallest time step that the solver can take.

Settings

Default: auto

Tips

Dependencies

This parameter is enabled only if the solver Type is set to Variable-step.

Command-Line Information

Parameter: MinStep
Type: string
Value: any valid value
Default: 'auto'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

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.

Settings

Default: 1e-3

Tips

Dependencies

This parameter is enabled only if you set:

This parameter works along with Absolute tolerance to determine the acceptable error at each time step. For more information about how these settings work together, see Specifying Variable-Step Solver Error Tolerances.

Command-Line Information

Parameter: RelTol
Type: string
Value: any valid value
Default: '1e-3'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

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.

Settings

Default: auto

Tips

Dependencies

This parameter is enabled only if you set:

This parameter works along with Relative tolerance to determine the acceptable error at each time step. For more information about how these settings work together, see Specifying Variable-Step Solver Error Tolerances.

Command-Line Information

Parameter: AbsTol
Type: string
Value: any valid value
Default: 'auto'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Maximum order

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

Settings

Default: 5

5

Specifies that the solver use fifth order NDFs.

1

Specifies that the solver use first order NDFs.

2

Specifies that the solver use second order NDFs.

3

Specifies that the solver use third order NDFs.

4

Specifies that the solver use fourth order NDFs.

Tips

Dependencies

This parameter is enabled only if Solver is set to ode15s.

Command-Line Information

Parameter: MaxOrder
Type: integer
Value: 1 | 2 | 3 | 4 | 5
Default: 5

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Solver reset method

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

Settings

Default: Fast

Fast

Specifies that the solver not recompute the Jacobian matrix at a solver reset.

Robust

Specifies that the solver recompute the Jacobian matrix needed by the integration step at every solver reset.

Tips

Dependencies

This parameter is enabled only if you select one of the following solvers:

Command-Line Information

Parameter: SolverResetMethod
Type: string
Value: 'Fast' | 'Robust'
Default: 'Fast'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Consecutive min step size violations allowed

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

Settings

Default: 1

Dependencies

This parameter is enabled only if you set:

Command-Line Information

Parameter: MaxConsecutiveMinStep
Type: string
Value: any valid value
Default: '1'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

States shape preservation

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

Settings

Default: Disable all

Disable all

Do not perform states shape preservation on any signals

Enable all

Perform states shape preservation on all signals.

Tips

Dependencies

This parameter is enabled only if a continuous step solver is used.

Command-Line Information

Parameter: ShapePreserveControl
Type: string
Value: 'EnableAll' | 'DisableAll'
Default: 'DisableAll'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Tasking mode for periodic sample times

Select how blocks with periodic sample times execute.

Settings

Default: Auto

Auto

Specifies that single-tasking execution is used if:

Selects multitasking execution for models operating at different sample rates.

SingleTasking

Specifies that all blocks are processed through each stage of simulation (for example, calculating output and updating discrete states) together.

MultiTasking

Specifies that groups of blocks with the same execution priority are processed through each stage of simulation (for example, calculating output and updating discrete states) based on task priority. Multitasking mode helps to create valid models of real-world multitasking systems, where sections of your model represent concurrent tasks.

Tip

The Multitask rate transition parameter on the Diagnostics > Sample Time pane allows you to adjust error checking for sample rate transitions between blocks that operate at different sample rates.

Dependency

This parameter is enabled by selecting Fixed-step solver type.

Command-Line Information

Parameter: SolverMode
Type: string
Value: 'Auto' | 'SingleTasking' | 'MultiTasking'
Default: 'Auto'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

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 optionally ensure determinism of data transfers for periodic tasks.

Settings

Default: Off

On

Inserts hidden Rate Transition blocks between blocks when rate transitions are detected. Handles rate transitions for asynchronous and periodic tasks. Simulink software adds the hidden blocks configured to ensure data integrity for data transfers. Selecting this option also enables the parameter Deterministic data transfer, which allows you to control the level of data transfer determinism for periodic tasks.

Off

Does not insert hidden Rate Transition blocks when rate transitions are detected. If Simulink software detects invalid transitions, you must adjust the model such that the sample rates for the blocks in question match or manually add a Rate Transition block.

See Rate Transition Block Options in the Real-Time Workshop® documentation for further details.

Tips

Command-Line Information

Parameter: AutoInsertRateTranBlk
Type: string
Value: 'on' | 'off'
Default: 'off'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionOff

See Also

Deterministic data transfer

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

Default: Whenever possible

Always

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

If Always is selected and a model needs to auto-insert a Rate Transition block to handle a rate transition that is not between two periodic sample-times related by an integer multiple, Simulink errors out.

Whenever possible

Specifies that the block parameter Ensure deterministic data transfer (maximum delay) is set for auto-inserted Rate Transition blocks whenever possible. If an auto-inserted Rate Transition block handles data transfer between two periodic sample-times that are related by an integer multiple, Ensure deterministic data transfer (maximum delay) is set; otherwise, it is cleared.

Never (minimum delay)

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

Dependencies

This parameter is enabled only if Automatically handle rate transition for data transfer is checked.

Command-Line Information

Parameter: InsertRTBMode
Type: string
Value: 'Always' | 'Whenever possible'| 'Never (minimum delay)'
Default: 'Whenever possible'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precaution'Whenever possible'

See Also

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

Settings

Default: Off

On

Real-time system assigns higher priority values to higher priority tasks, for example, 8 has a higher task priority than 4. Rate Transition blocks treat asynchronous transitions between rates with lower priority values and rates with higher priority values as low-to-high rate transitions.

Off

Real-time system assigns lower priority values to higher priority tasks, for example, 4 has a higher task priority than 8. Rate Transition blocks treat asynchronous transitions between rates with lower priority values and rates with higher priority values as high-to-low rate transitions.

Command-Line Information

Parameter: PositivePriorityOrder
Type: string
Value: 'on' | 'off'
Default: 'off'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

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.

Settings

Default: Use local settings

Use local settings

Specifies that zero-crossing detection be enabled on a block-by-block basis. You can enable zero-crossing detection on a block-by-block basis. For a list of those blocks, see

To specify zero-crossing detection for one of these blocks, open the block's parameter dialog box and select the Enable zero crossing detection option.

Enable all

Enables zero-crossing detection for all blocks in the model.

Disable all

Disables zero-crossing detection for all blocks in the model.

Tips

Dependencies

This parameter is enabled only if the solver Type is set to Variable-step.

Selecting either Use local settings or Enable all enables the following parameters:

Command-Line Information

Parameter: ZeroCrossControl
Type: string
Value: 'UseLocalSettings' | 'EnableAll' | 'DisableAll'
Default: 'UseLocalSettings'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Consecutive zero crossings relative tolerance

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

Settings

Default: 10*128*eps

Tips

Dependencies

This parameter is enabled only if Zero crossing control is set to either Use local settings or Enable all.

Command-Line Information

Parameter: ConsecutiveZCsStepRelTol
Type: string
Value: any valid value
Default: '10*128*eps'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Number of consecutive zero crossings allowed

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

Settings

Default: 1000

Tips

Dependencies

This parameter is enabled only if Zero crossing control is set to either Use local settings or Enable all.

Command-Line Information

Parameter: MaxConsecutiveZCs
Type: string
Value: any valid value
Default: '1000'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Zero crossing location algorithm

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

Settings

Default: Non-adaptive

Adaptive

Use an improved zero-crossing algorithm which dynamically activates and deactivates zero crossing bracketing. With this algorithm you can set a zero crossing tolerance. See Zero crossing location threshold to learn how to set the zero crossing tolerance.

Non-adaptive

Use the nonadaptive zero crossing algorithm present in the Simulink software prior to Version 7.0 (R2008a). This option is provided for backward compatibility.

Tips

Dependencies

Command-Line Information

Parameter: ZeroCrossAlgorithm
Type: string
Value: 'Non-adaptive' | 'Adaptive'
Default: 'Non-adaptive'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Zero crossing location threshold

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

The zero crossing tolerance is a real number, greater than or equal to zero.

Settings

Default: Auto

Auto

The zero crossing tolerance is determined automatically by the adaptive algorithm.

String

Use the specified value for the zero crossing tolerance. The value must be a real number equal to or greater than zero.

Tips

Dependency

This parameter is enabled if the Zero crossing algorithm is set to Adaptive.

Command-Line Information

Parameter: ZcDetectionTol
Type: string
Value: 'auto' | any real number greater than or equal to zero
Default: 'auto'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

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.

Settings

Default: Unconstrained

Unconstrained

Specifies no constraints. Selecting this option causes Simulink software to display a field for entering the solver step size.

Use the Fixed step size (fundamental sample time) option to specify solver step size.

Ensure sample time independent

Specifies that Model blocks inherit sample time from the context in which they are used. This option is required if you use the Model block in a triggered subsystem. For more information, see:

Simulink software checks to ensure that this model can inherit its sample times from a model that references it without altering its behavior. Models that specify a step size (i.e., a base sample time) cannot satisfy this constraint. For this reason, selecting this option causes Simulink software to hide the group's step size field (see Fixed-step size (fundamental sample time)).

Specified

Specifies that Simulink software check to ensure that this model operates at a specified set of prioritized periodic sample times. Use the Sample time properties option to specify and assign priorities to model sample times.

Executing Multitasking Models explains how to use this option for multitasking models.

Tips

During simulation, Simulink software checks to ensure that the model satisfies the constraints. If the model does not satisfy the specified constraint, Simulink software displays an error message.

Dependencies

This parameter is enabled only if the solver Type is set to Fixed-step.

Selecting Unconstrained enables the following parameters:

Selecting Specified enables the following parameters:

Command-Line Information

Parameter: SampleTimeConstraint
Type: string
Value: 'unconstrained' | 'STIndependent' | 'Specified'
Default: 'unconstrained'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionSpecified or Ensure sample time independent

See Also

Fixed step size (fundamental sample time)

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

Settings

Default: auto

Dependencies

This parameter is enabled only if the Periodic sample time constraint is set to Unconstrained.

Command-Line Information

Parameter: FixedStep
Type: string
Value: any valid value
Default: 'auto'

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

Sample time properties

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

Settings

No Default

Format.  

[period, offset, priority]
periodThe time interval (sample rate) at which updates occur during the simulation.
offsetA time interval indicating an update delay. The block is updated later in the sample interval than other blocks operating at the same sample rate.
priorityExecution priority of the real-time task associated with the sample rate.

See Specifying Sample Time for more detail and options for specifying sample time.

Example.  

[[0.1, 0, 10]; [0.2, 0, 11]; [0.3, 0, 12]]

Tips

Dependencies

This parameter is enabled by selecting Specified from the Periodic sample time constraint list.

Command-Line Information

Parameter: SampleTimeProperty
Type: structure
Value: any valid matrix
Default: []

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionPeriod, offset, and priority of each sample time in the model; faster sample times must have higher priority than slower sample times

See Also

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.

Settings

Default: 4

1

Specifies first order extrapolation.

2

Specifies second order extrapolation.

3

Specifies third order extrapolation.

4

Specifies fourth order extrapolation.

Tip

Selecting a higher order produces a more accurate solution, but is more computationally intensive per step size.

Dependencies

This parameter is enabled by selecting ode14x (extrapolation) from the Solver list.

Command-Line Information

Parameter: ExtrapolationOrder
Type: integer
Value: 1 | 2 | 3 | 4
Default: 4

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

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.

Settings

Default: 1
Minimum: 1
Maximum: 2147483647

More iterations produce a more accurate solution, but is more computationally intensive per step size.

Dependencies

This parameter is enabled by selecting ode14x (extrapolation) from the Solver list.

Command-Line Information

Parameter: NumberNewtonIterations
Type: integer
Value: any valid number
Default: 1

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

See Also

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS