Skip to content

Commit

Permalink
Fix bug storage method (#651)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnawin committed Jun 12, 2024
1 parent e3d52d4 commit 85817cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/formulation.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Where:

```math
\begin{aligned}
assets\_investment\_cost &= \sum_{a \in \mathcal{A}^{\text{i}} } p^{\text{inv cost}}_{a} \cdot p^{\text{capacity}}_{a} \cdot v^{\text{inv}}_{a} \\ &+ \sum_{a \in \mathcal{A}^{\text{se}} } p^{\text{inv cost energy}}_{a} \cdot p^{\text{energy capacity}}_{a} \cdot v^{\text{inv energy}}_{a} \\
assets\_investment\_cost &= \sum_{a \in \mathcal{A}^{\text{i}} } p^{\text{inv cost}}_{a} \cdot p^{\text{capacity}}_{a} \cdot v^{\text{inv}}_{a} \\ &+ \sum_{a \in \mathcal{A}^{\text{se}} \cap \mathcal{A}^{\text{i}} } p^{\text{inv cost energy}}_{a} \cdot p^{\text{energy capacity}}_{a} \cdot v^{\text{inv energy}}_{a} \\
flows\_investment\_cost &= \sum_{f \in \mathcal{F}^{\text{ti}}} p^{\text{inv cost}}_{f} \cdot p^{\text{capacity}}_{f} \cdot v^{\text{inv}}_{f} \\
flows\_variable\_cost &= \sum_{f \in \mathcal{F}} \sum_{k \in \mathcal{K}} \sum_{b_k \in \mathcal{B_k}} p^{\text{rp weight}}_{k} \cdot p^{\text{variable cost}}_{f} \cdot p^{\text{duration}}_{b_k} \cdot v^{\text{flow}}_{f,k,b_k}
\end{aligned}
Expand Down
2 changes: 1 addition & 1 deletion src/create-model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ function create_model(graph, representative_periods, dataframes, timeframe; writ
sum(
graph[a].investment_cost_storage_energy *
graph[a].capacity_storage_energy *
assets_investment_energy[a] for a in Ase
assets_investment_energy[a] for a in Ase Ai
)
)

Expand Down

0 comments on commit 85817cc

Please sign in to comment.