4 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(loba);
6 #include "loba_makhoul.h"
8 void loba_makhoul::load_balance()
10 std::sort(pneigh.begin(), pneigh.end(), pneigh_load_less());
12 print_loads_p(false, xbt_log_priority_debug);
14 double alpha = 1.0 / (pneigh.size() + 1.0);
18 (delta = get_load() - pneigh[i]->get_load()) > 0.0 ;
20 send(pneigh[i], delta * alpha);