|
25 | 25 | },
|
26 | 26 | {
|
27 | 27 | "cell_type": "code",
|
28 |
| - "execution_count": 1, |
| 28 | + "execution_count": 2, |
29 | 29 | "metadata": {
|
30 | 30 | "collapsed": false,
|
31 | 31 | "pycharm": {
|
|
38 | 38 | "name": "stderr",
|
39 | 39 | "output_type": "stream",
|
40 | 40 | "text": [
|
41 |
| - "/usr/local/lib/python3.10/dist-packages/gym/spaces/box.py:73: UserWarning: \u001b[33mWARN: Box bound precision lowered by casting to float32\u001b[0m\n", |
42 |
| - " logger.warn(\n", |
43 |
| - "[2022-08-24 08:52:56,398] EPLUS_ENV_demo-v1_MainThread_ROOT INFO:Updating idf ExternalInterface object if it is not present...\n", |
44 |
| - "[2022-08-24 08:52:56,399] EPLUS_ENV_demo-v1_MainThread_ROOT INFO:Updating idf Site:Location and SizingPeriod:DesignDay(s) to weather and ddy file...\n", |
45 |
| - "[2022-08-24 08:52:56,401] EPLUS_ENV_demo-v1_MainThread_ROOT INFO:Updating idf OutPut:Variable and variables XML tree model for BVCTB connection.\n", |
46 |
| - "[2022-08-24 08:52:56,403] EPLUS_ENV_demo-v1_MainThread_ROOT INFO:Setting up extra configuration in building model if exists...\n" |
| 41 | + "[2022-10-03 10:34:41,697] EPLUS_ENV_demo-v1_MainThread_ROOT INFO:Updating idf ExternalInterface object if it is not present...\n", |
| 42 | + "[2022-10-03 10:34:41,697] EPLUS_ENV_demo-v1_MainThread_ROOT INFO:Updating idf ExternalInterface object if it is not present...\n", |
| 43 | + "[2022-10-03 10:34:41,699] EPLUS_ENV_demo-v1_MainThread_ROOT INFO:Updating idf Site:Location and SizingPeriod:DesignDay(s) to weather and ddy file...\n", |
| 44 | + "[2022-10-03 10:34:41,699] EPLUS_ENV_demo-v1_MainThread_ROOT INFO:Updating idf Site:Location and SizingPeriod:DesignDay(s) to weather and ddy file...\n", |
| 45 | + "[2022-10-03 10:34:41,700] EPLUS_ENV_demo-v1_MainThread_ROOT INFO:Updating idf OutPut:Variable and variables XML tree model for BVCTB connection.\n", |
| 46 | + "[2022-10-03 10:34:41,700] EPLUS_ENV_demo-v1_MainThread_ROOT INFO:Updating idf OutPut:Variable and variables XML tree model for BVCTB connection.\n", |
| 47 | + "[2022-10-03 10:34:41,702] EPLUS_ENV_demo-v1_MainThread_ROOT INFO:Setting up extra configuration in building model if exists...\n", |
| 48 | + "[2022-10-03 10:34:41,702] EPLUS_ENV_demo-v1_MainThread_ROOT INFO:Setting up extra configuration in building model if exists...\n", |
| 49 | + "[2022-10-03 10:34:41,703] EPLUS_ENV_demo-v1_MainThread_ROOT INFO:Setting up action definition in building model if exists...\n", |
| 50 | + "[2022-10-03 10:34:41,703] EPLUS_ENV_demo-v1_MainThread_ROOT INFO:Setting up action definition in building model if exists...\n" |
47 | 51 | ]
|
48 | 52 | }
|
49 | 53 | ],
|
|
72 | 76 | },
|
73 | 77 | {
|
74 | 78 | "cell_type": "code",
|
75 |
| - "execution_count": 2, |
| 79 | + "execution_count": 3, |
76 | 80 | "metadata": {
|
77 | 81 | "collapsed": false,
|
78 | 82 | "pycharm": {
|
|
85 | 89 | "name": "stderr",
|
86 | 90 | "output_type": "stream",
|
87 | 91 | "text": [
|
88 |
| - "[2022-08-24 08:52:56,478] EPLUS_ENV_demo-v1_MainThread_ROOT INFO:Creating new EnergyPlus simulation episode...\n", |
89 |
| - "[2022-08-24 08:52:56,492] EPLUS_ENV_demo-v1_MainThread_ROOT INFO:EnergyPlus working directory is in /workspaces/sinergym/examples/Eplus-env-demo-v1-res1/Eplus-env-sub_run1\n" |
| 92 | + "[2022-10-03 10:34:44,176] EPLUS_ENV_demo-v1_MainThread_ROOT INFO:Creating new EnergyPlus simulation episode...\n", |
| 93 | + "[2022-10-03 10:34:44,176] EPLUS_ENV_demo-v1_MainThread_ROOT INFO:Creating new EnergyPlus simulation episode...\n", |
| 94 | + "[2022-10-03 10:34:44,184] EPLUS_ENV_demo-v1_MainThread_ROOT INFO:EnergyPlus working directory is in /workspaces/sinergym/examples/Eplus-env-demo-v1-res3/Eplus-env-sub_run1\n", |
| 95 | + "[2022-10-03 10:34:44,184] EPLUS_ENV_demo-v1_MainThread_ROOT INFO:EnergyPlus working directory is in /workspaces/sinergym/examples/Eplus-env-demo-v1-res3/Eplus-env-sub_run1\n" |
90 | 96 | ]
|
91 | 97 | },
|
92 | 98 | {
|
93 | 99 | "name": "stdout",
|
94 | 100 | "output_type": "stream",
|
95 | 101 | "text": [
|
96 |
| - "Reward: -0.3808358083250144 {'timestep': 1, 'time_elapsed': 900, 'year': 1991, 'month': 1, 'day': 1, 'hour': 0, 'total_power': 7616.716166500288, 'total_power_no_units': -0.7616716166500288, 'comfort_penalty': -0.0, 'abs_comfort': 0.0, 'temperatures': [20.99998783039325], 'out_temperature': 1.8, 'action_': [21, 21]}\n", |
97 |
| - "Reward: -1907.7277939767475 {'timestep': 2976, 'time_elapsed': 2678400, 'year': 1991, 'month': 2, 'day': 1, 'hour': 0, 'total_power': 6074.240017973336, 'total_power_no_units': -0.6074240017973336, 'comfort_penalty': -3.1192635601846987, 'abs_comfort': 3.1192635601846987, 'temperatures': [16.8807364398153], 'out_temperature': -7.0, 'action_': [16, 29]}\n", |
98 |
| - "Reward: -3585.4934187414906 {'timestep': 5664, 'time_elapsed': 5097600, 'year': 1991, 'month': 3, 'day': 1, 'hour': 0, 'total_power': 913.1570850309641, 'total_power_no_units': -0.09131570850309642, 'comfort_penalty': -0.7021712738831916, 'abs_comfort': 0.7021712738831916, 'temperatures': [19.29782872611681], 'out_temperature': 8.1, 'action_': [15, 30]}\n", |
99 |
| - "Reward: -4752.940264075469 {'timestep': 8640, 'time_elapsed': 7776000, 'year': 1991, 'month': 4, 'day': 1, 'hour': 0, 'total_power': 2550.617218922648, 'total_power_no_units': -0.25506172189226484, 'comfort_penalty': -0.0, 'abs_comfort': 0.0, 'temperatures': [20.99871397216555], 'out_temperature': 7.7, 'action_': [21, 24]}\n", |
100 |
| - "Reward: -5560.830588831498 {'timestep': 11520, 'time_elapsed': 10368000, 'year': 1991, 'month': 5, 'day': 1, 'hour': 0, 'total_power': 1999.124803999265, 'total_power_no_units': -0.1999124803999265, 'comfort_penalty': -0.0, 'abs_comfort': 0.0, 'temperatures': [20.98506510334393], 'out_temperature': 13.0, 'action_': [21, 21]}\n", |
101 |
| - "Reward: -6284.020264489995 {'timestep': 14496, 'time_elapsed': 13046400, 'year': 1991, 'month': 6, 'day': 1, 'hour': 0, 'total_power': 410.8927633115007, 'total_power_no_units': -0.041089276331150074, 'comfort_penalty': -1.7705159780059887, 'abs_comfort': 1.7705159780059887, 'temperatures': [21.22948402199401], 'out_temperature': 18.4, 'action_': [21, 24]}\n", |
102 |
| - "Reward: -9322.837829436405 {'timestep': 17376, 'time_elapsed': 15638400, 'year': 1991, 'month': 7, 'day': 1, 'hour': 0, 'total_power': 215.8190765300895, 'total_power_no_units': -0.02158190765300895, 'comfort_penalty': -1.608314422881719, 'abs_comfort': 1.608314422881719, 'temperatures': [21.39168557711828], 'out_temperature': 17.7, 'action_': [18, 27]}\n", |
103 |
| - "Reward: -12636.627393394123 {'timestep': 20352, 'time_elapsed': 18316800, 'year': 1991, 'month': 8, 'day': 1, 'hour': 0, 'total_power': 5037.684551333462, 'total_power_no_units': -0.5037684551333462, 'comfort_penalty': -2.854158909419219, 'abs_comfort': 2.854158909419219, 'temperatures': [20.14584109058078], 'out_temperature': 20.6, 'action_': [20, 25]}\n", |
104 |
| - "Reward: -15946.738203460833 {'timestep': 23328, 'time_elapsed': 20995200, 'year': 1991, 'month': 9, 'day': 1, 'hour': 0, 'total_power': 367.8874627648617, 'total_power_no_units': -0.03678874627648617, 'comfort_penalty': -2.54812468432662, 'abs_comfort': 2.54812468432662, 'temperatures': [20.45187531567338], 'out_temperature': 18.8, 'action_': [18, 27]}\n", |
105 |
| - "Reward: -18806.826419277357 {'timestep': 26208, 'time_elapsed': 23587200, 'year': 1991, 'month': 10, 'day': 1, 'hour': 0, 'total_power': 186.5934720667916, 'total_power_no_units': -0.018659347206679163, 'comfort_penalty': -0.0, 'abs_comfort': 0.0, 'temperatures': [20.33203794777814], 'out_temperature': 13.3, 'action_': [17, 28]}\n", |
106 |
| - "Reward: -19743.85954501463 {'timestep': 29184, 'time_elapsed': 26265600, 'year': 1991, 'month': 11, 'day': 1, 'hour': 0, 'total_power': 186.5934720667916, 'total_power_no_units': -0.018659347206679163, 'comfort_penalty': -0.0, 'abs_comfort': 0.0, 'temperatures': [20.71761367059368], 'out_temperature': 13.0, 'action_': [16, 29]}\n", |
107 |
| - "Reward: -20805.360894738802 {'timestep': 32064, 'time_elapsed': 28857600, 'year': 1991, 'month': 12, 'day': 1, 'hour': 0, 'total_power': 5873.617289712576, 'total_power_no_units': -0.5873617289712576, 'comfort_penalty': -0.0, 'abs_comfort': 0.0, 'temperatures': [21.42152536802113], 'out_temperature': 5.1, 'action_': [22, 22]}\n", |
108 |
| - "Reward: -22566.62456817261 {'timestep': 35040, 'time_elapsed': 31536000, 'year': 1992, 'month': 1, 'day': 1, 'hour': 0, 'total_power': 8311.608954955058, 'total_power_no_units': -0.8311608954955059, 'comfort_penalty': -1.823025839166501, 'abs_comfort': 1.823025839166501, 'temperatures': [18.1769741608335], 'out_temperature': -12.0, 'action_': [18, 27]}\n" |
| 102 | + "Reward: -0.5342786322651261 {'timestep': 1, 'time_elapsed': 900, 'year': 1991, 'month': 1, 'day': 1, 'hour': 0, 'total_power': 10685.57264530252, 'total_power_no_units': -1.0685572645302521, 'comfort_penalty': -0.0, 'abs_comfort': 0.0, 'temperatures': [20.07553516208551], 'out_temperature': 1.8, 'action_': [20, 25]}\n", |
| 103 | + "Reward: -2096.650684004998 {'timestep': 2976, 'time_elapsed': 2678400, 'year': 1991, 'month': 2, 'day': 1, 'hour': 0, 'total_power': 22381.61729417214, 'total_power_no_units': -2.2381617294172145, 'comfort_penalty': -0.0, 'abs_comfort': 0.0, 'temperatures': [20.38054356822621], 'out_temperature': -7.0, 'action_': [22, 22]}\n", |
| 104 | + "Reward: -4129.51464935589 {'timestep': 5664, 'time_elapsed': 5097600, 'year': 1991, 'month': 3, 'day': 1, 'hour': 0, 'total_power': 15385.40872994788, 'total_power_no_units': -1.538540872994788, 'comfort_penalty': -0.0, 'abs_comfort': 0.0, 'temperatures': [21.7609838426557], 'out_temperature': 8.1, 'action_': [22, 23]}\n", |
| 105 | + "Reward: -5456.861170390168 {'timestep': 8640, 'time_elapsed': 7776000, 'year': 1991, 'month': 4, 'day': 1, 'hour': 0, 'total_power': 152.4868953414246, 'total_power_no_units': -0.01524868953414246, 'comfort_penalty': -0.0, 'abs_comfort': 0.0, 'temperatures': [20.36175169264276], 'out_temperature': 7.7, 'action_': [19, 26]}\n", |
| 106 | + "Reward: -6369.63107682455 {'timestep': 11520, 'time_elapsed': 10368000, 'year': 1991, 'month': 5, 'day': 1, 'hour': 0, 'total_power': 11452.77842481337, 'total_power_no_units': -1.145277842481337, 'comfort_penalty': -0.0, 'abs_comfort': 0.0, 'temperatures': [21.92062373146303], 'out_temperature': 13.0, 'action_': [22, 22]}\n", |
| 107 | + "Reward: -7206.697072691755 {'timestep': 14496, 'time_elapsed': 13046400, 'year': 1991, 'month': 6, 'day': 1, 'hour': 0, 'total_power': 7167.389297121867, 'total_power_no_units': -0.7167389297121867, 'comfort_penalty': -1.0051047272114815, 'abs_comfort': 1.0051047272114815, 'temperatures': [21.99489527278852], 'out_temperature': 18.4, 'action_': [22, 22]}\n", |
| 108 | + "Reward: -10140.504682784309 {'timestep': 17376, 'time_elapsed': 15638400, 'year': 1991, 'month': 7, 'day': 1, 'hour': 0, 'total_power': 175.7866568476675, 'total_power_no_units': -0.01757866568476675, 'comfort_penalty': -1.5118073073826288, 'abs_comfort': 1.5118073073826288, 'temperatures': [21.48819269261737], 'out_temperature': 17.7, 'action_': [17, 28]}\n", |
| 109 | + "Reward: -13387.708048636228 {'timestep': 20352, 'time_elapsed': 18316800, 'year': 1991, 'month': 8, 'day': 1, 'hour': 0, 'total_power': 20512.72746048218, 'total_power_no_units': -2.051272746048218, 'comfort_penalty': -1.2097303255916003, 'abs_comfort': 1.2097303255916003, 'temperatures': [21.7902696744084], 'out_temperature': 20.6, 'action_': [22, 23]}\n", |
| 110 | + "Reward: -16617.56445110482 {'timestep': 23328, 'time_elapsed': 20995200, 'year': 1991, 'month': 9, 'day': 1, 'hour': 0, 'total_power': 1549.646030459042, 'total_power_no_units': -0.1549646030459042, 'comfort_penalty': -2.001432470832661, 'abs_comfort': 2.001432470832661, 'temperatures': [20.99856752916734], 'out_temperature': 18.8, 'action_': [21, 24]}\n", |
| 111 | + "Reward: -19436.64949597934 {'timestep': 26208, 'time_elapsed': 23587200, 'year': 1991, 'month': 10, 'day': 1, 'hour': 0, 'total_power': 152.4868953414246, 'total_power_no_units': -0.01524868953414246, 'comfort_penalty': -0.0, 'abs_comfort': 0.0, 'temperatures': [20.46027669892315], 'out_temperature': 13.3, 'action_': [17, 28]}\n", |
| 112 | + "Reward: -20485.674588514717 {'timestep': 29184, 'time_elapsed': 26265600, 'year': 1991, 'month': 11, 'day': 1, 'hour': 0, 'total_power': 11070.55398785253, 'total_power_no_units': -1.1070553987852532, 'comfort_penalty': -0.0, 'abs_comfort': 0.0, 'temperatures': [21.89205415771582], 'out_temperature': 13.0, 'action_': [22, 22]}\n", |
| 113 | + "Reward: -21651.044604241863 {'timestep': 32064, 'time_elapsed': 28857600, 'year': 1991, 'month': 12, 'day': 1, 'hour': 0, 'total_power': 12804.88321134125, 'total_power_no_units': -1.2804883211341251, 'comfort_penalty': -0.0, 'abs_comfort': 0.0, 'temperatures': [21.89708886598514], 'out_temperature': 5.1, 'action_': [22, 23]}\n", |
| 114 | + "Reward: -23670.083608180244 {'timestep': 35040, 'time_elapsed': 31536000, 'year': 1992, 'month': 1, 'day': 1, 'hour': 0, 'total_power': 5021.427115579548, 'total_power_no_units': -0.5021427115579548, 'comfort_penalty': -1.7835436138003509, 'abs_comfort': 1.7835436138003509, 'temperatures': [18.21645638619965], 'out_temperature': -12.0, 'action_': [15, 30]}\n" |
109 | 115 | ]
|
110 | 116 | }
|
111 | 117 | ],
|
|
138 | 144 | },
|
139 | 145 | {
|
140 | 146 | "cell_type": "code",
|
141 |
| - "execution_count": 3, |
| 147 | + "execution_count": 4, |
142 | 148 | "metadata": {
|
143 | 149 | "collapsed": false,
|
144 | 150 | "pycharm": {
|
|
150 | 156 | "name": "stderr",
|
151 | 157 | "output_type": "stream",
|
152 | 158 | "text": [
|
153 |
| - "[2022-08-24 08:53:06,644] EPLUS_ENV_demo-v1_MainThread_ROOT INFO:EnergyPlus simulation closed successfully. \n" |
| 159 | + "[2022-10-03 10:34:57,801] EPLUS_ENV_demo-v1_MainThread_ROOT INFO:EnergyPlus simulation closed successfully. \n", |
| 160 | + "[2022-10-03 10:34:57,801] EPLUS_ENV_demo-v1_MainThread_ROOT INFO:EnergyPlus simulation closed successfully. \n" |
154 | 161 | ]
|
155 | 162 | }
|
156 | 163 | ],
|
|
172 | 179 | },
|
173 | 180 | {
|
174 | 181 | "cell_type": "code",
|
175 |
| - "execution_count": 4, |
| 182 | + "execution_count": 5, |
176 | 183 | "metadata": {
|
177 | 184 | "collapsed": false,
|
178 | 185 | "pycharm": {
|
|
184 | 191 | "name": "stdout",
|
185 | 192 | "output_type": "stream",
|
186 | 193 | "text": [
|
187 |
| - "Mean reward: -0.6440246737491857 Cumulative reward: -22566.62456817261\n" |
| 194 | + "Mean reward: -0.6755160847083577 Cumulative reward: -23670.083608180244\n" |
188 | 195 | ]
|
189 | 196 | }
|
190 | 197 | ],
|
|
205 | 212 | }
|
206 | 213 | ],
|
207 | 214 | "metadata": {
|
208 |
| - "interpreter": { |
209 |
| - "hash": "767d51c1340bd893661ea55ea3124f6de3c7a262a8b4abca0554b478b1e2ff90" |
210 |
| - }, |
211 | 215 | "kernelspec": {
|
212 |
| - "display_name": "Python 3.9.11 64-bit", |
| 216 | + "display_name": "Python 3.10.4 64-bit", |
213 | 217 | "language": "python",
|
214 | 218 | "name": "python3"
|
215 | 219 | },
|
|
224 | 228 | "nbconvert_exporter": "python",
|
225 | 229 | "pygments_lexer": "ipython3",
|
226 | 230 | "version": "3.10.4"
|
| 231 | + }, |
| 232 | + "vscode": { |
| 233 | + "interpreter": { |
| 234 | + "hash": "e7370f93d1d0cde622a1f8e1c04877d8463912d04d973331ad4851f04de6915a" |
| 235 | + } |
227 | 236 | }
|
228 | 237 | },
|
229 | 238 | "nbformat": 4,
|
|
0 commit comments