Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for bug in ticket #82 #20

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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