tools/dimacs-solver.cc
changeset 1112 6aea07d5ca48
parent 1092 dceba191c00d
child 1170 ad22262328b3
equal deleted inserted replaced
17:bb023204526a 18: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