[1610] | 1 | /* -*- C++ -*- |
---|
| 2 | * |
---|
[1956] | 3 | * This file is a part of LEMON, a generic C++ optimization library |
---|
| 4 | * |
---|
| 5 | * Copyright (C) 2003-2006 |
---|
| 6 | * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
---|
[1610] | 7 | * (Egervary Research Group on Combinatorial Optimization, EGRES). |
---|
| 8 | * |
---|
| 9 | * Permission to use, modify and distribute this software is granted |
---|
| 10 | * provided that this copyright notice appears in all copies. For |
---|
| 11 | * precise terms see the accompanying LICENSE file. |
---|
| 12 | * |
---|
| 13 | * This software is provided "AS IS" with no warranty of any kind, |
---|
| 14 | * express or implied, and with no claim as to its suitability for any |
---|
| 15 | * purpose. |
---|
| 16 | * |
---|
| 17 | */ |
---|
| 18 | |
---|
| 19 | #ifndef LEMON_LP_H |
---|
| 20 | #define LEMON_LP_H |
---|
| 21 | |
---|
| 22 | #include<lemon/config.h> |
---|
| 23 | |
---|
[2218] | 24 | |
---|
[1610] | 25 | #ifdef HAVE_GLPK |
---|
| 26 | #include <lemon/lp_glpk.h> |
---|
[2144] | 27 | #include <lemon/mip_glpk.h> |
---|
[1610] | 28 | #elif HAVE_CPLEX |
---|
| 29 | #include <lemon/lp_cplex.h> |
---|
[2218] | 30 | #include <lemon/mip_cplex.h> |
---|
[1610] | 31 | #endif |
---|
| 32 | |
---|
| 33 | ///\file |
---|
| 34 | ///\brief Defines a default LP solver |
---|
| 35 | ///\ingroup gen_opt_group |
---|
| 36 | namespace lemon { |
---|
[2218] | 37 | |
---|
[1610] | 38 | #ifdef DOXYGEN |
---|
| 39 | ///The default LP solver identifier |
---|
| 40 | |
---|
| 41 | ///The default LP solver identifier. |
---|
| 42 | ///\ingroup gen_opt_group |
---|
| 43 | /// |
---|
| 44 | ///Currently, the possible values are \c GLPK or \c CPLEX |
---|
| 45 | #define DEFAULT_LP SOLVER |
---|
| 46 | ///The default LP solver |
---|
| 47 | |
---|
| 48 | ///The default LP solver. |
---|
| 49 | ///\ingroup gen_opt_group |
---|
| 50 | /// |
---|
| 51 | ///Currently, it is either \c LpGlpk or \c LpCplex |
---|
| 52 | typedef LpGlpk Lp; |
---|
| 53 | ///The default LP solver identifier string |
---|
| 54 | |
---|
| 55 | ///The default LP solver identifier string. |
---|
| 56 | ///\ingroup gen_opt_group |
---|
| 57 | /// |
---|
| 58 | ///Currently, the possible values are "GLPK" or "CPLEX" |
---|
| 59 | const char default_solver_name[]="SOLVER"; |
---|
[2144] | 60 | |
---|
| 61 | ///The default ILP solver. |
---|
| 62 | |
---|
| 63 | ///The default ILP solver. |
---|
| 64 | ///\ingroup gen_opt_group |
---|
| 65 | /// |
---|
| 66 | ///Currently, it is either \c LpGlpk or \c LpCplex |
---|
| 67 | typedef MipGlpk Mip; |
---|
[1610] | 68 | #else |
---|
| 69 | #ifdef HAVE_GLPK |
---|
| 70 | #define DEFAULT_LP GLPK |
---|
| 71 | typedef LpGlpk Lp; |
---|
[2144] | 72 | typedef MipGlpk Mip; |
---|
[1610] | 73 | const char default_solver_name[]="GLPK"; |
---|
| 74 | #elif HAVE_CPLEX |
---|
| 75 | #define DEFAULT_LP CPLEX |
---|
| 76 | typedef LpCplex Lp; |
---|
[2218] | 77 | typedef MipCplex Mip; |
---|
[1610] | 78 | const char default_solver_name[]="CPLEX"; |
---|
| 79 | #endif |
---|
| 80 | #endif |
---|
| 81 | |
---|
| 82 | } //namespace lemon |
---|
| 83 | |
---|
[2221] | 84 | #endif //LEMON_LP_H |
---|