Skip to content

Commit

Permalink
add lot sizing test (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
guimarqu authored May 24, 2019
1 parent d22a4be commit 5fad696
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/full_instances_tests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
function full_instances_tests()
generalized_assignment_tests()
#lot_sizing_tests()
end

function generalized_assignment_tests()
@testset "play gap" begin
data = CLD.GeneralizedAssignment.data("play2.txt")

Expand Down Expand Up @@ -102,4 +107,19 @@ function full_instances_tests()
@test MOI.get(problem.moi_backend.optimizer, MOI.TerminationStatus()) == MOI.OPTIMAL
@test CLD.GeneralizedAssignment.print_and_check_sol(data, problem, x)
end
end

function lot_sizing_tests()
@testset "play single mode multi items lot sizing" begin
data = CLD.SingleModeMultiItemsLotSizing.data("lotSizing-3-20.txt")

coluna = JuMP.with_optimizer(Coluna.Optimizer,
master_factory = with_optimizer(GLPK.Optimizer),
separation_factory = with_optimizer(GLPK.Optimizer)
)

problem, x, y, dec = CLD.SingleModeMultiItemsLotSizing.model(data, coluna)
JuMP.optimize!(problem)

end
end

0 comments on commit 5fad696

Please sign in to comment.