Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging PR #31

Merged
merged 10 commits into from
Aug 27, 2024
21 changes: 13 additions & 8 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ env_file = Path("./.env").resolve()
from dotenv import load_dotenv
load_dotenv(str(env_file))

results_folder = f"{config['scenario']}_v{config['version']}"

rule targets:
input:
"results/figures/illinois_dispatch.png",
"results/networks/illinois_solved.nc"
f"results/{results_folder}/figures/illinois_dispatch.png",
f"results/{results_folder}/networks/illinois_solved.nc"
# input:
# expand("results/")

rule retrieve_supply_regions:
output:
Expand Down Expand Up @@ -55,6 +59,7 @@ rule build_topology:

rule build_base_network:
input:
config_file = 'config.yml',
buses='data/buses.csv',
lines='data/lines.csv'
output:
Expand All @@ -81,15 +86,15 @@ rule solve_network:
input:
elec_network = "data/networks/electricity_network.nc"
output:
solved_network = "results/networks/illinois_solved.nc"
solved_network = f"results/{results_folder}/networks/illinois_solved.nc"
script: "scripts/solve_network.py"

rule plot_results:
input:
solved_network = "results/networks/illinois_solved.nc"
solved_network = f"results/{results_folder}/networks/illinois_solved.nc"
output:
dispatch_figure = "results/figures/illinois_dispatch.png",
capacity_figure = "results/figures/illinois_capacity.png",
emissions_figure = "results/figures/illinois_emissions.png",
active_units_figure = "results/figures/illinois_active_units.png"
dispatch_figure = f"results/{results_folder}/figures/illinois_dispatch.png",
capacity_figure = f"results/{results_folder}/figures/illinois_capacity.png",
emissions_figure = f"results/{results_folder}/figures/illinois_emissions.png",
active_units_figure = f"results/{results_folder}/figures/illinois_active_units.png"
script: "scripts/plot_results.py"
47 changes: 32 additions & 15 deletions config.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,34 @@
state_abbr: 'IL'
version: "5.0-test"
scenario: "no_growth_no_export"

solver: 'cplex' # 'cplex','highs','gurobi'
geo_res: 'rto' # accepts: 'rto' or 'county'
time_res: 1 # hours
time_res: 4 # hours
load_filter: 60e3 # MW, load above this level will be removed as outliers.
# total_demand: 185e6 # Annual MWh in the first year
total_demand: 136e6 # Annual MWh in the first year
load_growth: 0.00 # % annual growth
load_share:
MISO-Z4: 0.33
ComEd: 0.67

model_years: [2025, 2030, 2035, 2040, 2045]
plot_year: 2045
# model_years: [2025, 2030, 2035, 2040, 2045]
model_years: [2025]
plot_year: 2025

co2_limits:
2020: 31.25
2025: 25 # MT
2030: 18.75
2035: 12.5
2040: 6.25
2045: 0.0
# 2020: 31.25
# 2025: 25 # MT
# 2030: 18.75
# 2035: 12.5
# 2040: 6.25
# 2045: 0.0

solar_years: [2016,2017,2018,2019,2020] # NSRDB only accepts years 1998-2020
wind_years: [2009,2010,2011,2012,2013] # WTK only goes from 2009-2013
# solar_years: [2016,2017,2018,2019,2020] # NSRDB only accepts years 1998-2020
# wind_years: [2009,2010,2011,2012,2013] # WTK only goes from 2009-2013
solar_years: [2016] # NSRDB only accepts years 1998-2020
wind_years: [2009] # WTK only goes from 2009-2013
load_year: 2019

rto_subba: ['0004','CE'] # MISO-Z4, ComEd
Expand All @@ -39,9 +46,19 @@ growth_rates: # MW/year
Solar: 5e3
Wind: 5e3

# lifetime:
# Nuclear: 80
# Biomass: 40
# Natural Gas: 40
# Coal: 50
# Solar: 20
# Wind: 20
# Batteries: 15
# Petroleum: 40

lifetime:
Nuclear: 80
Biomass: 40
Biomass: 60
Natural Gas: 40
Coal: 50
Solar: 20
Expand Down Expand Up @@ -105,14 +122,14 @@ extendable_techs: [
# 'CTAvgCF',
# 'IGCCAvgCF',
# 'Biopower',
'Land-Based Wind',
'Utility PV',
# 'Land-Based Wind',
# 'Utility PV',
# 'LWR',
# 'NuclearSMR',
# '10Hr Battery Storage',
# '8Hr Battery Storage',
# '6Hr Battery Storage',
'4Hr Battery Storage',
# '4Hr Battery Storage',
# '2Hr Battery Storage'
]

Expand Down
Loading