Changes in lemon/network_simplex.h [665:b95898314e09:659:0c8e5c688440] in lemon
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/network_simplex.h
r665 r659 1148 1148 // Run Circulation to check if a feasible solution exists 1149 1149 typedef ConstMap<Arc, Flow> ConstArcMap; 1150 ConstArcMap zero_arc_map(0), inf_arc_map(inf_cap);1151 1150 FlowNodeMap *csup = NULL; 1152 1151 bool local_csup = false; … … 1169 1168 } else { 1170 1169 Circulation<GR, FlowArcMap, ConstArcMap, FlowNodeMap> 1171 circ(_graph, *_plower, inf_arc_map, *csup);1170 circ(_graph, *_plower, ConstArcMap(inf_cap), *csup); 1172 1171 circ_result = circ.run(); 1173 1172 } … … 1175 1174 if (_pupper) { 1176 1175 Circulation<GR, ConstArcMap, FlowArcMap, FlowNodeMap> 1177 circ(_graph, zero_arc_map, *_pupper, *csup);1176 circ(_graph, ConstArcMap(0), *_pupper, *csup); 1178 1177 circ_result = circ.run(); 1179 1178 } else { 1180 1179 Circulation<GR, ConstArcMap, ConstArcMap, FlowNodeMap> 1181 circ(_graph, zero_arc_map, inf_arc_map, *csup);1180 circ(_graph, ConstArcMap(0), ConstArcMap(inf_cap), *csup); 1182 1181 circ_result = circ.run(); 1183 1182 } … … 1196 1195 } else { 1197 1196 Circulation<RevGraph, FlowArcMap, ConstArcMap, NegNodeMap> 1198 circ(rgraph, *_plower, inf_arc_map, neg_csup);1197 circ(rgraph, *_plower, ConstArcMap(inf_cap), neg_csup); 1199 1198 circ_result = circ.run(); 1200 1199 } … … 1202 1201 if (_pupper) { 1203 1202 Circulation<RevGraph, ConstArcMap, FlowArcMap, NegNodeMap> 1204 circ(rgraph, zero_arc_map, *_pupper, neg_csup);1203 circ(rgraph, ConstArcMap(0), *_pupper, neg_csup); 1205 1204 circ_result = circ.run(); 1206 1205 } else { 1207 1206 Circulation<RevGraph, ConstArcMap, ConstArcMap, NegNodeMap> 1208 circ(rgraph, zero_arc_map, inf_arc_map, neg_csup);1207 circ(rgraph, ConstArcMap(0), ConstArcMap(inf_cap), neg_csup); 1209 1208 circ_result = circ.run(); 1210 1209 }
Note: See TracChangeset
for help on using the changeset viewer.