Microgrid.get_empty_action#

Microgrid.get_empty_action(sample_flex_modules=False)[source]#

Get an action for the microgrid with no values set.

Values are all None; every None value should be replaced before passing an action to run.

Parameters#

sample_flex_modulesbool, default false

Whether to sample the flex modules in the microgrid. run does not expect actions for flex modules.

Returns#

dict[str, list[None]]

Empty action.