diff -r cd72eae05bdf -r 3c00344f49c9 lemon/lp.h --- a/lemon/lp.h Mon Jul 16 16:21:40 2018 +0200 +++ b/lemon/lp.h Wed Oct 17 19:14:07 2018 +0200 @@ -2,7 +2,7 @@ * * This file is a part of LEMON, a generic C++ optimization library. * - * Copyright (C) 2003-2010 + * Copyright (C) 2003-2013 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport * (Egervary Research Group on Combinatorial Optimization, EGRES). * @@ -22,15 +22,21 @@ #include -#ifdef LEMON_HAVE_GLPK +#if LEMON_DEFAULT_LP == LEMON_GLPK_ || LEMON_DEFAULT_MIP == LEMON_GLPK_ #include -#elif LEMON_HAVE_CPLEX +#endif +#if LEMON_DEFAULT_LP == LEMON_CPLEX_ || LEMON_DEFAULT_MIP == LEMON_CPLEX_ #include -#elif LEMON_HAVE_SOPLEX +#endif +#if LEMON_DEFAULT_LP == LEMON_SOPLEX_ #include -#elif LEMON_HAVE_CLP +#endif +#if LEMON_DEFAULT_LP == LEMON_CLP_ #include #endif +#if LEMON_DEFAULT_MIP == LEMON_CBC_ +#include +#endif ///\file ///\brief Defines a default LP solver @@ -43,8 +49,8 @@ ///The default LP solver identifier. ///\ingroup lp_group /// - ///Currently, the possible values are \c GLPK, \c CPLEX, - ///\c SOPLEX or \c CLP + ///Currently, the possible values are \c LEMON_GLPK_, \c LEMON_CPLEX_, + ///\c LEMON_SOPLEX_ or \c LEMON_CLP_ #define LEMON_DEFAULT_LP SOLVER ///The default LP solver @@ -59,32 +65,32 @@ ///The default MIP solver identifier. ///\ingroup lp_group /// - ///Currently, the possible values are \c GLPK or \c CPLEX + ///Currently, the possible values are \c LEMON_GLPK_, \c LEMON_CPLEX_ + ///or \c LEMON_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 == LEMON_GLPK_ typedef GlpkLp Lp; -# define LEMON_DEFAULT_MIP GLPK +#elif LEMON_DEFAULT_LP == LEMON_CPLEX_ + typedef CplexLp Lp; +#elif LEMON_DEFAULT_LP == LEMON_SOPLEX_ + typedef SoplexLp Lp; +#elif LEMON_DEFAULT_LP == LEMON_CLP_ + typedef ClpLp Lp; +#endif +#if LEMON_DEFAULT_MIP == LEMON_GLPK_ typedef GlpkMip Mip; -#elif LEMON_HAVE_CPLEX -# define LEMON_DEFAULT_LP CPLEX - typedef CplexLp Lp; -# define LEMON_DEFAULT_MIP CPLEX +#elif LEMON_DEFAULT_MIP == LEMON_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 == LEMON_CBC_ + typedef CbcMip Mip; #endif #endif