author | alpar |
Mon, 04 Sep 2006 19:12:44 +0000 | |
changeset 2194 | eaf16c8f6fef |
parent 1956 | a055123339d5 |
child 2218 | 50f1a780a5ff |
permissions | -rw-r--r-- |
alpar@1610 | 1 |
/* -*- C++ -*- |
alpar@1610 | 2 |
* |
alpar@1956 | 3 |
* This file is a part of LEMON, a generic C++ optimization library |
alpar@1956 | 4 |
* |
alpar@1956 | 5 |
* Copyright (C) 2003-2006 |
alpar@1956 | 6 |
* Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport |
alpar@1610 | 7 |
* (Egervary Research Group on Combinatorial Optimization, EGRES). |
alpar@1610 | 8 |
* |
alpar@1610 | 9 |
* Permission to use, modify and distribute this software is granted |
alpar@1610 | 10 |
* provided that this copyright notice appears in all copies. For |
alpar@1610 | 11 |
* precise terms see the accompanying LICENSE file. |
alpar@1610 | 12 |
* |
alpar@1610 | 13 |
* This software is provided "AS IS" with no warranty of any kind, |
alpar@1610 | 14 |
* express or implied, and with no claim as to its suitability for any |
alpar@1610 | 15 |
* purpose. |
alpar@1610 | 16 |
* |
alpar@1610 | 17 |
*/ |
alpar@1610 | 18 |
|
alpar@1610 | 19 |
#ifndef LEMON_LP_H |
alpar@1610 | 20 |
#define LEMON_LP_H |
alpar@1610 | 21 |
|
alpar@1610 | 22 |
#include<lemon/config.h> |
alpar@1610 | 23 |
|
alpar@1610 | 24 |
#ifdef HAVE_GLPK |
alpar@1610 | 25 |
#include <lemon/lp_glpk.h> |
athos@2144 | 26 |
#include <lemon/mip_glpk.h> |
alpar@1610 | 27 |
#elif HAVE_CPLEX |
alpar@1610 | 28 |
#include <lemon/lp_cplex.h> |
alpar@1610 | 29 |
#endif |
alpar@1610 | 30 |
|
alpar@1610 | 31 |
///\file |
alpar@1610 | 32 |
///\brief Defines a default LP solver |
alpar@1610 | 33 |
///\ingroup gen_opt_group |
alpar@1610 | 34 |
namespace lemon { |
alpar@1610 | 35 |
|
alpar@1610 | 36 |
#ifdef DOXYGEN |
alpar@1610 | 37 |
///The default LP solver identifier |
alpar@1610 | 38 |
|
alpar@1610 | 39 |
///The default LP solver identifier. |
alpar@1610 | 40 |
///\ingroup gen_opt_group |
alpar@1610 | 41 |
/// |
alpar@1610 | 42 |
///Currently, the possible values are \c GLPK or \c CPLEX |
alpar@1610 | 43 |
#define DEFAULT_LP SOLVER |
alpar@1610 | 44 |
///The default LP solver |
alpar@1610 | 45 |
|
alpar@1610 | 46 |
///The default LP solver. |
alpar@1610 | 47 |
///\ingroup gen_opt_group |
alpar@1610 | 48 |
/// |
alpar@1610 | 49 |
///Currently, it is either \c LpGlpk or \c LpCplex |
alpar@1610 | 50 |
typedef LpGlpk Lp; |
alpar@1610 | 51 |
///The default LP solver identifier string |
alpar@1610 | 52 |
|
alpar@1610 | 53 |
///The default LP solver identifier string. |
alpar@1610 | 54 |
///\ingroup gen_opt_group |
alpar@1610 | 55 |
/// |
alpar@1610 | 56 |
///Currently, the possible values are "GLPK" or "CPLEX" |
alpar@1610 | 57 |
const char default_solver_name[]="SOLVER"; |
athos@2144 | 58 |
|
athos@2144 | 59 |
///The default ILP solver. |
athos@2144 | 60 |
|
athos@2144 | 61 |
///The default ILP solver. |
athos@2144 | 62 |
///\ingroup gen_opt_group |
athos@2144 | 63 |
/// |
athos@2144 | 64 |
///Currently, it is either \c LpGlpk or \c LpCplex |
athos@2144 | 65 |
typedef MipGlpk Mip; |
alpar@1610 | 66 |
#else |
alpar@1610 | 67 |
#ifdef HAVE_GLPK |
alpar@1610 | 68 |
#define DEFAULT_LP GLPK |
alpar@1610 | 69 |
typedef LpGlpk Lp; |
athos@2144 | 70 |
typedef MipGlpk Mip; |
alpar@1610 | 71 |
const char default_solver_name[]="GLPK"; |
alpar@1610 | 72 |
#elif HAVE_CPLEX |
alpar@1610 | 73 |
#define DEFAULT_LP CPLEX |
alpar@1610 | 74 |
typedef LpCplex Lp; |
alpar@1610 | 75 |
const char default_solver_name[]="CPLEX"; |
alpar@1610 | 76 |
#endif |
alpar@1610 | 77 |
#endif |
alpar@1610 | 78 |
|
alpar@1610 | 79 |
} //namespace lemon |
alpar@1610 | 80 |
|
alpar@1610 | 81 |
#endif //LEMON_LP_BASE_H |