test/lp_test.cc
changeset 1442 1e3c69aa035b
parent 1435 8e85e6bbefdf
child 1445 4635352e5524
equal deleted inserted replaced
0:4388c8605db8 1:a594b9537a21
     4 #include <config.h>
     4 #include <config.h>
     5 #endif
     5 #endif
     6 
     6 
     7 #ifdef HAVE_GLPK
     7 #ifdef HAVE_GLPK
     8 #include <lemon/lp_glpk.h>
     8 #include <lemon/lp_glpk.h>
     9 #elif HAVE_CPLEX
     9 #endif
       
    10 
       
    11 #ifdef HAVE_CPLEX
    10 #include <lemon/lp_cplex.h>
    12 #include <lemon/lp_cplex.h>
    11 #endif
    13 #endif
    12 
    14 
    13 using namespace lemon;
    15 using namespace lemon;
    14 
       
    15 #ifdef HAVE_GLPK
       
    16 typedef LpGlpk LpDefault;
       
    17 #elif HAVE_CPLEX
       
    18 typedef LpCplex LpDefault;
       
    19 #endif
       
    20 
    16 
    21 void lpTest(LpSolverBase & lp)
    17 void lpTest(LpSolverBase & lp)
    22 {
    18 {
    23   typedef LpSolverBase LP;
    19   typedef LpSolverBase LP;
    24 
    20 
   145 int main() 
   141 int main() 
   146 {
   142 {
   147   LpSkeleton lp_skel;
   143   LpSkeleton lp_skel;
   148   lpTest(lp_skel);
   144   lpTest(lp_skel);
   149 
   145 
   150   LpDefault lp;
   146 #ifdef HAVE_GLPK
       
   147   LpGlpk lp_glpk;
       
   148   lpTest(lp_glpk);
       
   149 #endif
   151 
   150 
   152   lpTest(lp);
   151 #ifdef HAVE_CPLEX
       
   152 //  LpCplex lp_cplex;
       
   153 //  lpTest(lp_cplex);
       
   154 #endif
   153 
   155 
   154   return 0;
   156   return 0;
   155 }
   157 }