Skip to content

Commit 794dd56

Browse files
authored
Don't access vector with [] (#238)
1 parent 5ee5bf5 commit 794dd56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/jump.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ end
6767

6868
DiffOpt.reverse_differentiate!(model)
6969

70-
grad_constraint = JuMP.constant(MOI.get(model, DiffOpt.ReverseConstraintFunction(), ctr_le[]))
70+
grad_constraint = JuMP.constant(MOI.get(model, DiffOpt.ReverseConstraintFunction(), ctr_le[1]))
7171
@test grad_constraint -1.0 atol=ATOL rtol=RTOL
7272

7373
# Test some overloads from https://github.com/jump-dev/DiffOpt.jl/issues/211

0 commit comments

Comments
 (0)