double max_penalty_out = 0.0;
// first, compute all outbound penalties to get their max
for (std::vector<ActiveComm*>::iterator it = root->ActiveCommsUp.begin(); it != root->ActiveCommsUp.end(); ++it) {
double max_penalty_out = 0.0;
// first, compute all outbound penalties to get their max
for (std::vector<ActiveComm*>::iterator it = root->ActiveCommsUp.begin(); it != root->ActiveCommsUp.end(); ++it) {