test/lp_test.cc
changeset 1178 61fdd06833a6
parent 1092 dceba191c00d
child 1131 4add05447ca0
equal deleted inserted replaced
17:5941ccd053c8 18:d677c58cf607
    37 
    37 
    38 #ifdef LEMON_HAVE_CLP
    38 #ifdef LEMON_HAVE_CLP
    39 #include <lemon/clp.h>
    39 #include <lemon/clp.h>
    40 #endif
    40 #endif
    41 
    41 
       
    42 #ifdef LEMON_HAVE_LP
       
    43 #include <lemon/lp.h>
       
    44 #endif
    42 using namespace lemon;
    45 using namespace lemon;
    43 
    46 
    44 int countCols(LpBase & lp) {
    47 int countCols(LpBase & lp) {
    45   int count=0;
    48   int count=0;
    46   for (LpBase::ColIt c(lp); c!=INVALID; ++c) ++count;
    49   for (LpBase::ColIt c(lp); c!=INVALID; ++c) ++count;
   414 int main()
   417 int main()
   415 {
   418 {
   416   LpSkeleton lp_skel;
   419   LpSkeleton lp_skel;
   417   lpTest(lp_skel);
   420   lpTest(lp_skel);
   418 
   421 
       
   422 #ifdef LEMON_HAVE_LP
       
   423   {
       
   424     Lp lp,lp2;
       
   425     lpTest(lp);
       
   426     aTest(lp2);
       
   427     cloneTest<Lp>();
       
   428   }
       
   429 #endif
       
   430 
   419 #ifdef LEMON_HAVE_GLPK
   431 #ifdef LEMON_HAVE_GLPK
   420   {
   432   {
   421     GlpkLp lp_glpk1,lp_glpk2;
   433     GlpkLp lp_glpk1,lp_glpk2;
   422     lpTest(lp_glpk1);
   434     lpTest(lp_glpk1);
   423     aTest(lp_glpk2);
   435     aTest(lp_glpk2);