diff -r 473c71baff72 -r 490d89913a17 lemon/lp.h --- a/lemon/lp.h Thu Feb 28 23:45:39 2013 +0100 +++ b/lemon/lp.h Mon Jul 15 08:33:08 2013 +0200 @@ -59,32 +59,31 @@ ///The default MIP solver identifier. ///\ingroup lp_group /// - ///Currently, the possible values are \c GLPK or \c CPLEX + ///Currently, the possible values are \c GLPK, \c CPLEX or \c CBC #define LEMON_DEFAULT_MIP SOLVER ///The default MIP solver. ///The default MIP solver. ///\ingroup lp_group /// - ///Currently, it is either \c GlpkMip or \c CplexMip + ///Currently, it is either \c GlpkMip, \c CplexMip , \c CbcMip typedef GlpkMip Mip; #else -#ifdef LEMON_HAVE_GLPK -# define LEMON_DEFAULT_LP GLPK +#if LEMON_DEFAULT_LP == GLPK typedef GlpkLp Lp; -# define LEMON_DEFAULT_MIP GLPK - typedef GlpkMip Mip; -#elif LEMON_HAVE_CPLEX -# define LEMON_DEFAULT_LP CPLEX +#elif LEMON_DEFAULT_LP == CPLEX typedef CplexLp Lp; -# define LEMON_DEFAULT_MIP CPLEX +#elif LEMON_DEFAULT_LP == SOPLEX + typedef SoplexLp Lp; +#elif LEMON_DEFAULT_LP == CLP + typedef ClpLp Lp; +#endif +#if LEMON_DEFAULT_MIP == GLPK + typedef GlpkLp Mip; +#elif LEMON_DEFAULT_MIP == CPLEX typedef CplexMip Mip; -#elif LEMON_HAVE_SOPLEX -# define DEFAULT_LP SOPLEX - typedef SoplexLp Lp; -#elif LEMON_HAVE_CLP -# define DEFAULT_LP CLP - typedef ClpLp Lp; +#elif LEMON_DEFAULT_MIP == CBC + typedef CbcMip Mip; #endif #endif