-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplan_more_gas.py
43 lines (32 loc) · 1.36 KB
/
plan_more_gas.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# encoding: utf-8
#
# (c) Minh Ha-Duong 2017-2018
# Creative Commons Attribution-ShareAlike 4.0 International
# With contribution from Alice Duval, CIRED
#
"""Define a power development plan with generating as much from gas as from coal.
Each year, the new capacity from gas and from coal are the same.
The electricity produced per year is the less than in the baseline scenario,
because capacity factor is lower and plant lifetime is shorter for gas than for coal.
"""
import sys
from Plan import Plan
from plan_baseline import (additions as baseline_additions,
retirement as baseline_retirement,
CAPACITY_FACTOR, net_import)
# %%
additions = baseline_additions.copy()
additions["Coal"] = (additions["Coal"] + additions["Gas"]) / 2
additions["Gas"] = additions["Coal"]
retirement = baseline_retirement.copy()
retirement["Coal"] = (retirement["Coal"] + retirement["Gas"]) / 2
retirement["Gas"] = retirement["Coal"]
#%% Main statement
moreGas = Plan(additions, retirement, CAPACITY_FACTOR, net_import)
moreGas.__doc__ = "Install as much gas power new capacity as coal power new capacity."
if __name__ == '__main__':
if (len(sys.argv) == 2) and (sys.argv[1] == "summarize"):
moreGas.summarize()
if (len(sys.argv) == 3) and (sys.argv[1] == "plot"):
moreGas.plot_plan(sys.argv[2])