mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 00:08:52 -06:00
Make build_model return a plain JuMP model
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user