author | Balazs Dezso <deba@inf.elte.hu> |
Tue, 02 Dec 2008 21:40:33 +0100 | |
changeset 458 | 7afc121e0689 |
child 459 | ed54c0d13df0 |
permissions | -rw-r--r-- |
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 |
#include <lemon/mip_glpk.h> |
deba@458 | 28 |
#elif HAVE_CPLEX |
deba@458 | 29 |
#include <lemon/lp_cplex.h> |
deba@458 | 30 |
#include <lemon/mip_cplex.h> |
deba@458 | 31 |
#elif HAVE_SOPLEX |
deba@458 | 32 |
#include <lemon/lp_soplex.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@458 | 46 |
///Currently, the possible values are \c GLPK or \c CPLEX |
deba@458 | 47 |
#define DEFAULT_LP SOLVER |
deba@458 | 48 |
///The default LP solver |
deba@458 | 49 |
|
deba@458 | 50 |
///The default LP solver. |
deba@458 | 51 |
///\ingroup lp_group |
deba@458 | 52 |
/// |
deba@458 | 53 |
///Currently, it is either \c LpGlpk or \c LpCplex |
deba@458 | 54 |
typedef LpGlpk Lp; |
deba@458 | 55 |
///The default LP solver identifier string |
deba@458 | 56 |
|
deba@458 | 57 |
///The default LP solver identifier string. |
deba@458 | 58 |
///\ingroup lp_group |
deba@458 | 59 |
/// |
deba@458 | 60 |
///Currently, the possible values are "GLPK" or "CPLEX" |
deba@458 | 61 |
const char default_solver_name[]="SOLVER"; |
deba@458 | 62 |
|
deba@458 | 63 |
///The default ILP solver. |
deba@458 | 64 |
|
deba@458 | 65 |
///The default ILP solver. |
deba@458 | 66 |
///\ingroup lp_group |
deba@458 | 67 |
/// |
deba@458 | 68 |
///Currently, it is either \c LpGlpk or \c LpCplex |
deba@458 | 69 |
typedef MipGlpk Mip; |
deba@458 | 70 |
#else |
deba@458 | 71 |
#ifdef HAVE_GLPK |
deba@458 | 72 |
#define DEFAULT_LP GLPK |
deba@458 | 73 |
typedef LpGlpk Lp; |
deba@458 | 74 |
typedef MipGlpk Mip; |
deba@458 | 75 |
const char default_solver_name[]="GLPK"; |
deba@458 | 76 |
#elif HAVE_CPLEX |
deba@458 | 77 |
#define DEFAULT_LP CPLEX |
deba@458 | 78 |
typedef LpCplex Lp; |
deba@458 | 79 |
typedef MipCplex Mip; |
deba@458 | 80 |
const char default_solver_name[]="CPLEX"; |
deba@458 | 81 |
#elif HAVE_SOPLEX |
deba@458 | 82 |
#define DEFAULT_LP SOPLEX |
deba@458 | 83 |
typedef LpSoplex Lp; |
deba@458 | 84 |
const char default_solver_name[]="SOPLEX"; |
deba@458 | 85 |
#endif |
deba@458 | 86 |
#endif |
deba@458 | 87 |
|
deba@458 | 88 |
} //namespace lemon |
deba@458 | 89 |
|
deba@458 | 90 |
#endif //LEMON_LP_H |