-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1752,6 +1752,19 @@ def adjust_endogenous_transport(n): | |
"land transport fuel cell": cost_FCE, | ||
"land transport oil": cost_ICE, | ||
} | ||
|
||
# add dummy generator only needed for solving with glpk with higher solver tolerance | ||
n.add("Carrier", "dummy transport", color="#dd2e23", nice_name="Dummy transport") | ||
buses_i = n.buses[n.buses.carrier=="land transport demand"].index | ||
n.madd( | ||
"Generator", | ||
buses_i, | ||
" load", | ||
bus=buses_i, | ||
carrier="load", | ||
marginal_cost=1e5, | ||
p_nom=1e9, | ||
) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
lisazeyen
Author
Contributor
|
||
|
||
for car_type, cost in costs_car_type.items(): | ||
car_i = n.links[n.links.carrier == car_type].index | ||
|
can't this be covered by the already implemented load shedding instead?