@@ -981,7 +981,7 @@ function create_node(m, n::Sink, 𝒯, 𝒫, modeltype::EnergyModel)
981981end
982982
983983"""
984- create_node(m, n::Availability, 𝒯, 𝒫::Vector{<:Resource} , modeltype::EnergyModel)
984+ create_node(m, n::Availability, 𝒯, 𝒫, modeltype::EnergyModel)
985985
986986Set all constraints for a `Availability`. Can serve as fallback option for all unspecified
987987subtypes of `Availability`.
@@ -992,6 +992,7 @@ available node except if one wants to include as well transport between differen
992992"""
993993function create_node (m, n:: Availability , 𝒯, 𝒫, modeltype:: EnergyModel )
994994
995+ # Mass/energy balance constraints for an availability node.
995996 @constraint (m, [t ∈ 𝒯, p ∈ inputs (n)],
996997 m[:flow_in ][n, t, p] == m[:flow_out ][n, t, p]
997998 )
@@ -1018,18 +1019,17 @@ function create_link(m, l::Link, 𝒯, 𝒫, modeltype::EnergyModel)
10181019 return create_link (m, 𝒯, 𝒫, l, modeltype, formulation (l))
10191020end
10201021function create_link (m, l:: Direct , 𝒯, 𝒫, modeltype:: EnergyModel )
1021-
1022+ # Generic link in which each output corresponds to the input
10221023 @constraint (m, [t ∈ 𝒯, p ∈ link_res (l)],
10231024 m[:link_out ][l, t, p] == m[:link_in ][l, t, p]
10241025 )
10251026end
10261027function create_link (m, 𝒯, 𝒫, l:: Link , modeltype:: EnergyModel , formulation:: Formulation )
1027-
10281028 # Generic link in which each output corresponds to the input
10291029 @constraint (m, [t ∈ 𝒯, p ∈ link_res (l)],
10301030 m[:link_out ][l, t, p] == m[:link_in ][l, t, p]
10311031 )
1032-
1032+
10331033 # Call of the function for limiting the capacity to the maximum installed capacity
10341034 if has_capacity (l)
10351035 constraints_capacity_installed (m, l, 𝒯, modeltype)
0 commit comments