Main Content

このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。

シミュレーション条件の構成

ソルバーを選択、初期条件を設定、入力データセットを選択、ステップ サイズを設定

Simulink® でモデルを作成したら、モデルに構造的な変更を加えることなく迅速かつ正確にシミュレーションを実行するように構成することができます。

シミュレーションの構成における最初の手順はソルバーの選択です。既定では、Simulink は可変ステップ ソルバーを自動的に選択します。[コンフィギュレーション パラメーター] ダイアログ ボックスの [ソルバー] ペインで、ソルバー オプションを微調整したり、別のソルバーを選択したりできます。

場合によっては、シミュレーションの速度が遅くなる、つまり失速することがあります。シミュレーションのボトルネックを特定し、ソルバーのパフォーマンスを改善するための推奨事項を得るには、ソルバー プロファイラーを使用します。

関数

すべて展開する

openDialog[コンフィギュレーション パラメーター] ダイアログを開く
closeDialogコンフィギュレーション パラメーター ダイアログを閉じる
Simulink.BlockDiagram.getAlgebraicLoopsモデル内の代数ループを特定および解析する
solverprofiler.profileModelソルバー プロファイラーを使用してモデルのソルバー性能をプログラムによって解析する

モデル設定

すべて展開する

開始時間Simulation start time
終了時間Simulation stop time
タイプ可変ステップ ソルバーと固定ステップ ソルバーの選択
ソルバーシミュレーション用の状態と出力を計算するソルバー

ステップ サイズと許容誤差

最大ステップ サイズMaximum step size for variable-step solver
最小ステップ サイズMinimum step size for variable-step solver
初期ステップ サイズSize of first time step for variable-step solver
連続的な最小ステップ数Number of steps less than or equal to minimum step size allowed before minimum step size violation occurs
相対許容誤差Relative tolerance for solver tolerance calculation
絶対許容誤差Absolute tolerance for solver tolerance calculation
絶対許容誤差を自動的にスケールOption to scale absolute tolerance based on state values
形状の保存Option to preserve shape of states using derivative information at each time step

ゼロクロッシング検出

ゼロクロッシング コントロールOption to control how zero-crossing detection is enabled in the model
アルゴリズム可変ステップ ソルバーを使用したゼロクロッシング検出のアルゴリズム
時間の許容誤差Definition of consecutive zero crossings
信号のしきい値State value at which adaptive zero-crossing algorithm can stop bracketing
連続的なゼロクロッシングの数Threshold for issuing diagnostic due to consecutive zero crossings

ソルバー計算オプション

積分手法Integration for nonadaptive odeN variable-step solver (R2020a 以降)
最大次数Order of numerical differentiation formulas used for ode15s solver
ソルバーのリセット メソッドOption to specify whether solver recomputes Jacobian matrix during solver reset
ソルバーのヤコビ メソッドMethod implicit solvers use to compute Jacobian matrix
外挿の次数Extrapolation order for ode14x fixed-step solver
ニュートンの反復回数Number of Newton's method iterations used by ode14x and ode1be solvers
Daessc モードMode of operation for daessc solver

タスクとサンプル時間オプション

データ転送に対するレート変換を自動的に取り扱うOption to ensure integrity of data transfer between different sample times in deployed code
入出力への複数のタスクのアクセスを許可Option to treat root-level input and output ports as part of each connected task in rate-based model (R2021b 以降)
優先順位の値が高いほどタスクの優先順位が高いことを示すPriority ordering for real-time system targets
確定的なデータ転送Deterministic data transfer behavior for automatically inserted Rate Transition blocks

ステップ サイズ

ゼロクロッシング検出

固定ステップ シミュレーションでゼロクロッシング検出を有効にするOption to use zero-crossing detection with fixed-step solver (R2022a 以降)
ゼロクロッシング コントロールOption to control how zero-crossing detection is enabled in the model
囲い込みの最大反復回数Maximum number of iterations performed when locating zero crossing (R2022a 以降)
ステップあたりのゼロクロッシングの最大数Maximum number of zero crossings to locate in a single time step (R2022a 以降)

ソルバー計算オプション

ソルバーのヤコビ メソッドMethod implicit solvers use to compute Jacobian matrix
外挿の次数Extrapolation order for ode14x fixed-step solver
ニュートンの反復回数Number of Newton's method iterations used by ode14x and ode1be solvers

タスクとサンプル時間オプション

周期的なサンプル時間の制約Option to specify constraints on model sample times
サンプル時間のプロパティDiscrete sample time periods, offsets, and priorities
各離散レートを個別のタスクとして扱うOption to enable multitasking execution
ターゲット上でタスクの同時実行を許可Enable concurrent tasking behavior for model
データ転送に対するレート変換を自動的に取り扱うOption to ensure integrity of data transfer between different sample times in deployed code
入出力への複数のタスクのアクセスを許可Option to treat root-level input and output ports as part of each connected task in rate-based model (R2021b 以降)
優先順位の値が高いほどタスクの優先順位が高いことを示すPriority ordering for real-time system targets
確定的なデータ転送Deterministic data transfer behavior for automatically inserted Rate Transition blocks
代数ループDiagnostic behavior when algebraic loop detected during compilation
代数ループの最小化Diagnostic behavior when the software is unable to resolve artificial algebraic loops
ブロック優先順位違反Diagnostic behavior when the software detects block priority specification error
最小ステップ サイズ違反Diagnostic behavior when minimum step size violation occurs
連続的なゼロクロッシング違反Diagnostic behavior when zero-crossing violation occurs
自動ソルバー パラメーターの選択Diagnostic behavior when the software changes a solver parameter value
状態名の衝突Diagnostic behavior when more than one state has same name

トピック

Simulink のソルバー

状態情報

ソルバー プロファイラー

代数ループ