Skip to main content

An RL Env for optimal dispatching

Project description

RL4Grid Environment

    This is a custom reinforcement learning environment, designed for power system optimal dispatch problem.
    
    ## Features
    
    - action: generator active power setpoints
    - networks: IEEE 14, 39, 57, 300 systems and SG126
    
    ## Installation
    
    ### Install via `pip`
    
    You can install the environment package using `pip`:
    
    ```bash
    pip install RL4Grid
    ```
    
    ## Usage Example
    Once installed, you can use the reinforcement learning environment as follows:
    
    ```python
    
    import gym
    import RL4Grid  # Import your environment
    
    # Create the environment
    env = gym.make("MyRL-v0")
    
    # Reset the environment
    env.reset()
    
    # Interact with the environment
    for _ in range(10):
        action = env.action_space.sample()  # Sample a random action
        obs, reward, done, info = env.step(action)  # Take a step
        print(f"Observation: {obs}, Reward: {reward}, Done: {done}")
    
        if done:
            env.reset()
            
    ```
    
    ## Data
    Download data at https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi%3A10.7910%2FDVN%2F01JJZY&version=DRAFT#
    
    Extract and put data/ at RL4Grid/RL4Grid/
    
    
    ## Test
    ```bash
    cd RL4Grid/RL4Grid
    python test.py
    ```

Project details


Download files

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

Source Distribution

RL4Grid-0.2.0.1.tar.gz (47.9 kB view details)

Uploaded Source

File details

Details for the file RL4Grid-0.2.0.1.tar.gz.

File metadata

  • Download URL: RL4Grid-0.2.0.1.tar.gz
  • Upload date:
  • Size: 47.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.5

File hashes

Hashes for RL4Grid-0.2.0.1.tar.gz
Algorithm Hash digest
SHA256 276f2d8b354f195ae23702038cd57fc22625670af28d6e7b02571d0777eecaf6
MD5 f4ffb439a84e9aa32699ffe7ad455593
BLAKE2b-256 31e301deb6eb982043dfeed28337a51bba59cec6428300c51cb1aa95b72b76e5

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