Skip to content

Commit

Permalink
Polyhedral: test ambient dim for lp
Browse files Browse the repository at this point in the history
  • Loading branch information
benlorenz committed Oct 25, 2023
1 parent 8e0e157 commit 4658ece
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/PolyhedralGeometry/linear_program.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
@test LP2 isa LinearProgram{T}
@test LP3 isa LinearProgram{T}

@test ambient_dim(LP1) == 2

@test solve_lp(LP1)==(4,[1,1])
@test solve_lp(LP2)==(-1,[-1,-1])
if T == QQFieldElem
Expand All @@ -43,6 +45,8 @@
@test MILP2 isa MixedIntegerLinearProgram{T}
@test MILP3 isa MixedIntegerLinearProgram{T}

@test ambient_dim(MILP3) == 3

@test solve_milp(MILP1)==(11//2,[1,3//2])
@test solve_milp(MILP2)==(-1,[-1,-1])
@test string(solve_milp(MILP3))==string("(inf, nothing)")
Expand Down

0 comments on commit 4658ece

Please sign in to comment.