sinergym.utils.wrappers.OfficeGridStorageSmoothingActionConstraintsWrapper

class sinergym.utils.wrappers.OfficeGridStorageSmoothingActionConstraintsWrapper(*args: Any, **kwargs: Any)
__init__(env)

Methods

__init__(env)

action(act)

Due to Charge rate and Discharge rate can't be more than 0.0 simultaneously (in OfficeGridStorageSmoothing.idf),

action(act: ndarray) ndarray
Due to Charge rate and Discharge rate can’t be more than 0.0 simultaneously (in OfficeGridStorageSmoothing.idf),

this wrapper clips one of the to 0.0 when both have a value upper than 0.0 (randomly).

Parameters:

act (np.ndarray) – Action to be clipped

Returns:

Action Clipped

Return type:

np.ndarray