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