Main Content

Check safety-related solver settings for solver options

mathworks.hism.hisl_0041

Dependencies: Simulink® Check™

Usage: High-Integrity System Modeling

Guideline: hisl_0041: Configuration Parameters > Solver > Solver options

Description

This check verifies that the model configuration uses optimal parameter settings pertaining to solver options for generating code for a safety-related application.

Recommended Actions and Results

Review the violations that are flagged by the check and the recommended action for fixing the issue. After applying the changes, save the model and rerun the check analysis.

If you consider the flagged violation to either not be relevant or not feasible for your design, use the Justify button to provide rationale as to why the violation is either not relevant or not feasible for your design.

You can use the Fix button to allow the Model Advisor to fix all flagged violations. For this check, the Model Advisor configures model code generation settings that can impact safety.

Modeling ConditionRecommended Action
The model is configured to use a variable-step solver.Set model configuration parameter Type to Fixed-step or set the parameter SolverType to 'Fixed-step'.
The model is not configured to use a discrete solver with no continuous states.Set model configuration parameter Solver to discrete (no continuous states) or set the parameter Solver to 'FixedStepDiscrete'.

Capabilities and Limitations

  • Does not require model compilation

  • Does not run on library models

  • Does not allow exclusions of blocks or charts

Version History

Introduced in R2020a