Add units to input and output files; bump version to 0.2.0

This commit is contained in:
2020-06-05 15:38:34 -05:00
parent b8cf6537a0
commit 0fc64085a8
14 changed files with 601 additions and 1115 deletions

View File

@@ -45,17 +45,17 @@ using RELOG, Cbc, JuMP, Printf, JSON, MathOptInterface.FileFormats
solution = RELOG.solve("$(pwd())/../instances/s1.json")
JSON.print(stdout, solution, 4)
@test "costs" in keys(solution)
@test "fixed operating" in keys(solution["costs"])
@test "transportation" in keys(solution["costs"])
@test "variable operating" in keys(solution["costs"])
@test "total" in keys(solution["costs"])
@test "Costs" in keys(solution)
@test "Fixed operating (\$)" in keys(solution["Costs"])
@test "Transportation (\$)" in keys(solution["Costs"])
@test "Variable operating (\$)" in keys(solution["Costs"])
@test "Total (\$)" in keys(solution["Costs"])
@test "plants" in keys(solution)
@test "F1" in keys(solution["plants"])
@test "F2" in keys(solution["plants"])
@test "F3" in keys(solution["plants"])
@test "F4" in keys(solution["plants"])
@test "Plants" in keys(solution)
@test "F1" in keys(solution["Plants"])
@test "F2" in keys(solution["Plants"])
@test "F3" in keys(solution["Plants"])
@test "F4" in keys(solution["Plants"])
end
end