Skip to content

Commit

Permalink
Merge pull request #284 from PyPSA/import-trial-transmission-losses
Browse files Browse the repository at this point in the history
[import benefits] [DNMY] Import trial transmission losses
  • Loading branch information
euronion authored Nov 17, 2022
2 parents c1511bf + 7ae5746 commit e1ca210
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ sector:
electricity_distribution_grid: true
electricity_distribution_grid_cost_factor: 1.0 #multiplies cost in data/costs.csv
electricity_grid_connection: true # only applies to onshore wind and utility PV
electricity_grid_transmission_losses: 0 # Enable (= value from 1 to 3) or disable (= 0) transmission losses in electricity grid, see PyPSA#462
H2_network: true
gas_network: false
H2_retrofit: false # if set to True existing gas pipes can be retrofitted to H2 pipes
Expand Down Expand Up @@ -655,4 +656,4 @@ plotting:
external battery: '#dff7cb'
external offwind: '#d0e8f5'
external onwind: '#accbfc'
external solar: '#fcf1c7'
external solar: '#fcf1c7'
2 changes: 2 additions & 0 deletions scripts/solve_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,13 +288,15 @@ def solve_network(n, config, opts='', **kwargs):

if cf_solving.get('skip_iterations', False):
network_lopf(n, solver_name=solver_name, solver_options=solver_options,
transmission_losses=config["sector"]["electricity_grid_transmission_losses"],
extra_functionality=extra_functionality,
keep_shadowprices=keep_shadowprices, **kwargs)
else:
ilopf(n, solver_name=solver_name, solver_options=solver_options,
track_iterations=track_iterations,
min_iterations=min_iterations,
max_iterations=max_iterations,
transmission_losses=config["sector"]["electricity_grid_transmission_losses"],
extra_functionality=extra_functionality,
keep_shadowprices=keep_shadowprices,
**kwargs)
Expand Down

0 comments on commit e1ca210

Please sign in to comment.