Skip to main content

Reinforcement learning environment for the unit commitment problem

Project description

RL4UC: Reinforcement Learning for Unit Commitment

This project contains an RL environment for the unit commitment problem.

## Installation

You can install this repository by running:

git clone https://github.com/pwdemars/rl4uc.git
cd rl4uc
pip install .

Example usage:

Below we will try an action on the 5 generator system. An action is a commitment decision for the following time period, defined by a binary numpy array: 1 indicates that we want to turn (or leave) the generator on, 0 indicates turn or leave it off.

from rl4uc.environment import make_env
import numpy as np

# Create an environment, 5 generators by default.
env = make_env()

# Reset the environment to a random demand profile.
obs_init = env.reset()

# Define a commitment decision for the next time period.
action = np.array([1,1,0,0,0]) # Turn on generators 0 & 1, turns all others off.

# Take the action, observe the reward.
observation, reward, done = env.step(action)

print("Dispatch: {}".format(env.disp))
print("Finished? {}".format(done))
print("Reward: {:.2f}".format(reward))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rl4uc_pwdemars-0.0.1-py3.8.egg (33.2 kB view details)

Uploaded Egg

File details

Details for the file rl4uc_pwdemars-0.0.1-py3.8.egg.

File metadata

  • Download URL: rl4uc_pwdemars-0.0.1-py3.8.egg
  • Upload date:
  • Size: 33.2 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.7.0 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for rl4uc_pwdemars-0.0.1-py3.8.egg
Algorithm Hash digest
SHA256 b54a02a28b2d4df9dd706d79e96c39b3944cef9b2a1e685c06f4e4cf5af9bca7
MD5 5ddf78cf833981250ba6ea5e4d0e725d
BLAKE2b-256 01749ff9a85f8260045d2f195b43f01f21d29096df49cbb98d31df857966d7a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page