Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
1

State control in a MPC framework

asked 2023-06-12 03:17:45 -0500

max's avatar

updated 2023-06-12 12:12:09 -0500

Hello community,

We are trying to use EnergyPlus as a model in a Model Predictive Control (MPC, see wikipedia) framework. For this, we need to update at each time step the controlled command (such as the setpoint's schedule for the following day). We are currently looking for ways to bypass the warmup period at each time step, in order to keep the current state of EnergyPlus, and only update the command.

We found existing solutions, such as using the Python bindings of the EnergyPlus API, or higher level library such as RL-EmsPy (see github). Are there alternatives to using the API in order to control the state of EnergyPlus ?

Thanks in advance for you responses,

Max

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2025-06-17 09:56:52 -0500

aina's avatar

Hello,

Currently, the EnergyPlus Python API only allows interaction with the simulation as it would run when launching EnergyPlus with a command-line interface. It is not possible to skip the Warmup period.

Skipping the warmup period would require being able to save the state at the end of the warmup period and load the saved state when we want to skip it. Neither is possible.

It is a topic of an open issue on GitHub: https://github.com/NREL/EnergyPlus/is....

Aina

edit flag offensive delete link more

Comments

Thanks for your answer, I'll follow the github issue for now. Max

max's avatar max  ( 2025-06-18 03:55:21 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Question Tools

1 follower

Stats

Asked: 2023-06-12 03:17:45 -0500

Seen: 497 times

Last updated: Jun 12 '23