@@ -282,7 +282,7 @@ function variables_flow(m, ℒ::Vector{<:Link}, 𝒳ᵛᵉᶜ, 𝒫, 𝒯, model
282282 end
283283
284284 # Create new flow variables for specific resource types
285- for p_sub in res_types_vec (𝒫)
285+ for p_sub ∈ res_types_vec (𝒫)
286286 variables_flow_resource (m, ℒ, p_sub, 𝒯, modeltype)
287287 end
288288end
@@ -615,7 +615,7 @@ function create_element(m, n::Node, 𝒯, 𝒫, modeltype::EnergyModel)
615615
616616 # Constraints based on the resource types
617617 node_resources = Vector {Resource} (unique (vcat (inputs (n), outputs (n))))
618- for 𝒫ˢᵘᵇ in res_types_vec (node_resources)
618+ for 𝒫ˢᵘᵇ ∈ res_types_vec (node_resources)
619619 constraints_resource (m, n, 𝒯, 𝒫ˢᵘᵇ, modeltype)
620620 end
621621end
@@ -625,7 +625,7 @@ function create_element(m, l::Link, 𝒯, 𝒫, modeltype::EnergyModel)
625625 create_link (m, l, 𝒯, 𝒫, modeltype)
626626
627627 # Constraints based on the resource types
628- for 𝒫ˢᵘᵇ in res_types_vec (link_res (l))
628+ for 𝒫ˢᵘᵇ ∈ res_types_vec (link_res (l))
629629 constraints_resource (m, l, 𝒯, 𝒫ˢᵘᵇ, modeltype)
630630 end
631631end
@@ -676,7 +676,7 @@ function constraints_couple(m, 𝒩::Vector{<:Node}, ℒ::Vector{<:Link}, 𝒫,
676676 end
677677
678678 # Create new constraints for specific resource types
679- for p_sub in res_types_vec (𝒫)
679+ for p_sub ∈ res_types_vec (𝒫)
680680 constraints_couple_resource (m, 𝒩, ℒ, p_sub, 𝒯, modeltype)
681681 end
682682end
0 commit comments