COIN-OR::LEMON - Graph Library

source: lemon-main/lemon/lp.h @ 1202:4fd76139b69e

Last change on this file since 1202:4fd76139b69e was 1134:f70f688d9ef9, checked in by Alpar Juttner <alpar@…>, 9 years ago

Replace #define WIN32 (#595)

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