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

Simulation with multiple FMUs #1

Open
kosmylo opened this issue Jul 2, 2021 · 1 comment
Open

Simulation with multiple FMUs #1

kosmylo opened this issue Jul 2, 2021 · 1 comment

Comments

@kosmylo
Copy link

kosmylo commented Jul 2, 2021

As I understood by inspecting the example of fmi_gym, it is only possible to use one FMU for control in this framework. My aim is to control a battery model exported as FMU, which is located in a large power network. For this purpose, I need my observation space to include quantities outside of the battery FMU. For example, if my battery is located in a bus with a photovoltaic connected (which is also another FMU) to be able to include its power in the observation space.

Is something like that possible? Would it be possible with some modifications?

@ChristophGehbauer
Copy link
Collaborator

Hi Kosmylo,
Thank you very much for your comment. You are right, as of now FMI-MLC only supports a single FMU. While this might change in future, I can see a path forward for you. You can wrap the system of FMUs into a single FMU:

  • This could be done either through an export tool (for example Dymola/Modelica) where you can import your FMUs, link them, and then export the whole system as a single FMU
  • Or use the Python-based SimulatorToFMU to import and link your FMUs through Python, and then export as a single FMU

I hope this helps and good luck,
Christoph

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