sinergym.utils.controllers.RuleBasedController
- class sinergym.utils.controllers.RuleBasedController(env, range_comfort_winter=(20.0, 23.5), range_comfort_summer=(23.0, 26.0))
- __init__(env, range_comfort_winter=(20.0, 23.5), range_comfort_summer=(23.0, 26.0))
Agent whose actions are based on static rules.
- Parameters:
env (object) – Simulation environment.
range_comfort_winter (tuple, optional) – Comfort temperature range for cool season. Defaults to (20.0, 23.5).
range_comfort_summer (tuple, optional) – Comfort temperature range for hot season. Defaults to (23.0, 26.0).
Methods
__init__
(env[, range_comfort_winter, ...])Agent whose actions are based on static rules.
act
(observation)Select action based on outdoor air drybulb temperature.
- act(observation)
Select action based on outdoor air drybulb temperature.
- Parameters:
observation (object) – Perceived observation.
- Returns:
Action chosen.
- Return type:
object