lemon/lp.h
author Alpar Juttner <alpar@cs.elte.hu>
Mon, 12 Jan 2009 12:25:55 +0000
changeset 460 76ec7bd57026
parent 458 7afc121e0689
child 461 08d495d48089
permissions -rw-r--r--
Bypass warnings with gcc 4.3
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
 *
deba@458
     5
 * Copyright (C) 2003-2008
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
deba@458
    25
#ifdef HAVE_GLPK
deba@458
    26
#include <lemon/lp_glpk.h>
deba@458
    27
#elif HAVE_CPLEX
deba@458
    28
#include <lemon/lp_cplex.h>
deba@458
    29
#elif HAVE_SOPLEX
deba@458
    30
#include <lemon/lp_soplex.h>
deba@459
    31
#elif HAVE_CLP
deba@459
    32
#include <lemon/lp_clp.h>
deba@458
    33
#endif
deba@458
    34
deba@458
    35
///\file
deba@458
    36
///\brief Defines a default LP solver
deba@458
    37
///\ingroup lp_group
deba@458
    38
namespace lemon {
deba@458
    39
deba@458
    40
#ifdef DOXYGEN
deba@458
    41
  ///The default LP solver identifier
deba@458
    42
deba@458
    43
  ///The default LP solver identifier.
deba@458
    44
  ///\ingroup lp_group
deba@458
    45
  ///
deba@459
    46
  ///Currently, the possible values are \c LP_GLPK, \c LP_CPLEX, \c
deba@459
    47
  ///LP_SOPLEX or \c LP_CLP
deba@459
    48
#define LEMON_DEFAULT_LP SOLVER
deba@458
    49
  ///The default LP solver
deba@458
    50
deba@458
    51
  ///The default LP solver.
deba@458
    52
  ///\ingroup lp_group
deba@458
    53
  ///
deba@459
    54
  ///Currently, it is either \c LpGlpk, \c LpCplex, \c LpSoplex or \c LpClp
deba@458
    55
  typedef LpGlpk Lp;
deba@458
    56
deba@459
    57
  ///The default MIP solver identifier
deba@459
    58
deba@459
    59
  ///The default MIP solver identifier.
deba@458
    60
  ///\ingroup lp_group
deba@458
    61
  ///
deba@459
    62
  ///Currently, the possible values are \c MIP_GLPK or \c MIP_CPLEX
deba@459
    63
#define LEMON_DEFAULT_MIP SOLVER
deba@459
    64
  ///The default MIP solver.
deba@458
    65
deba@459
    66
  ///The default MIP solver.
deba@458
    67
  ///\ingroup lp_group
deba@458
    68
  ///
deba@459
    69
  ///Currently, it is either \c MipGlpk or \c MipCplex
deba@458
    70
  typedef MipGlpk Mip;
deba@458
    71
#else
deba@458
    72
#ifdef HAVE_GLPK
deba@459
    73
# define LEMON_DEFAULT_LP LP_GLPK
deba@458
    74
  typedef LpGlpk Lp;
deba@459
    75
# define LEMON_DEFAULT_MIP MIP_GLPK
deba@458
    76
  typedef MipGlpk Mip;
deba@458
    77
#elif HAVE_CPLEX
deba@459
    78
# define LEMON_DEFAULT_LP LP_CPLEX
deba@458
    79
  typedef LpCplex Lp;
deba@459
    80
# define LEMON_DEFAULT_MIP MIP_CPLEX
deba@458
    81
  typedef MipCplex Mip;
deba@458
    82
#elif HAVE_SOPLEX
deba@459
    83
# define DEFAULT_LP LP_SOPLEX
deba@458
    84
  typedef LpSoplex Lp;
deba@459
    85
#elif HAVE_CLP
deba@459
    86
# define DEFAULT_LP LP_CLP
deba@459
    87
  typedef LpClp Lp;  
deba@458
    88
#endif
deba@458
    89
#endif
deba@458
    90
deba@458
    91
} //namespace lemon
deba@458
    92
deba@458
    93
#endif //LEMON_LP_H