diff -r cb2891afe526 -r 998e8def9676 src/demo/lp_demo.cc --- a/src/demo/lp_demo.cc Fri Apr 22 16:20:12 2005 +0000 +++ b/src/demo/lp_demo.cc Fri Apr 22 17:47:01 2005 +0000 @@ -1,14 +1,27 @@ #include + + +#ifdef HAVE_GLPK #include +#elif HAVE_CPLEX +#include +#endif + using namespace lemon; +#ifdef HAVE_GLPK +typedef LpGlpk LpDefault; +#elif HAVE_CPLEX +typedef LpCplex LpDefault; +#endif + int main() { //The following example is taken from the documentation of the GLPK library. //See it in the GLPK reference manual and among the GLPK sample files (sample.c) - LpGlpk lp; - typedef LpGlpk::Row Row; - typedef LpGlpk::Col Col; + LpDefault lp; + typedef LpDefault::Row Row; + typedef LpDefault::Col Col; lp.max();