lemon/lp.h
changeset 484 08d495d48089
parent 482 ed54c0d13df0
child 485 9b082b3fb33f
equal deleted inserted replaced
1:6cb02c227dcd 2:8d87b06bafa6
    21 
    21 
    22 #include<lemon/config.h>
    22 #include<lemon/config.h>
    23 
    23 
    24 
    24 
    25 #ifdef HAVE_GLPK
    25 #ifdef HAVE_GLPK
    26 #include <lemon/lp_glpk.h>
    26 #include <lemon/glpk.h>
    27 #elif HAVE_CPLEX
    27 #elif HAVE_CPLEX
    28 #include <lemon/lp_cplex.h>
    28 #include <lemon/cplex.h>
    29 #elif HAVE_SOPLEX
    29 #elif HAVE_SOPLEX
    30 #include <lemon/lp_soplex.h>
    30 #include <lemon/soplex.h>
    31 #elif HAVE_CLP
    31 #elif HAVE_CLP
    32 #include <lemon/lp_clp.h>
    32 #include <lemon/clp.h>
    33 #endif
    33 #endif
    34 
    34 
    35 ///\file
    35 ///\file
    36 ///\brief Defines a default LP solver
    36 ///\brief Defines a default LP solver
    37 ///\ingroup lp_group
    37 ///\ingroup lp_group
    41   ///The default LP solver identifier
    41   ///The default LP solver identifier
    42 
    42 
    43   ///The default LP solver identifier.
    43   ///The default LP solver identifier.
    44   ///\ingroup lp_group
    44   ///\ingroup lp_group
    45   ///
    45   ///
    46   ///Currently, the possible values are \c LP_GLPK, \c LP_CPLEX, \c
    46   ///Currently, the possible values are \c GLPK, \c CPLEX,
    47   ///LP_SOPLEX or \c LP_CLP
    47   ///\c SOPLEX or \c CLP
    48 #define LEMON_DEFAULT_LP SOLVER
    48 #define LEMON_DEFAULT_LP SOLVER
    49   ///The default LP solver
    49   ///The default LP solver
    50 
    50 
    51   ///The default LP solver.
    51   ///The default LP solver.
    52   ///\ingroup lp_group
    52   ///\ingroup lp_group
    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 MIP_GLPK or \c MIP_CPLEX
    62   ///Currently, the possible values are \c GLPK or \c CPLEX
    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 MipGlpk or \c MipCplex
    69   ///Currently, it is either \c MipGlpk or \c MipCplex
    70   typedef MipGlpk Mip;
    70   typedef MipGlpk Mip;
    71 #else
    71 #else
    72 #ifdef HAVE_GLPK
    72 #ifdef HAVE_GLPK
    73 # define LEMON_DEFAULT_LP LP_GLPK
    73 # define LEMON_DEFAULT_LP GLPK
    74   typedef LpGlpk Lp;
    74   typedef LpGlpk Lp;
    75 # define LEMON_DEFAULT_MIP MIP_GLPK
    75 # define LEMON_DEFAULT_MIP GLPK
    76   typedef MipGlpk Mip;
    76   typedef MipGlpk Mip;
    77 #elif HAVE_CPLEX
    77 #elif HAVE_CPLEX
    78 # define LEMON_DEFAULT_LP LP_CPLEX
    78 # define LEMON_DEFAULT_LP CPLEX
    79   typedef LpCplex Lp;
    79   typedef LpCplex Lp;
    80 # define LEMON_DEFAULT_MIP MIP_CPLEX
    80 # define LEMON_DEFAULT_MIP CPLEX
    81   typedef MipCplex Mip;
    81   typedef MipCplex Mip;
    82 #elif HAVE_SOPLEX
    82 #elif HAVE_SOPLEX
    83 # define DEFAULT_LP LP_SOPLEX
    83 # define DEFAULT_LP SOPLEX
    84   typedef LpSoplex Lp;
    84   typedef LpSoplex Lp;
    85 #elif HAVE_CLP
    85 #elif HAVE_CLP
    86 # define DEFAULT_LP LP_CLP
    86 # define DEFAULT_LP CLP
    87   typedef LpClp Lp;  
    87   typedef LpClp Lp;  
    88 #endif
    88 #endif
    89 #endif
    89 #endif
    90 
    90 
    91 } //namespace lemon
    91 } //namespace lemon