A professor taught me a method to obtain all the state space equations of a circuit, but there are some state space matrices that do not conform to the actual situation. How can I remove them?
The code:
spacemodel = SystemModelLinearize["Model2",
Method -> {"SymbolicDerivative",
"SymbolicParameters" -> {"r", "l", "c", "k1", "k2"}}];
kVals = Thread[{QuantityVariable[
"k1",IndependentPhysicalQuantity[""]], QuantityVariable[
"k2",IndependentPhysicalQuantity[""]]} -> #] & /@
Tuples[{{True, False}, {True, False}}];
{#, spacemodel /. #} & /@ kVals // TableForm
As shown in the following code run results, (k1->True k2->True) and (k1->False k2->False) are not what I need because they do not meet the actual situation. How can I remove the state space equations for these two situations? Circuit file attached at the end.
Attachments: