Heating controller with neural thermal model written in Python
Jacek Kowalski
2018-06-24 66a9fb40efe1311b34a3cee3f83f10c6990759af
commit | author | age
425bf7 1 #!/usr/bin/python3
JK 2
3 from lib.ArgParser import get_config, get_model_from_config
4 from lib.Controller import simulate, BruteForceController, CostController, ReplayController
5 from lib.Cost import NegativeCost
6 from lib.Env import CentralHeatingInfiniteEnv
7
8 # ARGS
9 config = get_config()
10
11 # MODEL
12 model = get_model_from_config(config)
13
14 # PLOT
15 config['plot_fields'] = ['time', 'temp_in_calc', 'temp_out', 'temperature', 'mode_calc']
16
17 # ENV
18 env = CentralHeatingInfiniteEnv()
19 env.model = model
20 env.config = config
21 env.reset()
22
23 # MAIN
24 #controller = CostController(model, NegativeCost())
25 controller = ReplayController()
26 simulate(env, controller)