Skip to content

Commit b123627

Browse files
authored
Merge pull request #986 from JuliaOpt/bl/mapped_func
Remove duplicate computation in bridges
2 parents c75f92c + 892bb5c commit b123627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bridges/Constraint/set_map.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function bridge_constraint(
44
BT::Type{<:SetMapBridge{T, S2, S1, F, G}}, model::MOI.ModelLike,
55
func::G, set::S1) where {T, S2, S1, F, G}
66
mapped_func = map_function(BT, func)
7-
constraint = MOI.add_constraint(model, map_function(BT, func), map_set(BT, set))
7+
constraint = MOI.add_constraint(model, mapped_func, map_set(BT, set))
88
return BT(constraint)
99
end
1010

0 commit comments

Comments
 (0)