Opened 6 years ago
Closed 5 years ago
#5378 closed enhancement (fixed)
Enhancements required for multi-simulation scenarios
Reported by: | Owned by: | arunkumar palanisamy | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | OMPython | Version: | |
Keywords: | Cc: |
Description
Using getXXXX() method from ModelicaSystem class loads the results and parameter values from the resultant MAT file with the default name "model_name_res.mat". But if the same model has to be simulated multiple times by changing certain parameters, the resulting MAT file gets overwritten for each simulation iteration and comparing the results with the previous simulations is not possible. Therefore I would like to suggest following two enhancements in the existing OMPython library and in particular ModelicaSystem class:
- Allow the user to provide a name or suffix for the generated resultant MAT file
- Allow the user to define the path to the MAT file from which they want to read the results or parameters using getXXXX()/getXXXX(S) method.
Change History (3)
comment:1 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → accepted |
comment:2 by , 5 years ago
comment:3 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Note:
See TracTickets
for help on using tickets.
This feature is now implemented, You can update OMPython and test it
Now you can specify your own result file using the following getXXX method
If the result file is not specified the default resultfilename is used on both the API calls
However, for comparison of different result file you can use getSolutions () something thing like below, You can also use getSolution() method to directly read a result file, if the resultfile is available in some location.