BatteryModule.sample_action#
- BatteryModule.sample_action(strict_bound=False)[source]#
Sample an action from the module’s action space.
Parameters#
- strict_boundbool, default False
If True, choose action that is guaranteed to satisfy self.max_consumption and self.max_production bounds. Otherwise select action from min_act and min_act, which may not satisfy instantaneous bounds.
Returns#
- float
An action within the action space for this module.