Digitalized-Energy-Systems / opfgym

A gymnasium-compatible framework to create reinforcement learning (RL) environment for solving the optimal power flow (OPF) problem. Contains five OPF benchmark environments for comparable research.
https://opf-gym.readthedocs.io
MIT License
2 stars 0 forks source link

Use gymnasium's internal random seed #2

Closed thomaswolgast closed 1 month ago

thomaswolgast commented 1 month ago

Currently np.random is used. Replace with with np_random to make reset deterministic and fully use gymnasium API how it is intended (https://gymnasium.farama.org/api/env/#gymnasium.Env.np_random).