lemon/lp.h
changeset 1209 4a170261cc54
parent 1120 5de6a70446f6
equal deleted inserted replaced
10:0f1aa18693f4 11:e4aeed4e2b00
    20 #define LEMON_LP_H
    20 #define LEMON_LP_H
    21 
    21 
    22 #include<lemon/config.h>
    22 #include<lemon/config.h>
    23 
    23 
    24 
    24 
    25 #if LEMON_DEFAULT_LP == _LEMON_GLPK || LEMON_DEFAULT_MIP == _LEMON_GLPK
    25 #if LEMON_DEFAULT_LP == LEMON_GLPK_ || LEMON_DEFAULT_MIP == LEMON_GLPK_
    26 #include <lemon/glpk.h>
    26 #include <lemon/glpk.h>
    27 #endif
    27 #endif
    28 #if LEMON_DEFAULT_LP == _LEMON_CPLEX || LEMON_DEFAULT_MIP == _LEMON_CPLEX 
    28 #if LEMON_DEFAULT_LP == LEMON_CPLEX_ || LEMON_DEFAULT_MIP == LEMON_CPLEX_
    29 #include <lemon/cplex.h>
    29 #include <lemon/cplex.h>
    30 #endif
    30 #endif
    31 #if LEMON_DEFAULT_LP == _LEMON_SOPLEX
    31 #if LEMON_DEFAULT_LP == LEMON_SOPLEX_
    32 #include <lemon/soplex.h>
    32 #include <lemon/soplex.h>
    33 #endif
    33 #endif
    34 #if LEMON_DEFAULT_LP == _LEMON_CLP
    34 #if LEMON_DEFAULT_LP == LEMON_CLP_
    35 #include <lemon/clp.h>
    35 #include <lemon/clp.h>
    36 #endif
    36 #endif
    37 #if LEMON_DEFAULT_MIP == _LEMON_CBC
    37 #if LEMON_DEFAULT_MIP == LEMON_CBC_
    38 #include <lemon/cbc.h>
    38 #include <lemon/cbc.h>
    39 #endif
    39 #endif
    40 
    40 
    41 ///\file
    41 ///\file
    42 ///\brief Defines a default LP solver
    42 ///\brief Defines a default LP solver
    47   ///The default LP solver identifier
    47   ///The default LP solver identifier
    48 
    48 
    49   ///The default LP solver identifier.
    49   ///The default LP solver identifier.
    50   ///\ingroup lp_group
    50   ///\ingroup lp_group
    51   ///
    51   ///
    52   ///Currently, the possible values are \c _LEMON_GLPK, \c LEMON__CPLEX,
    52   ///Currently, the possible values are \c LEMON_GLPK_, \c LEMON_CPLEX_,
    53   ///\c _LEMON_SOPLEX or \c LEMON__CLP
    53   ///\c LEMON_SOPLEX_ or \c LEMON_CLP_
    54 #define LEMON_DEFAULT_LP SOLVER
    54 #define LEMON_DEFAULT_LP SOLVER
    55   ///The default LP solver
    55   ///The default LP solver
    56 
    56 
    57   ///The default LP solver.
    57   ///The default LP solver.
    58   ///\ingroup lp_group
    58   ///\ingroup lp_group
    63   ///The default MIP solver identifier
    63   ///The default MIP solver identifier
    64 
    64 
    65   ///The default MIP solver identifier.
    65   ///The default MIP solver identifier.
    66   ///\ingroup lp_group
    66   ///\ingroup lp_group
    67   ///
    67   ///
    68   ///Currently, the possible values are \c _LEMON_GLPK, \c LEMON__CPLEX
    68   ///Currently, the possible values are \c LEMON_GLPK_, \c LEMON_CPLEX_
    69   ///or \c _LEMON_CBC
    69   ///or \c LEMON_CBC_
    70 #define LEMON_DEFAULT_MIP SOLVER
    70 #define LEMON_DEFAULT_MIP SOLVER
    71   ///The default MIP solver.
    71   ///The default MIP solver.
    72 
    72 
    73   ///The default MIP solver.
    73   ///The default MIP solver.
    74   ///\ingroup lp_group
    74   ///\ingroup lp_group
    75   ///
    75   ///
    76   ///Currently, it is either \c GlpkMip, \c CplexMip , \c CbcMip
    76   ///Currently, it is either \c GlpkMip, \c CplexMip , \c CbcMip
    77   typedef GlpkMip Mip;
    77   typedef GlpkMip Mip;
    78 #else
    78 #else
    79 #if LEMON_DEFAULT_LP == _LEMON_GLPK
    79 #if LEMON_DEFAULT_LP == LEMON_GLPK_
    80   typedef GlpkLp Lp;
    80   typedef GlpkLp Lp;
    81 #elif LEMON_DEFAULT_LP == _LEMON_CPLEX
    81 #elif LEMON_DEFAULT_LP == LEMON_CPLEX_
    82   typedef CplexLp Lp;
    82   typedef CplexLp Lp;
    83 #elif LEMON_DEFAULT_LP == _LEMON_SOPLEX
    83 #elif LEMON_DEFAULT_LP == LEMON_SOPLEX_
    84   typedef SoplexLp Lp;
    84   typedef SoplexLp Lp;
    85 #elif LEMON_DEFAULT_LP == _LEMON_CLP
    85 #elif LEMON_DEFAULT_LP == LEMON_CLP_
    86   typedef ClpLp Lp;
    86   typedef ClpLp Lp;
    87 #endif
    87 #endif
    88 #if LEMON_DEFAULT_MIP == _LEMON_GLPK
    88 #if LEMON_DEFAULT_MIP == LEMON_GLPK_
    89   typedef GlpkMip Mip;
    89   typedef GlpkMip Mip;
    90 #elif LEMON_DEFAULT_MIP == _LEMON_CPLEX
    90 #elif LEMON_DEFAULT_MIP == LEMON_CPLEX_
    91   typedef CplexMip Mip;
    91   typedef CplexMip Mip;
    92 #elif LEMON_DEFAULT_MIP == _LEMON_CBC
    92 #elif LEMON_DEFAULT_MIP == LEMON_CBC_
    93   typedef CbcMip Mip;
    93   typedef CbcMip Mip;
    94 #endif
    94 #endif
    95 #endif
    95 #endif
    96 
    96 
    97 } //namespace lemon
    97 } //namespace lemon