COIN-OR::LEMON - Graph Library

source: lemon/lemon/lp.h @ 1306:e00d7b681d8e

Last change on this file since 1306:e00d7b681d8e was 1306:e00d7b681d8e, checked in by Alpar Juttner <alpar@…>, 5 years ago

Bugfix in default LP/MIP setting (#465)

The bug was introduced in [fc3854d936f7]

File size: 2.3 KB
Line 
1/* -*- mode: C++; indent-tabs-mode: nil; -*-
2 *
3 * This file is a part of LEMON, a generic C++ optimization library.
4 *
5 * Copyright (C) 2003-2013
6 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
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
24
25#ifdef LEMON_HAVE_GLPK
26#include <lemon/glpk.h>
27#elif LEMON_HAVE_CPLEX
28#include <lemon/cplex.h>
29#elif LEMON_HAVE_SOPLEX
30#include <lemon/soplex.h>
31#elif LEMON_HAVE_CLP
32#include <lemon/clp.h>
33#elif LEMON_HAVE_CBC
34#include <lemon/cbc.h>
35#endif
36
37///\file
38///\brief Defines a default LP solver
39///\ingroup lp_group
40namespace lemon {
41
42#ifdef DOXYGEN
43  ///The default LP solver identifier
44
45  ///The default LP solver identifier.
46  ///\ingroup lp_group
47  ///
48  ///Currently, the possible values are \c _LEMON_GLPK, \c LEMON__CPLEX,
49  ///\c _LEMON_SOPLEX or \c LEMON__CLP
50#define LEMON_DEFAULT_LP SOLVER
51  ///The default LP solver
52
53  ///The default LP solver.
54  ///\ingroup lp_group
55  ///
56  ///Currently, it is either \c GlpkLp, \c CplexLp, \c SoplexLp or \c ClpLp
57  typedef GlpkLp Lp;
58
59  ///The default MIP solver identifier
60
61  ///The default MIP solver identifier.
62  ///\ingroup lp_group
63  ///
64  ///Currently, the possible values are \c _LEMON_GLPK, \c LEMON__CPLEX
65  ///or \c _LEMON_CBC
66#define LEMON_DEFAULT_MIP SOLVER
67  ///The default MIP solver.
68
69  ///The default MIP solver.
70  ///\ingroup lp_group
71  ///
72  ///Currently, it is either \c GlpkMip, \c CplexMip , \c CbcMip
73  typedef GlpkMip Mip;
74#else
75#if LEMON_DEFAULT_LP == _LEMON_GLPK
76  typedef GlpkLp Lp;
77#elif LEMON_DEFAULT_LP == _LEMON_CPLEX
78  typedef CplexLp Lp;
79#elif LEMON_DEFAULT_LP == _LEMON_SOPLEX
80  typedef SoplexLp Lp;
81#elif LEMON_DEFAULT_LP == _LEMON_CLP
82  typedef ClpLp Lp;
83#endif
84#if LEMON_DEFAULT_MIP == _LEMON_GLPK
85  typedef GlpkMip Mip;
86#elif LEMON_DEFAULT_MIP == _LEMON_CPLEX
87  typedef CplexMip Mip;
88#elif LEMON_DEFAULT_MIP == _LEMON_CBC
89  typedef CbcMip Mip;
90#endif
91#endif
92
93} //namespace lemon
94
95#endif //LEMON_LP_H
Note: See TracBrowser for help on using the repository browser.