3 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(loba);
5 #include "loba_simple.h"
8 * load balance with a least-loaded neighbor,
9 * without breaking the ping-pong condition
11 double loba_simple::load_balance(double my_load)
17 for (unsigned i = 0 ; i < pneigh.size() ; ++i) {
18 double l = pneigh[i]->get_load();
32 double balance = (my_load - min) / 2;
33 DEBUG6("%d:%g %d:%g %g %g", imin, min, imax, max, my_load, balance);
34 pneigh[imin]->set_to_send(balance);
35 pneigh[imin]->set_load(min+balance);