Changes in tools/dimacs-solver.cc [1006:764826c6e2b4:877:141f9c0db4a3] in lemon-main
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/dimacs-solver.cc
r1006 r877 118 118 if (report) std::cerr << "Read the file: " << ti << '\n'; 119 119 120 typedef NetworkSimplex<Digraph, Value> MCF; 121 ti.restart(); 122 MCF ns(g); 120 ti.restart(); 121 NetworkSimplex<Digraph, Value> ns(g); 123 122 ns.lowerMap(lower).upperMap(cap).costMap(cost).supplyMap(sup); 124 123 if (sum_sup > 0) ns.supplyType(ns.LEQ); 125 124 if (report) std::cerr << "Setup NetworkSimplex class: " << ti << '\n'; 126 125 ti.restart(); 127 typename MCF::ProblemTyperes = ns.run();126 bool res = ns.run(); 128 127 if (report) { 129 128 std::cerr << "Run NetworkSimplex: " << ti << "\n\n"; 130 std::cerr << "Feasible flow: " << (res == MCF::OPTIMAL? "found" : "not found") << '\n';129 std::cerr << "Feasible flow: " << (res ? "found" : "not found") << '\n'; 131 130 if (res) std::cerr << "Min flow cost: " 132 131 << ns.template totalCost<LargeValue>() << '\n'; … … 189 188 190 189 int main(int argc, const char *argv[]) { 190 typedef SmartDigraph Digraph; 191 192 typedef Digraph::Arc Arc; 191 193 192 194 std::string inputName;
Note: See TracChangeset
for help on using the changeset viewer.