Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Bridges/bridge_optimizer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ function MOIU.pass_nonvariable_constraints(
if Variable.has_bridges(Variable.bridges(dest))
# The functions may contained bridged variables which needs to be
# substituted so we use the fallback.
MOIU.pass_nonvariable_constraints_fallback(
return MOIU.pass_nonvariable_constraints_fallback(
dest,
src,
idxmap,
Expand Down
4 changes: 3 additions & 1 deletion test/Bridges/lazy_bridge_optimizer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,9 @@ end
ci_bridged = first(MOI.get(model, MOI.ListOfConstraintIndices{F,S}()))
attr = MOI.ConstraintFunction()
@test MOI.get(bridged, attr, ci_bridged) ≈ f(vi_bridged)
ci_sdpa = first(MOI.get(model, MOI.ListOfConstraintIndices{F,S}()))
cis = MOI.get(model, MOI.ListOfConstraintIndices{F,S}())
@test length(cis) == 1
ci_sdpa = first(cis)
func = [1.0, -1.0]'MOI.SingleVariable.(vis_sdpa)
@test MOI.get(model, attr, ci_sdpa) ≈ func
end
Expand Down