# Changeset 846:9d380bf27194 in lemon-1.2

Ignore:
Timestamp:
02/20/10 16:51:43 (9 years ago)
Branch:
default
Phase:
public
Message:

Use 'long long' flow cost in dimacs-solver.cc (#347)

File:
1 edited

Unmodified
Removed
• ## tools/dimacs-solver.cc

 r644 } template template void solve_min(ArgParser &ap, std::istream &is, std::ostream &, Value infty, DimacsDescriptor &desc) std::cerr << "Run NetworkSimplex: " << ti << "\n\n"; std::cerr << "Feasible flow: " << (res ? "found" : "not found") << '\n'; if (res) std::cerr << "Min flow cost: " << ns.totalCost() << '\n'; if (res) std::cerr << "Min flow cost: " << ns.template totalCost() << '\n'; } } template template void solve(ArgParser &ap, std::istream &is, std::ostream &os, DimacsDescriptor &desc) { case DimacsDescriptor::MIN: solve_min(ap,is,os,infty,desc); solve_min(ap,is,os,infty,desc); break; case DimacsDescriptor::MAX: if(ap.given("double")) solve(ap,is,os,desc); solve(ap,is,os,desc); else if(ap.given("ldouble")) solve(ap,is,os,desc); solve(ap,is,os,desc); #ifdef LEMON_HAVE_LONG_LONG else if(ap.given("long")) solve(ap,is,os,desc); solve(ap,is,os,desc); else solve(ap,is,os,desc); #else else solve(ap,is,os,desc); #endif else solve(ap,is,os,desc); return 0;
Note: See TracChangeset for help on using the changeset viewer.