Skip to content

Commit 6bb1d9a

Browse files
committed
Apply review suggestions
1 parent fa3ad37 commit 6bb1d9a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/src/30-concepts.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ This example of a `phs` and a `wind` asset is useful for illustrating the advant
5656

5757
In _TulipaEnergyModel.jl_, flows can be both input/output flows and transport flows (i.e., where you model a transmission asset). In the above illustrative example, `wind-balance` is an energy output flow, representing the production from `wind` directly sent to `balance`. In this case, the flow has a direction from `wind` to `balance`. However, in principle, any flow can be a transport flow and by definition in _TulipaEnergyModel.jl_, transport flows are bidirectional.
5858

59-
Let's zoom in to the `phs-wind-balance` triangle and see what happens in the below figure. On the left, all three flows become transport flows, and they are now bidiretional. Flows can go towards `wind`, which can be counter-intuitive: what does it mean to have a producer receiving energy? Translating into a standard method may help the thinking, we are essentially modeling the case on the right. Producer cannot receive energy, but transport flows can pass through an extra node with a unidirectional flow from the producer. We reduce this unnecessary node, but the modeling problem is not changed.
59+
Let's zoom in on the `phs-wind-balance` triangle and see what happens in the figure below. To the left, all three flows have transformed into transport flows, and they are now bidirectional. Flows can go towards `wind`, which can be counter-intuitive: what does it mean to have a producer receiving energy? Translating into a standard method may help the thinking, we are essentially modeling the case to the right. The producer cannot receive energy, but transport flows can pass through an extra node with a unidirectional flow from the producer. We reduce this unnecessary node, but the modeling problem is not changed.
6060

6161
![Flexible connection with transport flows](./figs/flexible-connection-3.png)
6262

@@ -68,7 +68,7 @@ Let's zoom in to the `phs-wind-balance` triangle and see what happens in the bel
6868
One of the core features of _TulipaEnergyModel.jl_ is that it can handle different time resolutions on the assets and the flows. Typically, the time resolution in an energy model is hourly, like in the following figure where we have a 6-hour energy system:
6969

7070
![Hourly Time Resolution](./figs/variable-time-resolution-1.png)
71-
]
71+
7272
Therefore, for this simple example, we can determine the number of constraints and variables in the optimization problem:
7373

7474
- _Number of variables_: 42 since we have six connections among assets (i.e., 6 flows x 6 hours = 36 variables) and one storage asset (i.e., 1 storage level x 6 h = 6 variables)

src/constraints/transport.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function add_transport_constraints!(
9090
)
9191
end
9292

93-
# - Minmum output flows limit if any of the flows is transport flow
93+
# - Minimum output flows limit if any of the flows is transport flow
9494
# - This allows some negative flows but not all negative flows, so transport flows can pass through this asset
9595
# - Holds for producers, conversion and storage assets
9696
let table_name = :min_outgoing_flow_for_transport_flows_without_unit_commitment,
@@ -111,9 +111,9 @@ function add_transport_constraints!(
111111
)
112112
end
113113

114-
# - Minmum input flows limit if any of the flows is transport flow
114+
# - Minimum input flows limit if any of the flows is transport flow
115115
# - This allows some negative flows but not all negative flows, so transport flows can pass through this asset
116-
# - Holds for onversion and storage assets
116+
# - Holds for conversion and storage assets
117117
let table_name = :min_incoming_flow_for_transport_flows,
118118
cons_name = Symbol("min_input_flows_limit_for_transport_flows")
119119

0 commit comments

Comments
 (0)