Method of continuousTimeMdss.
Integrate a non-hybrid mdss model as a DAE with
ode15i.
Source:
src/simulator/@continuousTimeMdss/simulateNonHybrid.m
A non-hybrid model has no binaries and no inequalities, so it is a plain index-1 differential-algebraic system
integrated with MATLAB’s fully-implicit ode15i. The
solver state is
with slope
;
the binary guess is empty and held fixed.
odeHandle returns
at
with the inputs linearly interpolated. jacobiHandle returns
the two blocks the fully-implicit solver needs:
the
block being zero because algebraic variables are not differentiated.
(The handles are referenced directly, not through anonymous wrappers, so
the Jacobian reports nargout == 2 as ode15i
requires.)
are obtained from eventTotalDerivative
with an empty event index (no mode enumeration); a non-zero algebraic
guess is retried if the first attempt returns NaN/Inf. After applySolverOptions,
solve runs over the input time span and the trajectory is
stored in sim.time and sim.variableTrajectory;
sim.eventTime is empty since there are no events.
| Argument | Description |
|---|---|
sim |
The continuousTimeMdss object, with the model, initial
state, input trajectory and solver options set. |
| Output | Description |
|---|---|
sim |
The same object with time and
variableTrajectory filled in (eventTime empty
— no events). |
continuousTimeMdss
· eventTotalDerivative
· jacobian · msim
MyToolbox Documentation | Generated automatically by CI/CD pipeline