Simulation object for a continuous-time mdss model.
Source:
src/simulator/@continuousTimeMdss/continuousTimeMdss.m
continuousTimeMdss is an mtiSimulator subclass
that carries out the simulation of a continuous-time mdss model (one whose
timeStepSize == 0). It is normally constructed by msim, which packs the
model, the initial state, the input trajectory and the solver options
into the object, runs the simulation in the constructor, and reads the
results back from the time, variableTrajectory
and eventTime properties. Users are advised to call
msim rather than build this object directly.
The model is the implicit multilinear differential-algebraic system
with monomial vector and parameter split . The constructor dispatches to a solver based on the model’s structure:
nBinary == 0 and
nInequality == 0): a purely continuous
differential-algebraic system solved with MATLAB’s fully-implicit
ode15i integrator via simulateNonHybrid
(or simulateNonHybridTT for a tensor-train model).nBinary > 0 and
nInequality > 0): a switched system whose binary signals
flip when inequality switching surfaces are crossed, solved by the
event-driven total-derivative routine continuousSimTotalDerivative.A model with only binaries or only inequalities (but not both) has no simulation routine and raises an error.
| Property | Description |
|---|---|
mtiModel |
The continuous-time mdss / mtiModel being
simulated. |
initialState |
Initial state vector . |
initialAlgebraicGuess |
Initial guess for the algebraic signals . |
initialBinaryGuess |
Initial guess for the binary signals . |
inputTime |
Time samples of the input trajectory. |
inputTrajectory |
Input values , one column per input, one row per input-time sample. |
time |
Result: simulation time vector. |
variableTrajectory |
Result: signals over time, ordered
[x, y, z]; binary columns are resampled onto the full time
vector, not just event times. |
functionTrajectory |
Result: recorded function values (e.g. equality/inequality residuals). |
eventTime |
Result: times at which a mode switch (binary flip) occurred. |
solverOptions |
Solver option struct passed through to the integrator. |
| Method | Description |
|---|---|
simulateNonHybrid |
Solve a non-hybrid model with ode15i. |
continuousSimTotalDerivative |
Solve a hybrid model with event detection and mode switching. |
eventTotalDerivative |
Resolve the mode-switch problem and consistent initial slopes at an event. |
solveStepBruteForce |
Evaluate one step, enumerating binary combinations per subproblem. |
solveSubProblemFixZ |
Solve a subproblem with the binaries held fixed. |
solveSubProblemVariableZ |
Solve a subproblem allowing the binaries to vary. |
msim · mdss · discreteTimeMdss
MyToolbox Documentation | Generated automatically by CI/CD pipeline