Skip to content

Commit

Permalink
Fixes #814 - Don't check boundary connection type
Browse files Browse the repository at this point in the history
  • Loading branch information
DillonJ committed Dec 5, 2023
1 parent 7239d7b commit d988301
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/constraints/constraint_connection_intact_flow_ptdf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ function add_constraint_connection_intact_flow_ptdf!(m::Model)
* connection_availability_factor[(connection=conn, stochastic_scenario=s, t=t)]
* connection_flow[conn1, n1, d, s, t]
for n in node(is_boundary_node=true)
if n in ptdf_connection__node(connection=conn)
&& node_opf_type(node=n) != :node_opf_type_reference
if node_opf_type(node=n) != :node_opf_type_reference
for (conn1, n1, d, s, t) in connection_flow_indices(
m; node=n, direction=direction(:to_node), stochastic_scenario=s, t=t
)
Expand All @@ -85,8 +84,7 @@ function add_constraint_connection_intact_flow_ptdf!(m::Model)
* connection_availability_factor[(connection=conn, stochastic_scenario=s, t=t)]
* connection_flow[conn1, n1, d, s, t]
for n in node(is_boundary_node=true)
if n in ptdf_connection__node(connection=conn)
&& node_opf_type(node=n) != :node_opf_type_reference
if node_opf_type(node=n) != :node_opf_type_reference
for (conn1, n1, d, s, t) in connection_flow_indices(
m; node=n, direction=direction(:from_node), stochastic_scenario=s, t=t
)
Expand Down

0 comments on commit d988301

Please sign in to comment.