Skip to content

Commit

Permalink
add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rschwarz committed Jun 24, 2018
1 parent 79d3cb0 commit 554f789
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/params.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,16 @@
@test mipm.smplxparam.it_lim == 5910
@test mipm.param.tol_obj == 1.52e-3
end

@testset "Set MPB parameters" begin
# setparameters! on model
lpm = MathProgBase.LinearQuadraticModel(GLPKSolverLP())
MathProgBase.setparameters!(lpm, TimeLimit=23.0)
@test lpm.param.tm_lim == 23000.0

# setparameters! on solver
lps = GLPKSolverLP()
MathProgBase.setparameters!(lps, TimeLimit=23.0)
lpm2 = MathProgBase.LinearQuadraticModel(lps)
@test lpm2.param.tm_lim == 23000.0
end

0 comments on commit 554f789

Please sign in to comment.