lemon/lp.h
author Balazs Dezso <deba@inf.elte.hu>
Sun, 14 Nov 2010 22:48:32 +0100
changeset 1188 5ef0ab7b61cd
parent 674 20dac2104519
child 1232 fc3854d936f7
permissions -rw-r--r--
FullBpGraph implementation (#69)
deba@481
     1
/* -*- mode: C++; indent-tabs-mode: nil; -*-
deba@481
     2
 *
deba@481
     3
 * This file is a part of LEMON, a generic C++ optimization library.
deba@481
     4
 *
alpar@956
     5
 * Copyright (C) 2003-2010
deba@481
     6
 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
deba@481
     7
 * (Egervary Research Group on Combinatorial Optimization, EGRES).
deba@481
     8
 *
deba@481
     9
 * Permission to use, modify and distribute this software is granted
deba@481
    10
 * provided that this copyright notice appears in all copies. For
deba@481
    11
 * precise terms see the accompanying LICENSE file.
deba@481
    12
 *
deba@481
    13
 * This software is provided "AS IS" with no warranty of any kind,
deba@481
    14
 * express or implied, and with no claim as to its suitability for any
deba@481
    15
 * purpose.
deba@481
    16
 *
deba@481
    17
 */
deba@481
    18
deba@481
    19
#ifndef LEMON_LP_H
deba@481
    20
#define LEMON_LP_H
deba@481
    21
deba@481
    22
#include<lemon/config.h>
deba@481
    23
deba@481
    24
ladanyi@674
    25
#ifdef LEMON_HAVE_GLPK
alpar@484
    26
#include <lemon/glpk.h>
ladanyi@674
    27
#elif LEMON_HAVE_CPLEX
alpar@484
    28
#include <lemon/cplex.h>
ladanyi@674
    29
#elif LEMON_HAVE_SOPLEX
alpar@484
    30
#include <lemon/soplex.h>
ladanyi@674
    31
#elif LEMON_HAVE_CLP
alpar@484
    32
#include <lemon/clp.h>
deba@481
    33
#endif
deba@481
    34
deba@481
    35
///\file
deba@481
    36
///\brief Defines a default LP solver
deba@481
    37
///\ingroup lp_group
deba@481
    38
namespace lemon {
deba@481
    39
deba@481
    40
#ifdef DOXYGEN
deba@481
    41
  ///The default LP solver identifier
deba@481
    42
deba@481
    43
  ///The default LP solver identifier.
deba@481
    44
  ///\ingroup lp_group
deba@481
    45
  ///
alpar@484
    46
  ///Currently, the possible values are \c GLPK, \c CPLEX,
alpar@484
    47
  ///\c SOPLEX or \c CLP
deba@482
    48
#define LEMON_DEFAULT_LP SOLVER
deba@481
    49
  ///The default LP solver
deba@481
    50
deba@481
    51
  ///The default LP solver.
deba@481
    52
  ///\ingroup lp_group
deba@481
    53
  ///
alpar@485
    54
  ///Currently, it is either \c GlpkLp, \c CplexLp, \c SoplexLp or \c ClpLp
alpar@485
    55
  typedef GlpkLp Lp;
deba@481
    56
deba@482
    57
  ///The default MIP solver identifier
deba@482
    58
deba@482
    59
  ///The default MIP solver identifier.
deba@481
    60
  ///\ingroup lp_group
deba@481
    61
  ///
alpar@484
    62
  ///Currently, the possible values are \c GLPK or \c CPLEX
deba@482
    63
#define LEMON_DEFAULT_MIP SOLVER
deba@482
    64
  ///The default MIP solver.
deba@481
    65
deba@482
    66
  ///The default MIP solver.
deba@481
    67
  ///\ingroup lp_group
deba@481
    68
  ///
alpar@485
    69
  ///Currently, it is either \c GlpkMip or \c CplexMip
alpar@485
    70
  typedef GlpkMip Mip;
deba@481
    71
#else
ladanyi@674
    72
#ifdef LEMON_HAVE_GLPK
alpar@484
    73
# define LEMON_DEFAULT_LP GLPK
alpar@485
    74
  typedef GlpkLp Lp;
alpar@484
    75
# define LEMON_DEFAULT_MIP GLPK
alpar@485
    76
  typedef GlpkMip Mip;
ladanyi@674
    77
#elif LEMON_HAVE_CPLEX
alpar@484
    78
# define LEMON_DEFAULT_LP CPLEX
alpar@485
    79
  typedef CplexLp Lp;
alpar@484
    80
# define LEMON_DEFAULT_MIP CPLEX
alpar@485
    81
  typedef CplexMip Mip;
ladanyi@674
    82
#elif LEMON_HAVE_SOPLEX
alpar@484
    83
# define DEFAULT_LP SOPLEX
alpar@485
    84
  typedef SoplexLp Lp;
ladanyi@674
    85
#elif LEMON_HAVE_CLP
alpar@484
    86
# define DEFAULT_LP CLP
alpar@956
    87
  typedef ClpLp Lp;
deba@481
    88
#endif
deba@481
    89
#endif
deba@481
    90
deba@481
    91
} //namespace lemon
deba@481
    92
deba@481
    93
#endif //LEMON_LP_H