if (action->latency_ > 0) {
action->set_variable(get_maxmin_system()->variable_new(action, 0.0, -1.0, constraints_per_variable));
if (action->latency_ > 0) {
action->set_variable(get_maxmin_system()->variable_new(action, 0.0, -1.0, constraints_per_variable));
// add to the heap the event when the latency is payed
double date = action->latency_ + action->get_last_update();
// add to the heap the event when the latency is payed
double date = action->latency_ + action->get_last_update();