tools/dimacs-solver.cc
changeset 636 6c408d864fa1
parent 606 19b6f20e0ea2
child 640 8d289c89d43e
equal deleted inserted replaced
9:38fc7b0f1a2a 11:47afd449c739
   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";