DiscreteMicrogridEnv.state_dict#

DiscreteMicrogridEnv.state_dict(normalized=False, as_run_output=False, _initial=None)[source]#

State of the microgrid as a dict.

Keys are module names and values are lists of state dicts for all modules with said name.

Parameters#

normalizedbool, default False

Whether to return a dict of normalized values.

as_run_outputbool, default False

Whether to return output in the same format as the output of Microgrid.run(). Inner values are numpy arrays and not dict in this case.

_initialdict or None

Internal parameter, do not use.

Returns#

state_dictdict[str, list[dict]] or dict[str[list[np.ndarray]]]

State of the microgrid as a nested dict.