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