continuousTimeMdss

Simulation object for a continuous-time mdss model.

Source: src/simulator/@continuousTimeMdss/continuousTimeMdss.m

Description

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

Φeqm(ẋ,x,u,y,z)=0,Φineqm(ẋ,x,u,y,z)0, \Phi_{\mathrm{eq}}\, m(\dot x, x, u, y, z) = 0, \qquad \Phi_{\mathrm{ineq}}\, m(\dot x, x, u, y, z) \le 0,

with monomial vector mm and parameter split Φ=Φc+Φ+1Φ1\Phi=\Phi_c+\Phi_{+1}-\Phi_{-1}. The constructor dispatches to a solver based on the model’s structure:

A model with only binaries or only inequalities (but not both) has no simulation routine and raises an error.

Properties

Property Description
mtiModel The continuous-time mdss / mtiModel being simulated.
initialState Initial state vector x0x_0.
initialAlgebraicGuess Initial guess for the algebraic signals yy.
initialBinaryGuess Initial guess for the binary signals zz.
inputTime Time samples of the input trajectory.
inputTrajectory Input values uu, 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.

Methods

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.

See also

msim · mdss · discreteTimeMdss


MyToolbox Documentation | Generated automatically by CI/CD pipeline