Skip to content

Commit 6d34444

Browse files
pesapstaadecker
authored andcommitted
Merge pull request #117 from REAM-lab/hotfix/hydro_constraint
Revert inequality to equality for the hydro simple module
2 parents e638aaa + 1774c32 commit 6d34444

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

REAM Model Changelog.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# REAM Model Breaking Changes
22

33
This file specifies the breaking changes that we have done to the model.
4-
A breaking change is any change that would change the results of previously
4+
A breaking change is any change that might change the results of previously
55
completed runs.
66

77
## List of breaking changes to model
@@ -16,4 +16,6 @@ Changes are listed from oldest (first line) to newest (last line of table).
1616
| #56 | June 2021 | Convert 2020 predetermined build years to 2019 in `get_inputs.py` to avoid conflicts with 2020 period. |
1717
| #57 | June 2021 | Specify predetermined storage energy capacity in inputs (previously left unspecified). |
1818
| #68 | June 2021 | Change financial params to 2018 dollars & 5% interest rate. Start using terrain multipliers (which now include the economic multiplier). |
19-
| #89 | August 2021 | Change hydro module average flow constraint to a monthly constraint rather than per timeseries and change it to a <= rather than ==. |
19+
| #72 | July 2021 | Drop build and O&M costs of existing transmission lines. |
20+
| #89 | August 2021 | Change hydro module average flow constraint to a monthly constraint rather than per timeseries and change it to a <= rather than ==. |
21+
| #117 | January 2022 | Revert hydro module change (#89) to disallow curtailment of hydro (see #114). |

switch_model/generators/extensions/hydro_simple.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def define_components(mod):
185185
# Compute the weighted average of the dispatch
186186
sum(m.DispatchGen[g, t] * m.tp_weight[t] for t in m.TPS_IN_HTS[hts])
187187
/ sum(m.tp_weight[tp] for tp in m.TPS_IN_HTS[hts])
188-
<= m.hydro_avg_flow_mw[g, hts] * enforce_hydro_avg_flow_scaling_factor,
188+
== m.hydro_avg_flow_mw[g, hts] * enforce_hydro_avg_flow_scaling_factor,
189189
)
190190

191191
mod.min_data_check("hydro_min_flow_mw", "hydro_avg_flow_mw")

0 commit comments

Comments
 (0)