test/lp_test.cc
changeset 630 936355864d6e
parent 575 3cbddc293cf9
child 631 d21b38647e53
equal deleted inserted replaced
10:7319056d4404 11:8a456dc436f2
    23 
    23 
    24 #ifdef HAVE_CONFIG_H
    24 #ifdef HAVE_CONFIG_H
    25 #include <lemon/config.h>
    25 #include <lemon/config.h>
    26 #endif
    26 #endif
    27 
    27 
    28 #ifdef HAVE_GLPK
    28 #ifdef LEMON_HAVE_GLPK
    29 #include <lemon/glpk.h>
    29 #include <lemon/glpk.h>
    30 #endif
    30 #endif
    31 
    31 
    32 #ifdef HAVE_CPLEX
    32 #ifdef LEMON_HAVE_CPLEX
    33 #include <lemon/cplex.h>
    33 #include <lemon/cplex.h>
    34 #endif
    34 #endif
    35 
    35 
    36 #ifdef HAVE_SOPLEX
    36 #ifdef LEMON_HAVE_SOPLEX
    37 #include <lemon/soplex.h>
    37 #include <lemon/soplex.h>
    38 #endif
    38 #endif
    39 
    39 
    40 #ifdef HAVE_CLP
    40 #ifdef LEMON_HAVE_CLP
    41 #include <lemon/clp.h>
    41 #include <lemon/clp.h>
    42 #endif
    42 #endif
    43 
    43 
    44 using namespace lemon;
    44 using namespace lemon;
    45 
    45 
   377 int main()
   377 int main()
   378 {
   378 {
   379   LpSkeleton lp_skel;
   379   LpSkeleton lp_skel;
   380   lpTest(lp_skel);
   380   lpTest(lp_skel);
   381 
   381 
   382 #ifdef HAVE_GLPK
   382 #ifdef LEMON_HAVE_GLPK
   383   {
   383   {
   384     GlpkLp lp_glpk1,lp_glpk2;
   384     GlpkLp lp_glpk1,lp_glpk2;
   385     lpTest(lp_glpk1);
   385     lpTest(lp_glpk1);
   386     aTest(lp_glpk2);
   386     aTest(lp_glpk2);
   387     cloneTest<GlpkLp>();
   387     cloneTest<GlpkLp>();
   388   }
   388   }
   389 #endif
   389 #endif
   390 
   390 
   391 #ifdef HAVE_CPLEX
   391 #ifdef LEMON_HAVE_CPLEX
   392   try {
   392   try {
   393     CplexLp lp_cplex1,lp_cplex2;
   393     CplexLp lp_cplex1,lp_cplex2;
   394     lpTest(lp_cplex1);
   394     lpTest(lp_cplex1);
   395     aTest(lp_cplex2);
   395     aTest(lp_cplex2);
   396     cloneTest<CplexLp>();
   396     cloneTest<CplexLp>();
   397   } catch (CplexEnv::LicenseError& error) {
   397   } catch (CplexEnv::LicenseError& error) {
   398     check(false, error.what());
   398     check(false, error.what());
   399   }
   399   }
   400 #endif
   400 #endif
   401 
   401 
   402 #ifdef HAVE_SOPLEX
   402 #ifdef LEMON_HAVE_SOPLEX
   403   {
   403   {
   404     SoplexLp lp_soplex1,lp_soplex2;
   404     SoplexLp lp_soplex1,lp_soplex2;
   405     lpTest(lp_soplex1);
   405     lpTest(lp_soplex1);
   406     aTest(lp_soplex2);
   406     aTest(lp_soplex2);
   407     cloneTest<SoplexLp>();
   407     cloneTest<SoplexLp>();
   408   }
   408   }
   409 #endif
   409 #endif
   410 
   410 
   411 #ifdef HAVE_CLP
   411 #ifdef LEMON_HAVE_CLP
   412   {
   412   {
   413     ClpLp lp_clp1,lp_clp2;
   413     ClpLp lp_clp1,lp_clp2;
   414     lpTest(lp_clp1);
   414     lpTest(lp_clp1);
   415     aTest(lp_clp2);
   415     aTest(lp_clp2);
   416     cloneTest<ClpLp>();
   416     cloneTest<ClpLp>();