Skip to content

Commit 5113de0

Browse files
committed
Add Compat prefix for mapreduce
1 parent 7d0a6c0 commit 5113de0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Bridges/lazybridgeoptimizer.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ function update_dist!(b::LazyBridgeOptimizer, constraints)
4545
for (F, S) in constraints
4646
if MOI.supports_constraint(BT, F, S) && all(C -> supports_constraint_no_update(b, C[1], C[2]), added_constraint_types(BT, F, S))
4747
# Number of bridges needed using BT
48-
dist = 1 + mapreduce(C -> _dist(b, C[1], C[2]), +,
49-
added_constraint_types(BT, F, S),
50-
init = 0)
48+
dist = 1 + Compat.mapreduce(
49+
C -> _dist(b, C[1], C[2]), +,
50+
added_constraint_types(BT, F, S), init = 0)
5151
# Is it better that what can currently be done ?
5252
if dist < _dist(b, F, S)
5353
b.dist[(F, S)] = dist

0 commit comments

Comments
 (0)