Hauptinhalt

Die Übersetzung dieser Seite ist veraltet. Klicken Sie hier, um die neueste Version auf Englisch zu sehen.

Simulationsbedingungen konfigurieren

Solver auswählen, Anfangsbedingungen festlegen, Eingabedatensatz auswählen, Schrittgröße festlegen

Nachdem Sie in Simulink® ein Modell erstellt haben, können Sie die Simulation so konfigurieren, dass sie schnell und genau abläuft, ohne strukturelle Änderungen am Modell vornehmen zu müssen.

Der erste Schritt bei der Konfiguration Ihrer Simulation besteht darin, einen Solver auszuwählen. Standardmäßig wird mit Simulink automatisch ein Solver mit variablen Schritten ausgewählt. Im Fensterbereich Solver des Dialogfelds Konfigurationsparameter können Sie eine Feinabstimmung der Solver-Optionen vornehmen oder einen anderen Solver auswählen.

Manchmal kann sich eine Simulation verlangsamen oder ins Stocken geraten. Verwenden Sie den Solver Profiler, um Engpässe in der Simulation zu identifizieren und Empfehlungen zur Verbesserung der Leistung des Solvers zu erhalten.

Funktionen

alle erweitern

openDialogOpen configuration parameters dialog
closeDialogClose configuration parameters dialog
Simulink.BlockDiagram.getAlgebraicLoopsIdentify and analyze algebraic loops in a model
solverprofiler.profileModelProgrammatically analyze solver performance for model using Solver Profiler

Modelleinstellungen

alle erweitern

Start timeSimulation start time
Stop timeSimulation stop time
TypeChoice of variable- or fixed-step solver
SolverSolver that computes states and outputs for simulation

Schrittgröße und Fehlertoleranz

Max step sizeMaximum step size to allow in simulations that use variable-step solvers
Min step sizeMinimum step size for variable-step solver
Initial step sizeSize of first step for variable-step solver
Number of consecutive minstepsNumber of steps less than or equal to minimum step size allowed before minimum step size violation occurs
Relative toleranceRelative tolerance for solver tolerance calculation
Absolute toleranceAbsolute tolerance for solver tolerance calculation
Auto scaleabsolute toleranceOption to scale absolute tolerance based on state values
Shape preservationOption to preserve shape of states using derivative information at each time step

Detektion des Nulldurchgangs

Zero-crossing controlOption to control how zero-crossing detection is enabled in the model
AlgorithmAlgorithm for zero-crossing detection with variable-step solver
Time toleranceDefinition of consecutive zero crossings
Signal thresholdState value at which adaptive zero-crossing algorithm can stop bracketing
Number of consecutive zerocrossingsThreshold for issuing diagnostic due to consecutive zero crossings

Solver Berechnungsoptionen

Integration methodIntegration for nonadaptive odeN variable-step solver
Maximum orderOrder of numerical differentiation formulas used for ode15s solver
Solver reset methodOption to specify whether solver recomputes Jacobian matrix during solver reset
Solver Jacobian MethodMethod implicit solvers use to compute Jacobian matrix
Extrapolation orderExtrapolation order for ode14x fixed-step solver
Number of Newton'siterationsNumber of Newton's method iterations used by ode14x and ode1be solvers
DaesscmodeMode of operation for daessc solver
Continuousstate refinement methodMethod daessc solver uses to refine continuous state values (Seit R2025a)

Optionen für Aufgaben und Probenzeiten

Automatically handle rate transition fordata transferOption to ensure integrity of data transfer between different sample times in deployed code
Allowmultiple tasks to access inputs and outputsOption to treat root-level input and output ports as part of each connected task in rate-based model (Seit R2021b)
Higher priority value indicates highertask priorityPriority ordering for real-time system targets
Deterministic datatransferDeterministic data transfer behavior for automatically inserted Rate Transition blocks

Schrittgröße

Fixed-step size (fundamental sampletime)Step size for fixed-step solver

Detektion des Nulldurchgangs

Enablezero-crossing detection for fixed-step solverOption to use zero-crossing detection with fixed-step solver (Seit R2022a)
Zero-crossing controlOption to control how zero-crossing detection is enabled in the model
Maximumnumber of bracketing iterationsMaximum number of iterations performed when locating zero crossing (Seit R2022a)
Maximumnumber of zero-crossings per stepMaximum number of zero crossings to locate in a single time step (Seit R2022a)

Solver Berechnungsoptionen

Solver Jacobian MethodMethod implicit solvers use to compute Jacobian matrix
Extrapolation orderExtrapolation order for ode14x fixed-step solver
Number of Newton'siterationsNumber of Newton's method iterations used by ode14x and ode1be solvers

Optionen für Aufgaben und Probenzeiten

Periodic sample timeconstraintOption to specify constraints on model sample times
Sample time propertiesDiscrete sample time periods, offsets, and priorities
Treat each discrete rate as a separatetaskOption to enable multitasking execution
Allow tasks to execute concurrently ontargetOption to enable concurrent tasking behavior for model
Automatically handle rate transition fordata transferOption to ensure integrity of data transfer between different sample times in deployed code
Allowmultiple tasks to access inputs and outputsOption to treat root-level input and output ports as part of each connected task in rate-based model (Seit R2021b)
Higher priority value indicates highertask priorityPriority ordering for real-time system targets
Deterministic datatransferDeterministic data transfer behavior for automatically inserted Rate Transition blocks
Algebraic loopDiagnostic action to take when the software detects algebraic loop during compilation
Minimize algebraic loopDiagnostic action to take when the software is unable to resolve artificial algebraic loops
Block priority violationDiagnostic action to take when the software detects block priority specification error
Min step size violationDiagnostic action to take when minimum step size violation occurs
Consecutive zero-crossingsviolationDiagnostic action to take when zero-crossing violation occurs
Automatic solver parameterselectionDiagnostic action to take when the software changes a solver parameter value
State name clashDiagnostic action to take when more than one state has same name

Themen

Solver in Simulink

Zustands-Informationen

Solver Profiler

Algebraische Schleifen

Enthaltene Beispiele