9 #include <boost/algorithm/string/predicate.hpp>
26 int main(
int argc,
char** argv)
33 string filename = argv[1];
34 if (boost::ends_with(filename,
".lgf"))
39 else if (boost::ends_with(filename,
".lp"))
45 cout <<
"only support .lgf and .lp file formats" << endl;
50 cout <<
"at least 1 argument required\n";
solve linear programming problem with dual min-cost flow
solve network flow graph with min-cost flow
int main(int argc, char **argv)
main function
solve linear programming with min-cost flow
virtual void print_graph(string const &filename) const
print graph
LP solved with min-cost flow.