Utility class whose static methods parse equations into mdss models.
Source: src/utilities/@stringParser/
stringParser turns human-written equations into an
mdss object, building the structure and parameter matrices
and the signal index vectors automatically. The three static methods
form a pipeline:
symbolicToMdss → polynomialToMdss → stringToMdss
symbolicToMdss
accepts symbolic or string equations in any form and rearranges them
into implicit form.polynomialToMdss
clears fractions and reduces integer powers to auxiliary algebraic
variables and equations.stringToMdss
parses the expanded monomials term by term and assembles the
mdss object.Across all three, variable roles are named by a symbol list in the
order [stateDelta, state, input, algebraic, binary],
default ["xp","x","u","y","z"]. Any token that is not one
of the role symbols is treated as a parameter, and inequalities
(>=, <=) become inequality rows.
| Method | Description |
|---|---|
symbolicToMdss |
Build an mdss model from symbolic or string
equations. |
polynomialToMdss |
Build an mdss model from polynomial strings, clearing
fractions and reducing integer powers. |
stringToMdss |
Assemble an mdss model from expanded polynomial
equation strings. |
MyToolbox Documentation | Generated automatically by CI/CD pipeline