sustaingym.envs.evcharging.discrete_action_wrapper
#
Implements a wrapper supporting discrete actions in EVChargingEnv
.
Module Contents#
Classes#
Discrete action wrapper. |
- class sustaingym.envs.evcharging.discrete_action_wrapper.DiscreteActionWrapper(env: sustaingym.envs.evcharging.env.EVChargingEnv)[source]#
Bases:
gymnasium.ActionWrapper
Discrete action wrapper.
This wrapper maps discrete actions to normalized continuous actions on the
EVChargingEnv
. Using discrete actions guarantees that non-zero actions will not get zeroed out as in the continuous case (seeEVChargingEnv._to_schedule()
).- Parameters:
env (sustaingym.envs.evcharging.env.EVChargingEnv) – EV charging environment
- action_space#
MultiDiscrete action space