Open-source platform for model predictive control (MPC) in buildings.
Alternatives To Mpcpy
Select To Compare


This is the development site for MPCPy, the python-based open-source platform for model predictive control in buildings.


MPCPy is a python package that facilitates the testing and implementation of occupant-integrated model predictive control (MPC) for building systems. The package focuses on the use of data-driven, simplified physical or statistical models to predict building performance and optimize control. Four main modules contain object classes to import data, interact with real or emulated systems, estimate and validate data-driven models, and optimize control input.

Third Party Software

While MPCPy provides an integration platform, it relies on free, open-source, third-party software packages for model implementation, simulators, parameter estimation algorithms, and optimization solvers. This includes python packages for scripting and data manipulation as well as other more comprehensive software packages for specific purposes.

In particular, modeling and optimization for physical systems currently relies on the Modelica language specification ( and FMI standard ( in order to leverage model library and tool development on these standards occurring elsewhere within the building and other industries.

A note to users: Per, Modelon stopped supporting the open-source JModelica environment as of December 2019. MPCPy can still continue to work with the public open-source version for compilation and optimization of Modelica models. Alternative solutions are being explored for longer-term maintenance.

Getting Started

Users can download v0.1.0.

Developers can > git clone

Then, follow the installation instructions and introductory tutorial in Section 2 of the User Guide, located in /doc/userGuide.

MPCPy uses Python 2.7 and has been tested on Ubuntu 16.04.

Join, follow, and participate in the conversation with the google group!


If you are interested in contributing to this project:

  • You are welcome to report any issues in Issues.
  • You are welcome to make a contribution by following the steps outlined on the Contribution Workflow page.

Research has shown that MPC can address emerging control challenges faced by buildings. However, there exists no standard practice or methods for implementing MPC in buildings. Implementation is defined here as model structure, complexity, and training methods, data resolution and amount, optimization problem structure and algorithm, and transfer of optimal control solution to real building control. In fact, different applications likely require different implementations. Therefore, we aim for MPCPy to be flexible enough to accommodate different and new approaches to MPC in buildings as research approaches a consensus on best-practice methods.


MPCPy is available under the following open-source license.


To cite MPCPy, please use:

Blum, D. H. and Wetter, M. “MPCPy: An Open-Source Software Platform for Model Predictive Control in Buildings.” Proceedings of the 15th Conference of International Building Performance Simulation, Aug 7 – 9, 2017. San Francisco, CA.

Popular Software Performance Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.