Revise docs and struct name; add basic MPI test

This commit is contained in:
2023-05-26 10:52:23 -05:00
parent 9dc3607c56
commit 3961aedaf5
13 changed files with 230 additions and 226 deletions

View File

@@ -5,12 +5,9 @@
using MPI, DataStructures
const FIRST_STAGE_VARS = ["Is on", "Switch on", "Switch off"]
function solution(
model::JuMP.Model,
method::ProgressiveHedging.Method,
)::OrderedDict
function solution(model::JuMP.Model, method::ProgressiveHedging)::OrderedDict
comm = MPI.COMM_WORLD
mpi = ProgressiveHedging.MpiInfo(comm)
mpi = MpiInfo(comm)
sp_solution = UnitCommitment.solution(model)
gather_solution = OrderedDict()
for (solution_key, dict) in sp_solution