tools/dimacs-solver.cc
changeset 1322 1552352f9798
parent 1270 dceba191c00d
child 1386 ad22262328b3
equal deleted inserted replaced
19:bb023204526a 20:e08ccae68986
   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