3 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(loba);
5 #include "loba_makhoul.h"
7 void loba_makhoul::load_balance()
9 pneigh_sort_by_load(std::less<double>());
11 print_loads_p(false, xbt_log_priority_debug);
13 double alpha = 1.0 / (pneigh.size() + 1.0);
17 (delta = get_load() - pneigh[i]->get_load()) > 0.0 ;
19 send(pneigh[i], delta * alpha);