equal
deleted
inserted
replaced
125 if (report) std::cerr << "Setup NetworkSimplex class: " << ti << '\n'; |
125 if (report) std::cerr << "Setup NetworkSimplex class: " << ti << '\n'; |
126 ti.restart(); |
126 ti.restart(); |
127 typename MCF::ProblemType res = ns.run(); |
127 typename MCF::ProblemType res = ns.run(); |
128 if (report) { |
128 if (report) { |
129 std::cerr << "Run NetworkSimplex: " << ti << "\n\n"; |
129 std::cerr << "Run NetworkSimplex: " << ti << "\n\n"; |
130 std::cerr << "Feasible flow: " << (res == MCF::OPTIMAL ? "found" : "not found") << '\n'; |
130 std::cerr << "Feasible flow: " << (res == MCF::OPTIMAL ? "found" : |
|
131 "not found") << '\n'; |
131 if (res) std::cerr << "Min flow cost: " |
132 if (res) std::cerr << "Min flow cost: " |
132 << ns.template totalCost<LargeValue>() << '\n'; |
133 << ns.template totalCost<LargeValue>() << '\n'; |
133 } |
134 } |
134 } |
135 } |
135 |
136 |