-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgrid_loop.py
31 lines (24 loc) · 1.19 KB
/
grid_loop.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import tensorflow as tf
'''
this file contains the settings for the state estimation, e.g. prior demands and measurement positions
'''
# grid and data files:
grid_file = 'data_files/inputs_loop/grid_loop.json'
data_file = 'data_files/results_loop/MC_results_pt_'
# prior demand distribution: MVN
d_prior_mean = tf.constant([200, 200, 20, 200], dtype=tf.float64)
d_prior_cov = tf.constant( [[7000, 0, 0, -6300],
[ 0, 4000, 0, 0],
[ 0, 0, 100, 0],
[ -6300, 0, 0, 7000]], dtype=tf.float64)
heatings = {'heating': {'Power': -620, 'Temperature': 120}}
demands = {'Dem_B': {'Power': d_prior_mean[0], 'Temperature': 50},
'Dem_E': {'Power': d_prior_mean[1], 'Temperature': 55},
'Dem_F': {'Power': d_prior_mean[2], 'Temperature': 60},
'Dem_I': {'Power': d_prior_mean[3], 'Temperature': 40}}
# measurement position and percentage measurement error
measurements = {'mf': [('ADS', 1)], 'T': [('AR', 1)], 'p': [], 'T_end': []}
# points of constant pressure (usually next to the powerplant)
fix_dp = {'AR': 3, 'AS': 6.5}
# ambient temperature
Ta = tf.constant(10., dtype=tf.float64)