The challenge "learning to run a power network" offers different _parameters to be customized, or to learn an grid2op.Agent
that will perform better for example.
This class is an attempt to group them all inside one single structure.
For now, Parameters
have default value, but the can be read back / from json. Other serialization method will come soon.
If you want to change the parameters it is better to do it at the creation of the environment.
This can be done with:
import grid2op
from grid2op.Parameters import Parameters
# Create parameters
p = Parameters()
# Disable lines disconnections due to overflows
p.NO_OVERFLOW_DISCONNECTION = True
# Allow 4 substations to be impacted each turn
p.MAX_SUB_CHANGED = 4
# Allow 10 lines actions per turn
p.MAX_LINE_STATUS_CHANGED = 10
# Give Parameters instance to make, so its used
env = grid2op.make("rte_case14_realistic", param=p)
grid2op.Parameters