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 - silaskalmbach/frads-gym: A Gymnasium environment built on the co-simulation of EnergyPlus and Radiance via frads (framework for radiance simulation)

BranchesTags
Open more actions menu

Latest commit

 

History

100 Commits
100 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
docs
docs
 
 
examples
examples
 
 
frads_gym
frads_gym
 
 
tests
tests
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.nextcloudignore
.nextcloudignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CITATION.cff
CITATION.cff
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
RELEASE.md
RELEASE.md
 
 
mkdocs.yml
mkdocs.yml
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

frads-gym logo

frads-gym

CI DOI Docs

Documentation: https://silaskalmbach.github.io/frads-gym/

frads-gym is a Gymnasium environment for controlling switchable facades, such as electrochromic glazing, with reinforcement learning. It couples EnergyPlus (thermal and energy simulation) and Radiance (daylight and glare) through frads and hands control to the agent at every EnergyPlus timestep.

  • One step() per EnergyPlus zone timestep; the action sets the glazing state of each controlled window.
  • Observations from a JSON configuration: any EnergyPlus output variable, work-plane or sensor illuminance, enhanced simplified DGP, daylight-dimmed lighting energy, energy sums and more.
  • Per-observation normalisation (static, dynamic percentile, z-score, EMA), episodes per day or month, wrappers for action repeat, active hours, solar forecast and observation history.
  • pip install brings EnergyPlus and Radiance along; nothing has to be installed by hand.

Installation

pip install frads-gym

Python 3.10 to 3.12 on Linux (x86_64), Windows (x86_64) and macOS (arm64). Details and the development install: Installation.

Quickstart

git clone https://github.com/silaskalmbach/frads-gym.git
cd frads-gym/examples
python quickstart.py

quickstart.py simulates one June day in the DOE medium office with Chicago weather (both ship with pyenergyplus) and four synthetic electrochromic states created by make_glazing.py. The core of it:

from frads_gym import FradsEnv

# config: path to a JSON configuration or a dict (quickstart.py builds one); epw: path to a weather file
env = FradsEnv(output_dir="output", config_file=config, weather_files_path=[epw],
               reward_function=lambda obs, action, next_obs, info: 0.0,
               number_of_timesteps_per_hour=4)
obs, info = env.reset()
obs, reward, terminated, truncated, info = env.step(env.action_space.sample())
env.close()

The other examples (EnergyPlus without Radiance, the wiring for PPO with stable-baselines3) are listed in Quickstart.

Documentation

https://silaskalmbach.github.io/frads-gym/

  • How it works: the co-simulation loop, timing of actions and observations, episodes, reproducibility
  • Configuration: every key of the JSON configuration
  • Wrappers and API reference

Contributing

Bug reports, questions and pull requests are welcome, see CONTRIBUTING.md.

Citation

Please cite the archived release you used; the concept DOI 10.5281/zenodo.18504304 always resolves to the latest version. CITATION.cff holds the metadata.

License

MIT, see LICENSE.

About

A Gymnasium environment built on the co-simulation of EnergyPlus and Radiance via frads (framework for radiance simulation)

silaskalmbach.github.io/frads-gym/

Topics

building-simulationdaylight-simulationenergyplusfacade-controlgymnasiumradiancereinforcement-learning

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
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.