def hvacBuilding(): conditioned_floor_area = 100 return HvacBuilding( HVAC(), heat_mass_capacity=16500 * conditioned_floor_area, #heat_mass_capacity=165000 * conditioned_floor_area, heat_transmission=500, initial_building_temperature=22, conditioned_floor_area=conditioned_floor_area)
from tensorforce.contrib.openai_gym import OpenAIGym # Create an instance of HVAC to simulate the Furnance # use any parameters specific for your furnace hvac = HVAC() # Create the hvac building tracker to keep track of the simulation over time tracker = HvacBuildingTracker() # create the building model with the hvac and the tracker conditioned_floor_area = 100 hvacBuilding = HvacBuilding( hvac, heat_mass_capacity=16500 * conditioned_floor_area, heat_transmission=200, initial_building_temperature=18, conditioned_floor_area=conditioned_floor_area, hvacBuildingTracker = tracker ) environment = HvacBuildingEnvironment(hvacBuilding) # a set of temperatures in Northern Utah, USA for one day loganOutsideTemperatures = [1.11, 2.22, 1.67, 1.67, 2.22, 1.11, 1.11, 2.78, 4.44, 4.44, 5.56, 6.67, 6.67, 7.22, 6.67, 2.22, 2.22, 1.67, 1.11, 1.11, 0.56, 1.11, 0.00, 0.00] print() print("Starting Hvac Building Example") print() # simulate one day numberOfHeatingOn = 0 # for outsideTemperature in loganOutsideTemperatures: