Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cosim fmu import and train #136

Open
linyunfeng201203 opened this issue Nov 27, 2021 · 1 comment
Open

cosim fmu import and train #136

linyunfeng201203 opened this issue Nov 27, 2021 · 1 comment

Comments

@linyunfeng201203
Copy link

Question 1. If I want to import my own model from MATLAB Simulink and export it as kosim type FMU and FMU joint simulation model in openmodelica, can this tool realize simulation training.
Question 2. In this toolbox, why is the modeling of PI controller not carried out in openmodelica? Second, is it implemented through Python code, which increases the complexity of function implementation

@Webbah
Copy link
Collaborator

Webbah commented Feb 1, 2022

Thank you for the question and sorry for the late response.

1.: In general possible to built an FMU with MATLAB Simulink and use it with openmodelica-microgrid-gym (OMG). You only have to check how to get access to the control and measure variables. For example: With

lc1.inductor1.i

you get access to the current flowing through the inductor (in openmodelica named inductor1) as a component of the filter lc1.
In MATLAB you would have to check the naming and format to see how to get access from OMG.

2.: Of course you can run the PI controller in openmodelica as well. The execution in python is with regard to the later application of an reinforcement learning (RL) agent. There the goal was to use standard toolboxes which are typically implemented in python an use the gym interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants