Method of mdss.
Reorder the model’s equality equations into differential, algebraic and other blocks.
Source: src/model/@mdss/orderEqualities.m
sysnew = orderEqualities(sys)orderEqualities reorders the equality equations of the
model so that:
Within each group, equations are ordered by the index of the first or variable they contain, read from the model’s incidence matrix. Each state derivative is matched to at most one equation (a greedy assignment in row order), so two equations cannot claim the same .
The classification is computed from incidenceMatrix,
and the resulting row permutation is applied with permuteEqualities.
| Argument | Description |
|---|---|
sys |
The mdss model whose equations are reordered. |
| Output | Description |
|---|---|
sysnew |
The mdss model with its equality equations reordered
(differential, then algebraic, then other). |
sysnew = orderEqualities(sys);mdss · permuteEqualities
· incidenceMatrix
· determineParallizedSolvingOrder
MyToolbox Documentation | Generated automatically by CI/CD pipeline