GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Bingnan-Zhao/hvac-drl-lab: HVAC case studies: Modelica models, classical control, deep reinforcement learning

BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
cases
cases
 
 
common/hvacdrl
common/hvacdrl
 
 
modelica/HVACDRL
modelica/HVACDRL
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
CITATION.cff
CITATION.cff
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

hvac-drl-lab

DOI arXiv License: MIT

Small, reproducible HVAC case studies that combine physical modelling (Modelica, CFD), classical control and deep reinforcement learning. Each case uses a deliberately small model so that an agent trains on a laptop CPU in minutes, and every learned policy is compared honestly with simple and expert baselines.

# Case Model DRL result (test window)
01 Pre-cooling under a time-of-use tariff 2-node RC office zone, ideal chiller, PI loop (Modelica Buildings) — Brisbane SAC −5.6 % electricity cost vs fixed 24 °C (expert rule −12.0 %); Modelica replay matches within 0.04 K
02 Chiller staging and condenser water reset 2 screw chillers, variable-speed cooling tower, pumps (Modelica Buildings), trained directly on the FMU SAC −2.9 % plant energy vs fixed 29.4 °C, −1.4 % vs tuned wet-bulb rule; matches the hourly optimum
03 Chilled water supply temperature reset Chiller, variable-flow chilled water, AHU wet coil, VAV zone with humidity (Modelica Buildings), trained directly on the FMU SAC −0.18 % plant energy vs fixed 6.67 °C, matching the hourly optimum; both common reset rules use more energy than the fixed set point
04 Chilled water storage with time-of-use prices and a demand charge Case 02 plant + 400 m³ stratified tank (Modelica Buildings), trained directly on the FMU SAC −7.8 % weekly cost vs no storage (TOU rule −3.9 %, tuned demand-limit rule −6.3 %, perfect foresight −17.4 %)
05 Supply air temperature reset in a VAV system AHU, three VAV boxes with reheat, three MixedAir zones (Modelica Buildings), ASHRAE G36 reset as baseline, trained directly on the FMU Summer: all controllers within 1 %. Winter: G36 uses the least energy but lets zone RH reach 73 %; SAC uses 4.7 % more than G36 (1.3 % less than fixed 13 °C), keeps the zones below 24.5 °C and RH at most 64 %

Tools

  • Modelica: Modelica Buildings Library 12.0.0, MSL 4.0.0
  • Python: Gymnasium, Stable-Baselines3, PyTorch, fmpy (FMU co-simulation)
  • Weather: TMYx files from climate.onebuilding.org

Repository layout

modelica/HVACDRL/        Modelica package (one sub-package per case) + weather data
common/hvacdrl/          Shared Python utilities: weather, tariff, calendar, KPIs
cases/NN-name/           One folder per case: environment, training and run templates,
                         trained models, results, FMU, README

Quick start

pip install -r requirements.txt
cd cases/01-precooling-rc-room
python run_policy.py          # trained agent on the test window
python train.py --seed 0      # train your own

Cases 02–05 run the plant as an FMU with Windows binaries; for cases 02 and 04, set HVACDRL_PLANT=twin elsewhere to use their Python approximation.

How to cite

Cases 01–04 are described in the paper:

Zhao, B., Gammulle, H. and Fernando, T. (2026). When does deep reinforcement learning pay off in HVAC supervisory control? Four small Modelica case studies trained directly on FMUs. arXiv:2611.22144. https://doi.org/10.48550/arXiv.2611.22144

@misc{zhao2026drl_hvac,
  author        = {Zhao, Bingnan and Gammulle, Harshala and Fernando, Tharindu},
  title         = {When does deep reinforcement learning pay off in {HVAC} supervisory control? {F}our small {M}odelica case studies trained directly on {FMUs}},
  year          = {2026},
  eprint        = {2611.22144},
  archivePrefix = {arXiv},
  primaryClass  = {cs.LG},
  doi           = {10.48550/arXiv.2611.22144},
  url           = {https://arxiv.org/abs/2611.22144}
}

To cite the code and models themselves, please use the archived release:

Zhao, B. (2026). hvac-drl-lab: Small, reproducible HVAC case studies with Modelica and deep reinforcement learning. Zenodo. https://doi.org/10.5281/zenodo.23910085

@software{zhao_hvac_drl_lab,
  author    = {Zhao, Bingnan},
  title     = {hvac-drl-lab: Small, reproducible HVAC case studies with Modelica and deep reinforcement learning},
  year      = {2026},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.23910085},
  url       = {https://doi.org/10.5281/zenodo.23910085}
}

The DOI above always resolves to the latest version. GitHub's "Cite this repository" button uses CITATION.cff.

Licence

Code and models: MIT (see LICENSE). Weather data: climate.onebuilding.org TMYx, see their terms of use.

About

HVAC case studies: Modelica models, classical control, deep reinforcement learning

Topics

australiabuilding-simulationfmuhvacmodelicareinforcement-learning

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.