demo/lp_maxflow_demo.cc
changeset 1577 15098fb5275c
parent 1571 68ce4302fb0b
child 1583 2b329fd595ef
     1.1 --- a/demo/lp_maxflow_demo.cc	Wed Jul 20 16:03:41 2005 +0000
     1.2 +++ b/demo/lp_maxflow_demo.cc	Wed Jul 20 16:05:04 2005 +0000
     1.3 @@ -44,8 +44,10 @@
     1.4  
     1.5  #ifdef HAVE_GLPK
     1.6  typedef LpGlpk LpDefault;
     1.7 +const char default_solver_name[]="GLPK";
     1.8  #elif HAVE_CPLEX
     1.9  typedef LpCplex LpDefault;
    1.10 +const char default_solver_name[]="CPLEX";
    1.11  #endif
    1.12  
    1.13  
    1.14 @@ -96,6 +98,8 @@
    1.15    lp.messageLevel(3);
    1.16  #endif
    1.17  
    1.18 +  std::cout<<"Solver used: "<<default_solver_name<<std::endl;
    1.19 +
    1.20    //Solve with the underlying solver
    1.21    lp.solve();
    1.22  
    1.23 @@ -106,7 +110,7 @@
    1.24  {
    1.25    if(argc<2)
    1.26    {
    1.27 -      std::cerr << "  USAGE: lp_maxflow_demo <input_file.lgf>" << std::endl;
    1.28 +      std::cerr << "  USAGE: lp_maxflow_demo input_file.lgf" << std::endl;
    1.29        std::cerr << "  The file 'input_file.lgf' has to contain a max "
    1.30  		<< "flow instance in\n"
    1.31  		<< "  LEMON format (e.g. sample.lgf is such a file)."