File tree 2 files changed +16
-18
lines changed
2 files changed +16
-18
lines changed Original file line number Diff line number Diff line change 7
7
"""
8
8
9
9
from itertools import product
10
- import cPickle as pickle
10
+ import pickle
11
11
import logging
12
12
13
- import os
14
- os .chdir ('..' )
13
+ # Add the root folder of Dispa-SET to the path so that the library can be loaded:
14
+ import sys ,os
15
+ sys .path .append (os .path .abspath ('..' ))
15
16
16
17
# Import Dispa-SET
17
18
import dispaset as ds
20
21
path_to_save = r'./scenario_runs'
21
22
22
23
# Load the configuration file
23
- config = ds .load_config_excel ('ConfigFiles/ConfigCY.xlsx' )
24
+ config = ds .load_config_excel ('../ ConfigFiles/ConfigCY.xlsx' )
24
25
25
26
# Define your different input files as a list. The number of total runs will be the product of the length of the defined lists.
26
- heat_demand_scen = ['./Database/Heat_demand/CY/Vassilikos_CCP2.csv' ,
27
- './Database/Heat_demand/CY/Vassilikos_CCP2.csv_80' ]
27
+ heat_demand_scen = ['.. /Database/Heat_demand/CY/Vassilikos_CCP2.csv' ,
28
+ '.. /Database/Heat_demand/CY/Vassilikos_CCP2.csv_80' ]
28
29
29
- power_scen = ['./Database/PowerPlants/##/2015.csv' ,
30
- './Database/PowerPlants/##/2015_heat.csv' ,
30
+ power_scen = ['.. /Database/PowerPlants/##/2015.csv' ,
31
+ '.. /Database/PowerPlants/##/2015_heat.csv' ,
31
32
]
32
33
33
34
cost_heat_slack_scen = [20.0 , 51.0 , 100.0 ]
Original file line number Diff line number Diff line change 6
6
For each simulation, a separate simulation environment folder is created and the simualtion is run in GAMS
7
7
Finally, all the folders with the result files are read and the results are stored in a dataframe exported to excel
8
8
9
- TODO:
10
- - harmonize reserves and reserve output!
11
- - get back the solver status
12
- - Loadshedding not activated although there is lost load
13
- - bad hatching in dispatch plot and windows
14
- - no horizontal line in bar plots in windows
9
+ the pyDOE library is required to run this script!
15
10
16
11
@author: Sylvain Quoilin
17
12
"""
18
13
#%%
19
14
# Change directory to the root folder of Dispa-SET:
20
- import os
21
15
import numpy as np
22
16
import pandas as pd
23
- os .chdir ('..' )
17
+
18
+ # Add the root folder of Dispa-SET to the path so that the library can be loaded:
19
+ import sys ,os
20
+ sys .path .append (os .path .abspath ('..' ))
24
21
25
22
# Import Dispa-SET
26
23
import dispaset as ds
34
31
share_pv = [0 ,0.3 ] # Yearly PV generation divided by yearly power consumption
35
32
36
33
# Define the folder in which all simulations should be stored:
37
- sim_folder = 'Simulations/batch/'
34
+ sim_folder = '../ Simulations/batch/'
38
35
39
36
# Load the configuration file
40
- config = ds .load_config_excel ('ConfigFiles/ConfigBE.xlsx' )
37
+ config = ds .load_config_excel ('../ ConfigFiles/ConfigBE.xlsx' )
41
38
42
39
config ['SimulationType' ] = 'Integer clustering'
43
40
# 'Integer clustering'
You can’t perform that action at this time.
0 commit comments