Hello, sir! I used your method and achieved the desired effect. But (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?
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
Attachments: