lemon/lp.h
author deba
Mon, 03 Apr 2006 19:47:37 +0000
changeset 2035 e92071fadd3f
parent 1875 98698b69a902
child 2144 cd8897f67c26
permissions -rw-r--r--
More mingw compatibility

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