sinergym.utils.rewards.EnergyCostLinearRewardο
- class sinergym.utils.rewards.EnergyCostLinearReward(temperature_variables: List[str], energy_variables: List[str], range_comfort_winter: Tuple[int, int], range_comfort_summer: Tuple[int, int], energy_cost_variables: List[str], summer_start: Tuple[int, int] = (6, 1), summer_final: Tuple[int, int] = (9, 30), energy_weight: float = 0.4, temperature_weight: float = 0.4, lambda_energy: float = 1.0, lambda_temperature: float = 1.0, lambda_energy_cost: float = 1.0)ο
- __init__(temperature_variables: List[str], energy_variables: List[str], range_comfort_winter: Tuple[int, int], range_comfort_summer: Tuple[int, int], energy_cost_variables: List[str], summer_start: Tuple[int, int] = (6, 1), summer_final: Tuple[int, int] = (9, 30), energy_weight: float = 0.4, temperature_weight: float = 0.4, lambda_energy: float = 1.0, lambda_temperature: float = 1.0, lambda_energy_cost: float = 1.0)ο
- Linear reward function with the addition of the energy cost term. - Considers energy consumption, absolute difference to thermal comfort and energy cost. \[R = - W_E * lambda_E * power - W_T * lambda_T * (max(T - T_{low}, 0) + max(T_{up} - T, 0)) - (1 - W_P - W_T) * lambda_EC * power_cost\]- Parameters:
- temperature_variables (List[str]) β Name(s) of the temperature variable(s). 
- energy_variables (List[str]) β Name(s) of the energy/power variable(s). 
- range_comfort_winter (Tuple[int,int]) β Temperature comfort range for cold season. Depends on environment you are using. 
- range_comfort_summer (Tuple[int,int]) β Temperature comfort range for hot season. Depends on environment you are using. 
- summer_start (Tuple[int,int]) β Summer session tuple with month and day start. Defaults to (6,1). 
- summer_final (Tuple[int,int]) β Summer session tuple with month and day end. defaults to (9,30). 
- energy_weight (float, optional) β Weight given to the energy term. Defaults to 0.4. 
- temperature_weight (float, optional) β Weight given to the temperature term. Defaults to 0.4. 
- lambda_energy (float, optional) β Constant for removing dimensions from power(1/W). Defaults to 1.0. 
- lambda_temperature (float, optional) β Constant for removing dimensions from temperature(1/C). Defaults to 1.0. 
- lambda_energy_cost (flota, optional) β Constant for removing dimensions from temperature(1/E). Defaults to 1.0. 
 
 
 - Methods - __init__(temperature_variables,Β ...[,Β ...])- Linear reward function with the addition of the energy cost term. - Attributes - logger