Skip to content

Update to 2.0.0b4 #103

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

Merged
merged 53 commits into from
Aug 1, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
b1f5327
rename 'project' to 'GENERATION_PROJECT' in gen_inc_heat_rate.tab and…
mfripp Jan 3, 2018
0cf919b
fix regression in definition of GEN_PERIODS
mfripp Jan 3, 2018
32efce4
bump switch version number to match data version
mfripp Jan 3, 2018
90d88a8
minor bug fixes and enhancements
mfripp Jan 3, 2018
35a79e4
unpack tuples in indexes in reporting.write_table(), similar to Pyomo
mfripp Jan 3, 2018
affa2ae
allow zero values for transmission capacity and other transmission pa…
mfripp Jan 3, 2018
c428254
change hawaii modules to match 2016-12-23 PSIP; fix renaming errors
mfripp Jan 4, 2018
ffc98ad
streamline index unpacking code
mfripp Jan 4, 2018
45803a1
interim version of Hawaii reserves for case study for paper
mfripp Jan 4, 2018
bc831e0
move advanced demand response from hawaii package to new demand_respo…
mfripp Jan 10, 2018
19b13c5
allow specification of fixed energy-power ratios for storage, possibl…
mfripp Jan 10, 2018
d21d466
copy spinning_reserves as starting point for spinning_reserves_advanced
mfripp Jan 17, 2018
54856e0
allow multiple spinning reserve products and targets
mfripp Jan 17, 2018
75808f0
improve reporting on infeasible models
mfripp Feb 15, 2018
7e353dd
miscellaneous improvements in Hawaii package
mfripp Feb 15, 2018
c66bec6
bug fixes in iterative demand_response.iterative
mfripp Feb 15, 2018
9bf5bac
Upgrade input directories that were created for intermediate versions…
mfripp Feb 15, 2018
9e7171e
Added basic example to spinning_reserves_advanced. It isn't equivalen…
josiahjohnston Feb 17, 2018
df0e604
require users to select a reserve allocation rule or explicitly state…
mfripp Feb 24, 2018
049b2c9
Hawaii package: fix bugs, improve code and represent PSIP more accura…
mfripp Feb 24, 2018
9bdcab8
Merge branch 'v2.0.0b4' of https://github.com/switch-model/switch int…
mfripp Feb 24, 2018
a461226
merge transmission_lines.tab and trans_optional_params.tab; allow isl…
mfripp Mar 2, 2018
16e3f84
save hourly dispatch
mfripp Mar 4, 2018
0ebd5b6
improvements to Hawaii package
mfripp Mar 8, 2018
5b25638
add a fixed-size contingency option (maybe all the reserve settings s…
mfripp Jun 28, 2018
247540b
minor tweaks and bug fixes
mfripp Jun 28, 2018
f003768
rename '_FUEL_BASED_GEN_TPS' to 'FUEL_BASED_GEN_TPS' (old version loo…
mfripp Jun 28, 2018
d57cccf
Update Hawaii modules to work with spinning_reserves_advanced module
mfripp Jun 28, 2018
689f37e
Allow linear (non-binary) relaxation of Kalaeloa operating variables
mfripp Jun 28, 2018
9f77124
Bug fixes and cosmetic changes in Hawaii package
mfripp Jun 28, 2018
4c0340e
Assign NonNegativeReals domain for contingency variables in spinning_…
mfripp Jun 28, 2018
af00c83
Bug fix in inflation adjustment query in hawaii.scenario_data
mfripp Jun 28, 2018
6588373
Consider '--verbose' flag in solve_scenarios.
mfripp Jun 28, 2018
da5b081
Sort IIS before showing it.
mfripp Jun 29, 2018
bccfdff
Begin work on fixed time-of-use pricing in iterative demand response …
mfripp Jun 29, 2018
b407a19
Respect --verbose flag in hawaii.psip_2016_12
mfripp Jun 29, 2018
c8c8723
Escape percent signs in help text per https://docs.python.org/2/libra…
mfripp Jun 29, 2018
8847ad5
Move make_iterable() from reporting to utilities module, since it has…
mfripp Jun 29, 2018
673ee38
Fix regression in treatment of --verbose by solve_scenarios.
mfripp Jun 29, 2018
6bc4187
Streamline timekeeping, make --reload-prior-solution more robust.
mfripp Jun 30, 2018
a67856d
Merge branch 'master' into v2.0.0b4
mfripp Jun 30, 2018
ace9876
Refactor components to improve instance creation time and memory.
mfripp Jul 1, 2018
e41ed44
Update federal tax credit calculations
mfripp Jul 2, 2018
0a7243d
Move solution-loading code after feasibility test, to avoid uninitial…
mfripp Jul 2, 2018
b23b2f9
Initial support for pumped hydro using standard storage components (u…
mfripp Jul 2, 2018
996e70a
Add ev_advanced module to hawaii package (pre-seeded, non-iterative D…
mfripp Jul 12, 2018
dfd519a
Cache last_results object at right point in solution sequence; only l…
mfripp Jul 12, 2018
f79f3bb
Allow specification of RPS levels on command line, overriding rps_tar…
mfripp Jul 14, 2018
a7c22a4
Add --psip-relax-after argument to allow transition from PSIP to opti…
mfripp Jul 14, 2018
8ec9cea
Switch from cap_cost_scen_id to tech_scen_id and use separate specifi…
mfripp Jul 26, 2018
9da47b9
Save subcomponents of total system cost as part of standard outputs
mfripp Jul 27, 2018
aae116d
Add non-electricity part of vehicle fleet cost to system cost
mfripp Jul 27, 2018
fc19cfe
Change version to 2.0.0
mfripp Aug 1, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
gurobi.log
switch_model.egg-info/
venv
build/
2 changes: 1 addition & 1 deletion examples/3zone_toy/inputs/switch_inputs_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b2
2.0.0b4
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b2
2.0.0b4
2 changes: 1 addition & 1 deletion examples/carbon_cap/inputs/switch_inputs_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b2
2.0.0b4
2 changes: 1 addition & 1 deletion examples/ccs/inputs/switch_inputs_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b2
2.0.0b4
2 changes: 1 addition & 1 deletion examples/copperplate0/inputs/switch_inputs_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b2
2.0.0b4
2 changes: 1 addition & 1 deletion examples/copperplate1/inputs/switch_inputs_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b2
2.0.0b4
2 changes: 1 addition & 1 deletion examples/custom_extension/inputs/switch_inputs_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b2
2.0.0b4
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b2
2.0.0b4
2 changes: 1 addition & 1 deletion examples/discrete_build/inputs/switch_inputs_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b2
2.0.0b4
2 changes: 1 addition & 1 deletion examples/dr_simple/inputs/switch_inputs_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b2
2.0.0b4
2 changes: 1 addition & 1 deletion examples/hydro_simple/inputs/switch_inputs_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b2
2.0.0b4
2 changes: 1 addition & 1 deletion examples/hydro_system/inputs/switch_inputs_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b2
2.0.0b4
2 changes: 1 addition & 1 deletion examples/new_builds_only/inputs/switch_inputs_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b2
2.0.0b4
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b2
2.0.0b4
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b2
2.0.0b4
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b2
2.0.0b4
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b2
2.0.0b4
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b2
2.0.0b4
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b2
2.0.0b4
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project power_start_mw power_end_mw incremental_heat_rate_mbtu_per_mwhr fuel_use_rate_mmbtu_per_h
GENERATION_PROJECT power_start_mw power_end_mw incremental_heat_rate_mbtu_per_mwhr fuel_use_rate_mmbtu_per_h
S-NG_CC 40 . . 269.4069
S-NG_CC 40 100.0 6.684885 .
S-NG_GT 0 . . 0.1039
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b2
2.0.0b4
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SYNOPSIS
switch solve --verbose --log-run

This example extends unit_commit by adding spinning reserve requirements.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
param base_financial_year := 2015;
param interest_rate := .07;
param discount_rate := .05;
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
load_zone fuel period fuel_cost
South NaturalGas 2010 4
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fuel co2_intensity upstream_co2_intensity
NaturalGas 0.05306 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
GENERATION_PROJECT build_year gen_overnight_cost gen_fixed_om
S-Geothermal 1998 5524200 0
S-NG_CC 2000 1143900 5868.3
S-NG_GT 1990 605430 4891.8
S-NG_GT 2002 605430 4891.8
S-Central_PV-1 2001 2334300 41850
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
GENERATION_PROJECT build_year gen_predetermined_cap
S-Geothermal 1998 2.0
S-NG_CC 2000 7.0
S-NG_GT 1990 3.0
S-NG_GT 2002 4.0
S-Central_PV-1 2001 3
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
GENERATION_PROJECT power_start_mw power_end_mw incremental_heat_rate_mbtu_per_mwhr fuel_use_rate_mmbtu_per_h
S-NG_CC 40 . . 269.4069
S-NG_CC 40 100.0 6.684885 .
S-NG_GT 0 . . 0.1039
S-NG_GT 0 1.0 10.2861 .
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
GENERATION_PROJECT gen_dbid gen_tech gen_load_zone gen_connect_cost_per_mw gen_capacity_limit_mw gen_max_age gen_min_build_capacity gen_scheduled_outage_rate gen_forced_outage_rate gen_is_variable gen_is_baseload gen_is_cogen gen_variable_om gen_energy_source gen_full_load_heat_rate gen_unit_size gen_min_load_fraction gen_startup_fuel gen_startup_om gen_min_downtime gen_can_provide_spinning_reserves
S-Geothermal 33 Geothermal South 134222 3 30 0 0.0075 0.0241 0 1 0 28.83 Geothermal . . . . . . 0
S-NG_CC 34 NG_CC South 57566.6 . 20 0 0.04 0.06 0 0 0 3.4131 NaturalGas 6.705 1 0.4 9.16 10.3 12 1
S-NG_GT 36 NG_GT South 57566.6 . 20 0 0.04 0.06 0 0 0 27.807 NaturalGas 10.39 . 0 0.22 0.86 . 1
S-Central_PV-1 41 Central_PV South 74881.9 4 20 0 0 0.02 1 0 0 0 Solar . . 0 . 0 . 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
GENERATION_PROJECT SPINNING_RESERVE_TYPES
S-NG_CC spinning
S-NG_GT spinning
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
LOAD_ZONE existing_local_td local_td_annual_cost_per_mw
South 10 128040
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
LOAD_ZONE TIMEPOINT zone_demand_mw
South 1 3
South 2 8
South 3 10
South 4 7
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Core Modules
switch_model
switch_model.timescales
switch_model.financials
switch_model.balancing.load_zones
switch_model.energy_sources.properties
switch_model.generators.core.build
switch_model.generators.core.dispatch
switch_model.reporting
# Custom Modules
switch_model.transmission.local_td
switch_model.generators.core.commit.operate
switch_model.generators.core.commit.fuel_use
switch_model.energy_sources.fuel_costs.simple
switch_model.balancing.operating_reserves.areas
switch_model.balancing.operating_reserves.spinning_reserves_advanced
#switch_model.reporting.dump
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
energy_source
Geothermal
Solar
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
INVESTMENT_PERIOD period_start period_end
2010 2008 2012
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
param contingency_safety_factor := 1;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.0.0b4
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
timepoint_id timestamp timeseries
1 2010011500 2010_all
2 2010011506 2010_all
3 2010011512 2010_all
4 2010011518 2010_all
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
TIMESERIES ts_period ts_duration_of_tp ts_num_tps ts_scale_to_period
2010_all 2010 6 1 1826.25
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
GENERATION_PROJECT timepoint gen_max_capacity_factor
S-Central_PV-1 1 0.0
S-Central_PV-1 2 0.61
S-Central_PV-1 3 1
S-Central_PV-1 4 0.4
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
LOAD_ZONE PERIOD zone_expected_coincident_peak_demand
South 2010 10
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--spinning-requirement-rule 3+5
--unit-contingency
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
28606194.7452
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project power_start_mw power_end_mw incremental_heat_rate_mbtu_per_mwhr fuel_use_rate_mmbtu_per_h
GENERATION_PROJECT power_start_mw power_end_mw incremental_heat_rate_mbtu_per_mwhr fuel_use_rate_mmbtu_per_h
S-NG_CC 40 . . 269.4069
S-NG_CC 40 100.0 6.684885 .
S-NG_GT 0 . . 0.1039
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b2
2.0.0b4
2 changes: 1 addition & 1 deletion examples/rps_simple/inputs/switch_inputs_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b2
2.0.0b4
2 changes: 1 addition & 1 deletion examples/storage/inputs/switch_inputs_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0b2
2.0.0b4
Loading