Skip to main content

Custom Gym/Gymnasium environments for operations research problems

Project description

Usage Example

Below is a minimal example of how to use the TrafficControlEnv environment for a fixed number of time steps:

import gymnasium as gym
import kaist_or_gym

# Create the environment
env = gym.make("kaist-or/TrafficControlEnv-v0", render_mode="human")

observation, info = env.reset()

for _ in range(100):  # Run for 100 time steps
    action = env.action_space.sample()  # Replace with your policy
    observation, reward, terminated, truncated, info = env.step(action)
    env.render()
    if terminated or truncated:
        break

env.close()

This example demonstrates how to create the environment, take random actions, render the intersection, and run for a fixed number of steps.

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

kaist_or_gym-0.1.3.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

kaist_or_gym-0.1.3-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file kaist_or_gym-0.1.3.tar.gz.

File metadata

  • Download URL: kaist_or_gym-0.1.3.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for kaist_or_gym-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0d5192a31c7628fee4638649e1e799f68adf8bfe16fdd649ef2f814a2637484d
MD5 0bbe05fc306a9c1bec85bd478475c239
BLAKE2b-256 3641e7511eec2bbf35a1f3ee0b356a9bd05402d57d109fdba466cd3fb1a09290

See more details on using hashes here.

File details

Details for the file kaist_or_gym-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: kaist_or_gym-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for kaist_or_gym-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 31268c255176d8198f9c597221b373fc7005d0b31dbc2b41a8bb831668c28d10
MD5 ee00af89a040fba73f6956eca095ae61
BLAKE2b-256 ee781bba94c258d2d18473207e7da2f84d4f8084ce852b89249d36c44b835d61

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