Make output file more readable; add option to export solution

This commit is contained in:
2020-08-13 12:53:13 -05:00
parent d8c9a1b30a
commit a815ec4230
5 changed files with 62 additions and 50 deletions

View File

@@ -42,7 +42,8 @@ using RELOG, Cbc, JuMP, Printf, JSON, MathOptInterface.FileFormats
end
@testset "solve" begin
solution = RELOG.solve("$(pwd())/../instances/s1.json")
solution = RELOG.solve("$(pwd())/../instances/s1.json",
output_filename="$(pwd())/../tmp/sol.json")
@test "Costs" in keys(solution)
@test "Fixed operating (\$)" in keys(solution["Costs"])