|
|
|
@ -42,9 +42,15 @@ using RELOG, Cbc, JuMP, Printf, JSON, MathOptInterface.FileFormats
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
@testset "solve (exact)" begin
|
|
|
|
|
solution_filename = tempname()
|
|
|
|
|
solution_filename_a = tempname()
|
|
|
|
|
solution_filename_b = tempname()
|
|
|
|
|
solution = RELOG.solve("$(pwd())/../instances/s1.json",
|
|
|
|
|
output=solution_filename)
|
|
|
|
|
output=solution_filename_a)
|
|
|
|
|
|
|
|
|
|
@test isfile(solution_filename_a)
|
|
|
|
|
|
|
|
|
|
RELOG.write(solution, solution_filename_b)
|
|
|
|
|
@test isfile(solution_filename_b)
|
|
|
|
|
|
|
|
|
|
@test "Costs" in keys(solution)
|
|
|
|
|
@test "Fixed operating (\$)" in keys(solution["Costs"])
|
|
|
|
|