Skip to content

Commit

Permalink
Update the explanation of the features (variable time resolution) (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
datejada committed Dec 11, 2023
1 parent 895220c commit f5899c9
Show file tree
Hide file tree
Showing 8 changed files with 111 additions and 70 deletions.
6 changes: 3 additions & 3 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ makedocs(;
),
pages = [
"Home" => "index.md",
"API" => "api.md",
"How to Use" => "how-to-use.md",
"Mathematical Formulation" => "mathematical-formulation.md",
"Features" => "features.md",
"Mathematical Formulation" => "mathematical-formulation.md",
"How to Use" => "how-to-use.md",
"Tutorial" => "tutorial.md",
"API" => "api.md",
"Reference" => "reference.md",
],
)
Expand Down
161 changes: 101 additions & 60 deletions docs/src/features.md

Large diffs are not rendered by default.

Binary file modified docs/src/figs/variable-time-resolution-2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ If you want to ask a question unsuitable for a bug report, start a discussion [h
## Contents

```@contents
Pages = ["index.md","api.md","how-to-use.md","mathematical-formulation.md","tutorial.md","reference.md"]
Pages = ["index.md","features.md","mathematical-formulation.md","how-to-use.md","tutorial.md","api.md","reference.md"]
```
2 changes: 1 addition & 1 deletion docs/src/mathematical-formulation.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ v^{flow}_{f,rp,k} \leq p^{profile}_{f,rp,k} \cdot \left(p^{init\_capacity}_{f} +

```math
\begin{aligned}
v^{flow}_{f,rp,k} \geq p^{profile}_{f,rp,k} \cdot \left(p^{init\_capacity}_{f} + p^{import\_capacity}_f \cdot v^{investment}_f \right) \quad
v^{flow}_{f,rp,k} \geq - p^{profile}_{f,rp,k} \cdot \left(p^{init\_capacity}_{f} + p^{import\_capacity}_f \cdot v^{investment}_f \right) \quad
\\ \\ \forall f \in \mathcal{F}_t, \forall rp \in \mathcal{RP},\forall k \in \mathcal{K}
\end{aligned}
```
Expand Down
2 changes: 1 addition & 1 deletion test/inputs/Variable Resolution/assets-partitions.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
,,,
asset,rep_period_id,specification,partition
H2,1,uniform,6
wind,1,math,1x4+1x2
wind,1,uniform,6
phs,1,uniform,6
6 changes: 3 additions & 3 deletions test/inputs/Variable Resolution/flows-partitions.csv
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
,,,,
from_asset,to_asset,rep_period_id,specification,partition
H2,ccgt,1,uniform,6
wind,balance,1,math,1x4+1x2
wind,phs,1,math,1x4+1x2
phs,balance,1,uniform,3
wind,balance,1,math,1x2+1x4
wind,phs,1,uniform,3
phs,balance,1,math,1x4+1x2
balance,demand,1,uniform,3
2 changes: 1 addition & 1 deletion test/test-case-studies.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ end
@testset "Tiny Variable Resolution Case Study" begin
dir = joinpath(INPUT_FOLDER, "Variable Resolution")
energy_problem = run_scenario(dir)
@test energy_problem.objective_value 28.43650 atol = 1e-5
@test energy_problem.objective_value 28.45872 atol = 1e-5
end

@testset "Infeasible Case Study" begin
Expand Down

0 comments on commit f5899c9

Please sign in to comment.