Method of mdss.
Reclassify prescribed inputs as computed algebraic outputs.
Source: src/model/@mdss/inputToAlgebraic.m
sys = inputToAlgebraic(sys, names)
sys = sys.inputToAlgebraic(names)inputToAlgebraic moves the named signals from the input
partition to the algebraic partition. The variables keep their position
in the underlying signal vector and every equation that references them
is untouched — they simply stop being prescribed and are solved for
instead. In an mdss an “output” is just a computed
algebraic variable, so the moved signals become the last entries of the
algebraic block.
Use this to square an over-determined boundary set: each input turned into an algebraic adds one unknown without adding an equation, closing the gap.
The requested names must all be current inputs, and each may be
listed only once; a duplicate name or a name that is not an input raises
an error. After the move, checkIndexDimensions
is called to confirm the index vectors are still consistent with the
tensor dimensions.
| Argument | Description |
|---|---|
sys |
The mdss model. |
names |
String array (1,:) of input signal names to reclassify.
Must all be current inputs; duplicates are rejected. |
| Output | Description |
|---|---|
sys |
The model with the named signals moved into the algebraic block. |
sys = sys.inputToAlgebraic(["Pipe_1_m_inlet", "Pipe_3_t_outlet"]);The two named inputs stop being prescribed and are solved as algebraic outputs, appended to the end of the algebraic block.
mdss · checkIndexDimensions
· connect
MyToolbox Documentation | Generated automatically by CI/CD pipeline