- /* LARGE PLATFORMS HACK:
- lmm_variable_new(..., total_route_size)*/
- if (action->latency > 0)
- action->variable =
- lmm_variable_new(network_maxmin_system, action, 0.0, -1.0,
- route_size);
- else
- action->variable =
- lmm_variable_new(network_maxmin_system, action, 1.0, -1.0,
- route_size);
-
- if (action->rate < 0) {
- if (action->lat_current > 0)
- lmm_update_variable_bound(network_maxmin_system, action->variable,
- SG_TCP_CTE_GAMMA / (2.0 *
- action->lat_current));
- else
- lmm_update_variable_bound(network_maxmin_system, action->variable,
- -1.0);
- } else {
- if (action->lat_current > 0)
- lmm_update_variable_bound(network_maxmin_system, action->variable,
- min(action->rate,
- SG_TCP_CTE_GAMMA / (2.0 *
- action->
- lat_current)));
- else
- lmm_update_variable_bound(network_maxmin_system, action->variable,
- action->rate);
- }
- lmm_update_variable_latency(network_maxmin_system, action->variable,
- action->latency);
-
- for (i = 0; i < route_size; i++)
- lmm_expand(network_maxmin_system, route[i]->constraint,
- action->variable, 1.0);
- /* LARGE PLATFORMS HACK:
- expand also with src->link and dst->link */
-