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

Prevent side effects of baseline OPF #3

Closed thomaswolgast closed 4 weeks ago

thomaswolgast commented 4 weeks ago

Currently, when calculating the baseline OPF with pandapower, the self.net object is set to the optimal state, overwriting the previous state. This complicates comparisons of the two states because always only one is available. Also, such side effects may result in strange bugs.

Approach: Maybe store the optimized net in a different place.