1.1 --- a/src/demo/lp_demo.cc Fri Apr 22 16:20:12 2005 +0000
1.2 +++ b/src/demo/lp_demo.cc Fri Apr 22 17:47:01 2005 +0000
1.3 @@ -1,14 +1,27 @@
1.4 #include <iostream>
1.5 +
1.6 +
1.7 +#ifdef HAVE_GLPK
1.8 #include <lemon/lp_glpk.h>
1.9 +#elif HAVE_CPLEX
1.10 +#include <lemon/lp_cplex.h>
1.11 +#endif
1.12 +
1.13 using namespace lemon;
1.14
1.15 +#ifdef HAVE_GLPK
1.16 +typedef LpGlpk LpDefault;
1.17 +#elif HAVE_CPLEX
1.18 +typedef LpCplex LpDefault;
1.19 +#endif
1.20 +
1.21 int main()
1.22 {
1.23 //The following example is taken from the documentation of the GLPK library.
1.24 //See it in the GLPK reference manual and among the GLPK sample files (sample.c)
1.25 - LpGlpk lp;
1.26 - typedef LpGlpk::Row Row;
1.27 - typedef LpGlpk::Col Col;
1.28 + LpDefault lp;
1.29 + typedef LpDefault::Row Row;
1.30 + typedef LpDefault::Col Col;
1.31
1.32 lp.max();
1.33