[docs]classBaseLoadShiftingAgent:""" Base class for load shifting agents. Args: parameters (dict) : Dictionary containing the agent parameters. """def__init__(self,parameters=None):""" Args: parameters (dict) : Dictionary containing the agent parameters. """self.parameters=parameters
[docs]defdo_nothing_action(self):""" Return the do nothing action. Returns: action (int): The action (do nothing) to be taken. """return1
[docs]classBaseHVACAgent:""" Base class for HVAC agents. Parameters ---------- parameters : dict Dictionary containing the agent parameters. """def__init__(self,parameters=None):""" Parameters ---------- parameters : dict Dictionary containing the agent parameters. """self.parameters=parametersself.do_nothing_action_value=np.int64(1)# Add a warning message to inform the user to check if the do nothing action is the '1' action.print(f"Warning: Please check if the do nothing action for HVAC is the '{self.do_nothing_action_value}' action.")
[docs]defdo_nothing_action(self):""" Return the do nothing action. Returns: action (int): The action (do nothing) to be taken. """returnself.do_nothing_action_value
[docs]classBaseBatteryAgent:""" Base class for battery agents. Args: parameters (dict) : Dictionary containing the agent parameters. """def__init__(self,parameters=None):""" Args: parameters (dict) : Dictionary containing the agent parameters. """self.parameters=parameters
[docs]defdo_nothing_action(self):""" Return the do nothing action. Returns: action (int): The action (do nothing) to be taken. """return2
[docs]defact(self,*args,**kwargs):""" Return the do nothing action regardless of the input parameters. Args: *args: Arbitrary positional arguments. **kwargs: Arbitrary keyword arguments. Returns: action (int): The action (do nothing) to be taken. """returnself.do_nothing_action()