Skip to content

Commit 020a92f

Browse files
committed
Fix rebase
1 parent b20e285 commit 020a92f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/Nonlinear/ReverseAD.jl

+6-1
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,12 @@ function test_NLPBlockData()
451451
Nonlinear.add_constraint(data, :($x >= 2))
452452
Nonlinear.add_constraint(data, :($x == 3))
453453
Nonlinear.add_constraint(data, :(4 <= $x <= 5))
454-
block = MOI.NLPBlockData(data, [x])
454+
Nonlinear.set_differentiation_backend(
455+
data,
456+
Nonlinear.SparseReverseMode(),
457+
[x],
458+
)
459+
block = MOI.NLPBlockData(data)
455460
@test block.constraint_bounds == [
456461
MOI.NLPBoundsPair(-Inf, 0.0),
457462
MOI.NLPBoundsPair(0.0, Inf),

0 commit comments

Comments
 (0)