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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d5192a31c7628fee4638649e1e799f68adf8bfe16fdd649ef2f814a2637484d
|
|
| MD5 |
0bbe05fc306a9c1bec85bd478475c239
|
|
| BLAKE2b-256 |
3641e7511eec2bbf35a1f3ee0b356a9bd05402d57d109fdba466cd3fb1a09290
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31268c255176d8198f9c597221b373fc7005d0b31dbc2b41a8bb831668c28d10
|
|
| MD5 |
ee00af89a040fba73f6956eca095ae61
|
|
| BLAKE2b-256 |
ee781bba94c258d2d18473207e7da2f84d4f8084ce852b89249d36c44b835d61
|