DiscreteMicrogridEnv.from_microgrid#
- classmethod DiscreteMicrogridEnv.from_microgrid(microgrid, **kwargs)[source]#
Construct an RL environment from a microgrid.
Effectively wraps the microgrid with the environment API.
Warning
Any logs contained in the microgrid will not be ported over to the environment.
Parameters#
- microgrid
pymgrid.Microgrid Microgrid to wrap.
Returns#
- env
The environment, suitable for reinforcement learning.
- microgrid