Skip to content

Commit

Permalink
Add missing paths from ng_out
Browse files Browse the repository at this point in the history
  • Loading branch information
gnawin committed Dec 3, 2024
1 parent cb52ed6 commit eb71988
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/constraints/constraint_ratio_out_in_connection_flow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,17 @@ function constraint_ratio_out_in_connection_flow_indices(m::Model, ratio_out_in)
(
ind
for s in path_out
for ind in connection_flow_indices(
for ind in Iterators.flatten(
(
connection_flow_indices(
m;
connection=conn,
node=ng_in,
direction=direction(:from_node),
t=to_time_slice(m; t=_t_look_behind(conn, ng_out, ng_in, (s,), t)),
temporal_block=anything,
)
),
), connection_flow_indices(m; connection=conn, node=ng_out, direction=direction(:to_node))))
)
)
)
)
Expand Down

0 comments on commit eb71988

Please sign in to comment.