Skip to content

Commit 4971f84

Browse files
authored
fix the tests for lp_dual_abs_atom (#439)
1 parent da206ee commit 4971f84

File tree

1 file changed

+4
-1
lines changed
  • src/problem_depot/problems

1 file changed

+4
-1
lines changed

src/problem_depot/problems/lp.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
@test p.constraints[2].dual 1 atol=atol rtol=rtol
2727
@test p.constraints[3].dual[1,1] 0 atol=atol rtol=rtol
2828
@test p.constraints[3].dual[2,2] 0 atol=atol rtol=rtol
29-
@test p.constraints[3].dual[1,2] p.constraints[3].dual[2,1] atol=atol rtol=rtol
29+
@test p.constraints[3].dual[1,2] <= 1 + atol
30+
@test p.constraints[3].dual[2,1] <= 1 + atol
31+
@test p.constraints[3].dual[1,2] >= -atol
32+
@test p.constraints[3].dual[2,1] >= -atol
3033
end
3134
end
3235

0 commit comments

Comments
 (0)