Skip to content

Functional Mock-up Interface - Machine Learning Center

License

Notifications You must be signed in to change notification settings

LBNL-ETA/FMI-MLC

Repository files navigation

FMI-MLC

Actions Status Actions Status

Functional Mock-up Interface - Machine Learning Center


This package simplifies the use of Functional Mock-Up Interface compliant models for Machine Learning and Simulation purposes.

General

The interfacing of simulation models with machine learning algorithms such as reinforcement learing is complex and requires custom software bindings. FMI-MLC seeks to bridge this gap by employing the Funcitional Mock-Up Interface (FMI), an industry standard to export and interface with simulation models, and OpenAI's Gym, a standard Python interface for machine learning.

Please note that the FMI-MLC package is still under active development. Please open an issue for specific questions

Getting Started

The following link permits users to clone the source directory containing the FMI-MLC package. The package can then be installed using pip install . within the directory. While a user can provide a custom FMU handler, it is recommended to also install PyFMI. FMI-MLC will default to PyFMI if no custom handler is provided.

Alternatively, an experimental Docker container is available with the PyFMI dependencies already installed:

set username=[YOURUSERNAME]
set homedir=[FULL/PATH/TO/YOUR/LOCAL/HOME/DIRECTORY]
set container=cgehbauer/jupyter_radiance_eplus:v1
docker run -p 127.0.0.1:8889:8888 -v %homedir%:/home/%username% -it %container% bash -c "cd /home/%username% && jupyter notebook --ip=0.0.0.0 --allow-root --no-browser --NotebookApp.token=''"

Example

To illustrate the functionality of FMI-MLC, example Jupyter notebooks can be found here.

Exmaple of fmi_gym

COMING SOON: Reinforcement Learning with FMI-MLC

License

Functional Mock-up Interface - Machine Learning Center (FMI-MLC) Copyright (c) 2021, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.

If you have questions about your rights to use or distribute this software, please contact Berkeley Lab's Intellectual Property Office at IPO@lbl.gov.

NOTICE. This Software was developed under funding from the U.S. Department of Energy and the U.S. Government consequently retains certain rights. As such, the U.S. Government has been granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the Software to reproduce, distribute copies to the public, prepare derivative works, and perform publicly and display publicly, and to permit others to do so.

Cite

To cite the FMI-MLC package, please use:

Gehbauer, Christoph, Rippl, Andreas and Lee, Eleanor. 2021. Advanced Control of Dynamic Facades and HVAC with Reinforcement Learning based on standardized co-Simulation. Building Simulation 2021.

About

Functional Mock-up Interface - Machine Learning Center

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published