25 std::vector<ExchangeNode::Ptr>::iterator
n_it;
26 std::map<Arc, std::vector<double> >::iterator
c_it;
27 std::map<Arc, double>::iterator
p_it;
28 std::vector<RequestGroup::Ptr>::iterator
rg_it;
29 std::vector<ExchangeNodeGroup::Ptr>::iterator
sg_it;
32 double max_coeff = std::numeric_limits<double>::min();
33 double min_unit_cap = std::numeric_limits<double>::max();
38 std::vector<ExchangeNode::Ptr>& nodes = (*sg_it)->nodes();
39 for (
n_it = nodes.begin();
n_it != nodes.end(); ++
n_it) {
41 std::map<Arc, std::vector<double> >::iterator
c_it;
42 std::map<Arc, std::vector<double> >&
caps = (*n_it)->unit_capacities;
44 std::vector<double>&
ucaps =
c_it->second;
57 std::vector<ExchangeNode::Ptr>& nodes = (*rg_it)->nodes();
58 for (
n_it = nodes.begin();
n_it != nodes.end(); ++
n_it) {
60 std::map<Arc, std::vector<double> >::iterator
c_it;
61 std::map<Arc, std::vector<double> >&
caps = (*n_it)->unit_capacities;
63 std::vector<double>&
ucaps =
c_it->second;
72 std::map<Arc, double>& prefs = (*n_it)->prefs;
73 for (
p_it = prefs.begin();
p_it != prefs.end(); ++
p_it) {