Skip to content

Commit

Permalink
Modify sets
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-tomasini committed Nov 28, 2024
1 parent a7ff3a8 commit 2284c02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/optimization/pyomo_models/constraints/basin_volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
:nowrap:
\\begin{align}
V_\\text{BAS}^{t,~b} \leq V_\\text{BAS, MAX}^{b,~s\_b} + V_\\text{BAS, MAX}^{b,~S\_B_\\text{MAX}\{b\}}
V_\\text{BAS}^{t,~b} \leq V_\\text{BAS, MAX}^{b,~s\_b} + V_\\text{BAS, MAX}^{b,~S\_B_\\text{END}\{b\}}
\cdot \left(1 -S_\\text{BAS}^{t,~b,~s\_b} \\right)
\\end{align}
Expand Down
3 changes: 2 additions & 1 deletion src/optimization/pyomo_models/sets.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
The sets :math:`T`, :math:`S\_H` and :math:`S\_B` are arranged in a specific order such that indexing a variable with
the last element of a set (i.e :math:`t_{LAST} \in T`) corresponds to the highest or final element of that variable.
the first or last element of a set (i.e :math:`t_{0} ant math:`t_{\\text{END}} \in T`) corresponds respectively to the
lowest/first or highest/final element of that variable.
:math:`S\_H` and :math:`S\_B` include subset to specify the corresponding hydro powerplants and basins that the
state is associated with, respectively. The sets are constructed as demonstrated in the following example. To collect
Expand Down

0 comments on commit 2284c02

Please sign in to comment.