lemon/lp.h
changeset 1074 97d978243703
parent 877 141f9c0db4a3
child 1092 dceba191c00d
equal deleted inserted replaced
5:d68586d8c739 6:c671af8c7d6f
    57   ///The default MIP solver identifier
    57   ///The default MIP solver identifier
    58 
    58 
    59   ///The default MIP solver identifier.
    59   ///The default MIP solver identifier.
    60   ///\ingroup lp_group
    60   ///\ingroup lp_group
    61   ///
    61   ///
    62   ///Currently, the possible values are \c GLPK or \c CPLEX
    62   ///Currently, the possible values are \c GLPK, \c CPLEX or \c CBC
    63 #define LEMON_DEFAULT_MIP SOLVER
    63 #define LEMON_DEFAULT_MIP SOLVER
    64   ///The default MIP solver.
    64   ///The default MIP solver.
    65 
    65 
    66   ///The default MIP solver.
    66   ///The default MIP solver.
    67   ///\ingroup lp_group
    67   ///\ingroup lp_group
    68   ///
    68   ///
    69   ///Currently, it is either \c GlpkMip or \c CplexMip
    69   ///Currently, it is either \c GlpkMip, \c CplexMip , \c CbcMip
    70   typedef GlpkMip Mip;
    70   typedef GlpkMip Mip;
    71 #else
    71 #else
    72 #ifdef LEMON_HAVE_GLPK
    72 #if LEMON_DEFAULT_LP == GLPK
    73 # define LEMON_DEFAULT_LP GLPK
       
    74   typedef GlpkLp Lp;
    73   typedef GlpkLp Lp;
    75 # define LEMON_DEFAULT_MIP GLPK
    74 #elif LEMON_DEFAULT_LP == CPLEX
    76   typedef GlpkMip Mip;
       
    77 #elif LEMON_HAVE_CPLEX
       
    78 # define LEMON_DEFAULT_LP CPLEX
       
    79   typedef CplexLp Lp;
    75   typedef CplexLp Lp;
    80 # define LEMON_DEFAULT_MIP CPLEX
    76 #elif LEMON_DEFAULT_LP == SOPLEX
       
    77   typedef SoplexLp Lp;
       
    78 #elif LEMON_DEFAULT_LP == CLP
       
    79   typedef ClpLp Lp;
       
    80 #endif
       
    81 #if LEMON_DEFAULT_MIP == GLPK
       
    82   typedef GlpkLp Mip;
       
    83 #elif LEMON_DEFAULT_MIP == CPLEX
    81   typedef CplexMip Mip;
    84   typedef CplexMip Mip;
    82 #elif LEMON_HAVE_SOPLEX
    85 #elif LEMON_DEFAULT_MIP == CBC
    83 # define DEFAULT_LP SOPLEX
    86   typedef CbcMip Mip;
    84   typedef SoplexLp Lp;
       
    85 #elif LEMON_HAVE_CLP
       
    86 # define DEFAULT_LP CLP
       
    87   typedef ClpLp Lp;
       
    88 #endif
    87 #endif
    89 #endif
    88 #endif
    90 
    89 
    91 } //namespace lemon
    90 } //namespace lemon
    92 
    91