Skip to main content

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/

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.

Metadata

Release files for frads-gym 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for frads-gym 0.2.0
File Size Uploaded Provenance Actions
frads_gym-0.2.0.tar.gz 214.1 kB Without provenance Details for frads_gym-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for frads-gym 0.2.0
File Interpreter ABI Platform Actions
frads_gym-0.2.0-py3-none-any.whl Python 3 none any Details for frads_gym-0.2.0-py3-none-any.whl

Total release size: 276.7 kB

Release files / frads_gym-0.2.0.tar.gz

Download URL frads_gym-0.2.0.tar.gz
Size 214.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9183ec5a6c50cebeba4f794b0bc1d33d670043db6de8a77d5dd4acc8181ee53a
BLAKE2b-256 checksum
How to use checksums
f56744561fcf7067cdb3302db3f6abf4ad4634c511a891425f5e3f94e422765b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

Release files / frads_gym-0.2.0-py3-none-any.whl

Download URL frads_gym-0.2.0-py3-none-any.whl
Size 62.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f7fc5332dd44c40f930e785665770b36525cd24ce9076d5997be769ca17956f
BLAKE2b-256 checksum
How to use checksums
312a66639e7eec147802750c51becdec3155aba104d6458221a875e2a892c963
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

Security for frads-gym 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page