equal
deleted
inserted
replaced
117 } |
117 } |
118 if (report) std::cerr << "Read the file: " << ti << '\n'; |
118 if (report) std::cerr << "Read the file: " << ti << '\n'; |
119 |
119 |
120 ti.restart(); |
120 ti.restart(); |
121 NetworkSimplex<Digraph, Value> ns(g); |
121 NetworkSimplex<Digraph, Value> ns(g); |
122 ns.lowerMap(lower).capacityMap(cap).costMap(cost).supplyMap(sup); |
122 ns.lowerMap(lower).upperMap(cap).costMap(cost).supplyMap(sup); |
123 if (sum_sup > 0) ns.problemType(ns.LEQ); |
123 if (sum_sup > 0) ns.supplyType(ns.LEQ); |
124 if (report) std::cerr << "Setup NetworkSimplex class: " << ti << '\n'; |
124 if (report) std::cerr << "Setup NetworkSimplex class: " << ti << '\n'; |
125 ti.restart(); |
125 ti.restart(); |
126 bool res = ns.run(); |
126 bool res = ns.run(); |
127 if (report) { |
127 if (report) { |
128 std::cerr << "Run NetworkSimplex: " << ti << "\n\n"; |
128 std::cerr << "Run NetworkSimplex: " << ti << "\n\n"; |