Skip to content

Commit 7e3c6b3

Browse files
authored
Update src/Bridges/bridge_optimizer.jl
1 parent ae3fe04 commit 7e3c6b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Bridges/bridge_optimizer.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,6 +1761,8 @@ function _get_variable_if_equivalent(b, x)
17611761
return _get_variable_if_equivalent(bridged_variable_function(b, x), x)
17621762
end
17631763

1764+
_get_variable_if_equivalent(b, ::Nothing) = nothing
1765+
17641766
function _get_variable_if_equivalent(f::MOI.ScalarAffineFunction, x)
17651767
if length(f.terms) == 1
17661768
term = only(f.terms)

0 commit comments

Comments
 (0)