Element& elem = var->cnsts_.back();
elem.consumption_weight = consumption_weight;
+ elem.max_consumption_weight = consumption_weight;
elem.constraint = cnst;
elem.variable = var;
if (var->sharing_penalty_ != 0.0)
elem.decrease_concurrency();
+ elem.max_consumption_weight = std::max(elem.max_consumption_weight, value);
if (cnst->sharing_policy_ != Constraint::SharingPolicy::FATPIPE)
elem.consumption_weight += value;
else