Make build_model return a plain JuMP model

This commit is contained in:
2021-05-27 11:09:06 -05:00
parent 5c81be4660
commit 607bbeb75c
10 changed files with 626 additions and 597 deletions

View File

@@ -53,7 +53,7 @@ model = UnitCommitment.build_model(
UnitCommitment.optimize!(model)
# Extract solution and write it to a file
solution = UnitCommitment.get_solution(model)
solution = UnitCommitment.solution(model)
open("/path/to/output.json", "w") do file
JSON.print(file, solution, 2)
end