Skip to content

Commit

Permalink
Add test for bug in ticket #82
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Jun 1, 2017
1 parent 33cb6c3 commit 9441a87
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using Clp

include("ticket82.jl")

include("mathprog.jl")
10 changes: 10 additions & 0 deletions test/ticket82.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# See https://projects.coin-or.org/Clp/ticket/82
using Clp, Base.Test

m = MathProgBase.LinearQuadraticModel(ClpSolver())
MathProgBase.loadproblem!(m, "ticket82.mps")
MathProgBase.optimize!(m)
@test MathProgBase.status(m) == :Unbounded
expunbray = [0,-1]
unbray = MathProgBase.getunboundedray(m)
@test !isempty(unbray) && norm(unbray - expunbray) < 1e-6
11 changes: 11 additions & 0 deletions test/ticket82.mps
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
NAME
ROWS
N OBJ
COLUMNS
C0 OBJ 1
C1 OBJ 1
RHS
BOUNDS
LO BND1 C0 0
FR BND1 C1
ENDATA

0 comments on commit 9441a87

Please sign in to comment.