Method of discreteTimeMdss.
Solve one time step of a discrete-time mdss model.
Source:
src/simulator/@discreteTimeMdss/solveStepBruteForce.m
At fixed current state and input , find the successor state , the algebraic signals and the binaries that satisfy
with and the norm-1 monomial vector. Substituting a value for the signal in structure-matrix row (row vectors ) updates multiplicatively:
The known and are folded into , then the solving order is walked. Each row is one of three cases.
Explicit continuous unknown ( or ): its equation is affine in that unknown, , so
Explicit binary : evaluate its equation value at the previous value and flip on a positive value,
Coupled subproblem: delegated to solveSubProblemVariableZ.
Finally
and
are returned. Called once per sample by discreteSimulation.
[xp, y, z, F, G] = solveStepBruteForce(sys, x0, u, solvingOrder, yguess, xpguess, zguess)
— returns the successor state xp
(),
algebraic row y, binary row z, and the
equality/inequality function-value rows F,
G.
discreteTimeMdss
· solveSubProblemVariableZ
· discreteSimulation
· msim
MyToolbox Documentation | Generated automatically by CI/CD pipeline