diff --git a/include/osp/bsp/scheduler/IlpSchedulers/CoptFullScheduler.hpp b/include/osp/bsp/scheduler/IlpSchedulers/CoptFullScheduler.hpp index e316be7e..4f9866e7 100644 --- a/include/osp/bsp/scheduler/IlpSchedulers/CoptFullScheduler.hpp +++ b/include/osp/bsp/scheduler/IlpSchedulers/CoptFullScheduler.hpp @@ -438,17 +438,20 @@ class CoptFullScheduler : public Scheduler { } } } + } + } - for(unsigned step = 0; step < max_number_supersteps; step++){ - if(step < first_at[node][p1]) - model.SetMipStart(comm_processor_to_processor_superstep_node_var[p1][p1][step] + for (const auto &node : DAG.vertices()) + for (unsigned proc = 0; proc < num_processors; proc++) + for(unsigned step = 0; step < max_number_supersteps; step++) + { + if(step >= first_at[node][proc]) + model.SetMipStart(comm_processor_to_processor_superstep_node_var[proc][proc][step] [static_cast(node)], 1); else - model.SetMipStart(comm_processor_to_processor_superstep_node_var[p1][p1][step] + model.SetMipStart(comm_processor_to_processor_superstep_node_var[proc][proc][step] [static_cast(node)], 0); } - } - } for (const auto &node : DAG.vertices()) {