deba@458
|
1 |
/* -*- mode: C++; indent-tabs-mode: nil; -*-
|
deba@458
|
2 |
*
|
deba@458
|
3 |
* This file is a part of LEMON, a generic C++ optimization library.
|
deba@458
|
4 |
*
|
alpar@1092
|
5 |
* Copyright (C) 2003-2013
|
deba@458
|
6 |
* Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
|
deba@458
|
7 |
* (Egervary Research Group on Combinatorial Optimization, EGRES).
|
deba@458
|
8 |
*
|
deba@458
|
9 |
* Permission to use, modify and distribute this software is granted
|
deba@458
|
10 |
* provided that this copyright notice appears in all copies. For
|
deba@458
|
11 |
* precise terms see the accompanying LICENSE file.
|
deba@458
|
12 |
*
|
deba@458
|
13 |
* This software is provided "AS IS" with no warranty of any kind,
|
deba@458
|
14 |
* express or implied, and with no claim as to its suitability for any
|
deba@458
|
15 |
* purpose.
|
deba@458
|
16 |
*
|
deba@458
|
17 |
*/
|
deba@458
|
18 |
|
deba@458
|
19 |
#ifndef LEMON_LP_H
|
deba@458
|
20 |
#define LEMON_LP_H
|
deba@458
|
21 |
|
deba@458
|
22 |
#include<lemon/config.h>
|
deba@458
|
23 |
|
deba@458
|
24 |
|
alpar@1134
|
25 |
#if LEMON_DEFAULT_LP == LEMON_GLPK_ || LEMON_DEFAULT_MIP == LEMON_GLPK_
|
alpar@461
|
26 |
#include <lemon/glpk.h>
|
alpar@1120
|
27 |
#endif
|
alpar@1134
|
28 |
#if LEMON_DEFAULT_LP == LEMON_CPLEX_ || LEMON_DEFAULT_MIP == LEMON_CPLEX_
|
alpar@461
|
29 |
#include <lemon/cplex.h>
|
alpar@1120
|
30 |
#endif
|
alpar@1134
|
31 |
#if LEMON_DEFAULT_LP == LEMON_SOPLEX_
|
alpar@461
|
32 |
#include <lemon/soplex.h>
|
alpar@1120
|
33 |
#endif
|
alpar@1134
|
34 |
#if LEMON_DEFAULT_LP == LEMON_CLP_
|
alpar@461
|
35 |
#include <lemon/clp.h>
|
alpar@1120
|
36 |
#endif
|
alpar@1134
|
37 |
#if LEMON_DEFAULT_MIP == LEMON_CBC_
|
alpar@1105
|
38 |
#include <lemon/cbc.h>
|
deba@458
|
39 |
#endif
|
deba@458
|
40 |
|
deba@458
|
41 |
///\file
|
deba@458
|
42 |
///\brief Defines a default LP solver
|
deba@458
|
43 |
///\ingroup lp_group
|
deba@458
|
44 |
namespace lemon {
|
deba@458
|
45 |
|
deba@458
|
46 |
#ifdef DOXYGEN
|
deba@458
|
47 |
///The default LP solver identifier
|
deba@458
|
48 |
|
deba@458
|
49 |
///The default LP solver identifier.
|
deba@458
|
50 |
///\ingroup lp_group
|
deba@458
|
51 |
///
|
alpar@1134
|
52 |
///Currently, the possible values are \c LEMON_GLPK_, \c LEMON_CPLEX_,
|
alpar@1134
|
53 |
///\c LEMON_SOPLEX_ or \c LEMON_CLP_
|
deba@459
|
54 |
#define LEMON_DEFAULT_LP SOLVER
|
deba@458
|
55 |
///The default LP solver
|
deba@458
|
56 |
|
deba@458
|
57 |
///The default LP solver.
|
deba@458
|
58 |
///\ingroup lp_group
|
deba@458
|
59 |
///
|
alpar@462
|
60 |
///Currently, it is either \c GlpkLp, \c CplexLp, \c SoplexLp or \c ClpLp
|
alpar@462
|
61 |
typedef GlpkLp Lp;
|
deba@458
|
62 |
|
deba@459
|
63 |
///The default MIP solver identifier
|
deba@459
|
64 |
|
deba@459
|
65 |
///The default MIP solver identifier.
|
deba@458
|
66 |
///\ingroup lp_group
|
deba@458
|
67 |
///
|
alpar@1134
|
68 |
///Currently, the possible values are \c LEMON_GLPK_, \c LEMON_CPLEX_
|
alpar@1134
|
69 |
///or \c LEMON_CBC_
|
deba@459
|
70 |
#define LEMON_DEFAULT_MIP SOLVER
|
deba@459
|
71 |
///The default MIP solver.
|
deba@458
|
72 |
|
deba@459
|
73 |
///The default MIP solver.
|
deba@458
|
74 |
///\ingroup lp_group
|
deba@458
|
75 |
///
|
alpar@1064
|
76 |
///Currently, it is either \c GlpkMip, \c CplexMip , \c CbcMip
|
alpar@462
|
77 |
typedef GlpkMip Mip;
|
deba@458
|
78 |
#else
|
alpar@1134
|
79 |
#if LEMON_DEFAULT_LP == LEMON_GLPK_
|
alpar@462
|
80 |
typedef GlpkLp Lp;
|
alpar@1134
|
81 |
#elif LEMON_DEFAULT_LP == LEMON_CPLEX_
|
alpar@462
|
82 |
typedef CplexLp Lp;
|
alpar@1134
|
83 |
#elif LEMON_DEFAULT_LP == LEMON_SOPLEX_
|
alpar@1064
|
84 |
typedef SoplexLp Lp;
|
alpar@1134
|
85 |
#elif LEMON_DEFAULT_LP == LEMON_CLP_
|
alpar@1064
|
86 |
typedef ClpLp Lp;
|
alpar@1064
|
87 |
#endif
|
alpar@1134
|
88 |
#if LEMON_DEFAULT_MIP == LEMON_GLPK_
|
alpar@1105
|
89 |
typedef GlpkMip Mip;
|
alpar@1134
|
90 |
#elif LEMON_DEFAULT_MIP == LEMON_CPLEX_
|
alpar@462
|
91 |
typedef CplexMip Mip;
|
alpar@1134
|
92 |
#elif LEMON_DEFAULT_MIP == LEMON_CBC_
|
alpar@1064
|
93 |
typedef CbcMip Mip;
|
deba@458
|
94 |
#endif
|
deba@458
|
95 |
#endif
|
deba@458
|
96 |
|
deba@458
|
97 |
} //namespace lemon
|
deba@458
|
98 |
|
deba@458
|
99 |
#endif //LEMON_LP_H
|