Skip to content

Commit

Permalink
updated appl
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasol committed Oct 12, 2017
1 parent a20f180 commit 3b1fc78
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions etrago/appl.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
Expand All @@ -35,30 +35,30 @@

args = {# Setup and Configuration:
'db': 'oedb', # db session
'gridversion':'v0.2.11', # None for model_draft or Version number (e.g. 'v0.2.11') for grid schema
'method': 'lopf', # 'lopf' or 'pf'
'gridversion': 'v0.2.11', # None for model_draft or Version number (e.g. v0.2.11) for grid schema
'method': 'lopf', # lopf or pf
'pf_post_lopf': False, # state whether you want to perform a pf after a lopf simulation
'start_snapshot': 1,
'end_snapshot' : 2,
'scn_name': 'Status Quo', # state which scenario you want to run: 'Status Quo', 'NEP 2035', 'eGo100'
'solver': 'gurobi', # 'glpk', 'cplex' or 'gurobi'
'end_snapshot' : 24,
'scn_name': 'Status Quo', # state which scenario you want to run: Status Quo, NEP 2035, eGo100
'solver': 'glpk', # glpk, cplex or gurobi
# Export options:
'lpfile': False, # state if and where you want to save pyomo's lp file: False or '/path/tofolder'
'results': False, # state if and where you want to save results as csv: False or '/path/tofolder'
'lpfile': False, # state if and where you want to save pyomo's lp file: False or /path/tofolder
'results': False, # state if and where you want to save results as csv: False or /path/tofolder
'export': False, # state if you want to export the results back to the database
# Settings:
'storage_extendable':True, # state if you want storages to be installed at each node if necessary.
'generator_noise':True, # state if you want to apply a small generator noise
'reproduce_noise': False, # state if you want to use a predefined set of random noise for the given scenario. if so, provide path, e.g. 'noise_values.csv'
'minimize_loading':False,
# Clustering:
'k_mean_clustering': 100, # state if you want to perform a k-means clustering on the given network. State False or the value k (e.g. 20).
'network_clustering': False, # state if you want to perform a clustering of HV buses to EHV buses.
'k_mean_clustering': False, # state if you want to perform a k-means clustering on the given network. State False or the value k (e.g. 20).
'network_clustering': True, # state if you want to perform a clustering of HV buses to EHV buses.
# Simplifications:
'parallelisation':False, # state if you want to run snapshots parallely.
'line_grouping': True, # state if you want to group lines running between the same buses.
'branch_capacity_factor': 0.7, # globally extend or lower branch capacities
'load_shedding':False, # meet the demand at very high cost; for debugging purposes.
'branch_capacity_factor': 1, # globally extend or lower branch capacities
'load_shedding':True, # meet the demand at very high cost; for debugging purposes.
'comments':None }


Expand Down Expand Up @@ -187,9 +187,6 @@ def etrago(args):
"""




session = oedb_session(args['db'])

# additional arguments cfgpath, version, prefix
Expand Down Expand Up @@ -317,7 +314,6 @@ def etrago(args):
plot_line_loading(network)
# plot stacked sum of nominal power for each generator type and timestep
plot_stacked_gen(network, resolution="MW")

# plot to show extendable storages
storage_distribution(network)

Expand Down

0 comments on commit 3b1fc78

Please sign in to comment.