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@…>, 10 years ago

Bugfix in default LP/MIP setting (#465)

The bug was introduced in [fc3854d936f7]

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