OpenModelica / OMMatlab

Matlab scripting OpenModelica interface
12 stars 4 forks source link

Adding a new linearization method to the class #28

Closed MohammadHadiAlizadeh closed 1 year ago

MohammadHadiAlizadeh commented 1 year ago

This method parses the linearized_model.mo directly and returns only (A,B,C, and D matrices) does not use building API for creating xml file.

arun3688 commented 1 year ago

@MohammadHadiAlizadeh this looks fine, but i guess we should also parse the stateNames, outputs and Inputs for the API, getLinearXXX/States/Inputs/Outputs, there should be no new function fastLinearize(), may be just linearize and use the above parsing to extend to fetch the stateNames, outputs and inputs, But i am also thinking that we should directly generate the matlab code linearized_model.m and just call the matlab script and get the values and we should not parse