Message Boards Message Boards

0
|
1725 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Optimization of SystemModelLinearize Instruction

Posted 9 months ago

I linearize the model using SystemModelLinearize, and for 'SymbolicParameters', I don't want to modify the parameters every time, as shown in the red box in the figure. I have an idea to write it in the following form, with the specific code as follows:

model = SystemModel["Model2"];
list = model["TopParameterNames"];
vars = list /. {QuantityVariable[x_, __] :> x} // InputForm
SystemModelLinearize[model, 
  Method -> {"SymbolicDerivative", 
      "SymbolicParameters" -> vars}]

enter image description here

How can I modify my code to run correctly?

Attachments:
POSTED BY: James James
2 Replies

POSTED BY: Sergio Vargas
Posted 9 months ago

Thank you,sir!

POSTED BY: James James
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract