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 |
|
ladanyi@627
|
25 |
#ifdef LEMON_HAVE_GLPK
|
alpar@461
|
26 |
#include <lemon/glpk.h>
|
ladanyi@627
|
27 |
#elif LEMON_HAVE_CPLEX
|
alpar@461
|
28 |
#include <lemon/cplex.h>
|
ladanyi@627
|
29 |
#elif LEMON_HAVE_SOPLEX
|
alpar@461
|
30 |
#include <lemon/soplex.h>
|
ladanyi@627
|
31 |
#elif LEMON_HAVE_CLP
|
alpar@461
|
32 |
#include <lemon/clp.h>
|
alpar@1105
|
33 |
#elif LEMON_HAVE_CBC
|
alpar@1105
|
34 |
#include <lemon/cbc.h>
|
deba@458
|
35 |
#endif
|
deba@458
|
36 |
|
deba@458
|
37 |
///\file
|
deba@458
|
38 |
///\brief Defines a default LP solver
|
deba@458
|
39 |
///\ingroup lp_group
|
deba@458
|
40 |
namespace lemon {
|
deba@458
|
41 |
|
deba@458
|
42 |
#ifdef DOXYGEN
|
deba@458
|
43 |
///The default LP solver identifier
|
deba@458
|
44 |
|
deba@458
|
45 |
///The default LP solver identifier.
|
deba@458
|
46 |
///\ingroup lp_group
|
deba@458
|
47 |
///
|
alpar@1108
|
48 |
///Currently, the possible values are \c _LEMON_GLPK, \c LEMON__CPLEX,
|
alpar@1108
|
49 |
///\c _LEMON_SOPLEX or \c LEMON__CLP
|
deba@459
|
50 |
#define LEMON_DEFAULT_LP SOLVER
|
deba@458
|
51 |
///The default LP solver
|
deba@458
|
52 |
|
deba@458
|
53 |
///The default LP solver.
|
deba@458
|
54 |
///\ingroup lp_group
|
deba@458
|
55 |
///
|
alpar@462
|
56 |
///Currently, it is either \c GlpkLp, \c CplexLp, \c SoplexLp or \c ClpLp
|
alpar@462
|
57 |
typedef GlpkLp Lp;
|
deba@458
|
58 |
|
deba@459
|
59 |
///The default MIP solver identifier
|
deba@459
|
60 |
|
deba@459
|
61 |
///The default MIP solver identifier.
|
deba@458
|
62 |
///\ingroup lp_group
|
deba@458
|
63 |
///
|
alpar@1108
|
64 |
///Currently, the possible values are \c _LEMON_GLPK, \c LEMON__CPLEX
|
alpar@1108
|
65 |
///or \c _LEMON_CBC
|
deba@459
|
66 |
#define LEMON_DEFAULT_MIP SOLVER
|
deba@459
|
67 |
///The default MIP solver.
|
deba@458
|
68 |
|
deba@459
|
69 |
///The default MIP solver.
|
deba@458
|
70 |
///\ingroup lp_group
|
deba@458
|
71 |
///
|
alpar@1064
|
72 |
///Currently, it is either \c GlpkMip, \c CplexMip , \c CbcMip
|
alpar@462
|
73 |
typedef GlpkMip Mip;
|
deba@458
|
74 |
#else
|
alpar@1108
|
75 |
#if LEMON_DEFAULT_LP == _LEMON_GLPK
|
alpar@462
|
76 |
typedef GlpkLp Lp;
|
alpar@1108
|
77 |
#elif LEMON_DEFAULT_LP == _LEMON_CPLEX
|
alpar@462
|
78 |
typedef CplexLp Lp;
|
alpar@1108
|
79 |
#elif LEMON_DEFAULT_LP == _LEMON_SOPLEX
|
alpar@1064
|
80 |
typedef SoplexLp Lp;
|
alpar@1108
|
81 |
#elif LEMON_DEFAULT_LP == _LEMON_CLP
|
alpar@1064
|
82 |
typedef ClpLp Lp;
|
alpar@1064
|
83 |
#endif
|
alpar@1108
|
84 |
#if LEMON_DEFAULT_MIP == _LEMON_GLPK
|
alpar@1105
|
85 |
typedef GlpkMip Mip;
|
alpar@1108
|
86 |
#elif LEMON_DEFAULT_MIP == _LEMON_CPLEX
|
alpar@462
|
87 |
typedef CplexMip Mip;
|
alpar@1108
|
88 |
#elif LEMON_DEFAULT_MIP == _LEMON_CBC
|
alpar@1064
|
89 |
typedef CbcMip Mip;
|
deba@458
|
90 |
#endif
|
deba@458
|
91 |
#endif
|
deba@458
|
92 |
|
deba@458
|
93 |
} //namespace lemon
|
deba@458
|
94 |
|
deba@458
|
95 |
#endif //LEMON_LP_H
|