Skip to content

Commit e80dc56

Browse files
committed
Fix
1 parent e76c793 commit e80dc56

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Bridges/lazy_bridge_optimizer.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,16 +276,16 @@ function node(
276276
# previously.
277277
variable_node = get(b.variable_node, (S,), nothing)
278278
if variable_node !== nothing
279-
# The inner model supports `S` but with a non-zero bridging cost.
280-
# Create a leaf node whose distance is `inner_cost` so that bridges
281-
# that emit constrained variables in `S` account for it.
282279
return variable_node
283280
end
284281
# This is a new (S,). We need to add it to the graph.
285282
variable_node = add_node(b.graph, VariableNode)
286283
b.variable_node[(S,)] = variable_node
287284
push!(b.variable_types, (S,))
288285
if !isnothing(inner_cost)
286+
# The inner model supports `S` but with a non-zero bridging cost.
287+
# Create a leaf node whose distance is `inner_cost` so that bridges
288+
# that emit constrained variables in `S` account for it.
289289
b.graph.variable_dist[variable_node.index] = inner_cost
290290
return variable_node
291291
end

0 commit comments

Comments
 (0)