- XBT_DEBUG("Min usage: %f, Var(%d)->weight: %f, Var(%d)->value: %f ", min_usage, var->id_int, var->sharing_weight,
- var->id_int, var->value);
-
- /* Update the usage of contraints where this variable is involved */
- for (s_lmm_element_t& elem : var->cnsts) {
- lmm_constraint_t cnst = elem.constraint;
- if (cnst->sharing_policy) {
- // Remember: shared constraints require that sum(elem.value * var->value) < cnst->bound
- double_update(&(cnst->remaining), elem.consumption_weight * var->value, cnst->bound * sg_maxmin_precision);
- double_update(&(cnst->usage), elem.consumption_weight / var->sharing_weight, sg_maxmin_precision);
+ XBT_DEBUG("Min usage: %f, Var(%d).penalty: %f, Var(%d).value: %f ", min_usage, var.rank_, var.sharing_penalty_,
+ var.rank_, var.value_);
+
+ /* Update the usage of constraints where this variable is involved */
+ for (Element& elem : var.cnsts_) {
+ Constraint* cnst = elem.constraint;
+ if (cnst->sharing_policy_ != s4u::Link::SharingPolicy::FATPIPE) {
+ // Remember: shared constraints require that sum(elem.value * var.value) < cnst->bound
+ double_update(&(cnst->remaining_), elem.consumption_weight * var.value_, cnst->bound_ * sg_maxmin_precision);
+ double_update(&(cnst->usage_), elem.consumption_weight / var.sharing_penalty_, sg_maxmin_precision);