lemon/lp.h
changeset 1610 893dacc1866c
child 1611 bb51e4a510c5
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/lemon/lp.h	Mon Aug 01 21:16:08 2005 +0000
     1.3 @@ -0,0 +1,71 @@
     1.4 +/* -*- C++ -*-
     1.5 + * lemon/lp.h - Part of LEMON, a generic C++ optimization library
     1.6 + *
     1.7 + * Copyright (C) 2005 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
     1.8 + * (Egervary Research Group on Combinatorial Optimization, EGRES).
     1.9 + *
    1.10 + * Permission to use, modify and distribute this software is granted
    1.11 + * provided that this copyright notice appears in all copies. For
    1.12 + * precise terms see the accompanying LICENSE file.
    1.13 + *
    1.14 + * This software is provided "AS IS" with no warranty of any kind,
    1.15 + * express or implied, and with no claim as to its suitability for any
    1.16 + * purpose.
    1.17 + *
    1.18 + */
    1.19 +
    1.20 +#ifndef LEMON_LP_H
    1.21 +#define LEMON_LP_H
    1.22 +
    1.23 +#ifdef HAVE_CONFIG_H
    1.24 +#include<lemon/config.h>
    1.25 +#endif
    1.26 +
    1.27 +#ifdef HAVE_GLPK
    1.28 +#include <lemon/lp_glpk.h>
    1.29 +#elif HAVE_CPLEX
    1.30 +#include <lemon/lp_cplex.h>
    1.31 +#endif
    1.32 +
    1.33 +///\file
    1.34 +///\brief Defines a default LP solver
    1.35 +///\ingroup gen_opt_group
    1.36 +namespace lemon {
    1.37 + 
    1.38 +#ifdef DOXYGEN
    1.39 +  ///The default LP solver identifier
    1.40 +
    1.41 +  ///The default LP solver identifier.
    1.42 +  ///\ingroup gen_opt_group
    1.43 +  ///
    1.44 +  ///Currently, the possible values are \c GLPK or \c CPLEX
    1.45 +#define DEFAULT_LP SOLVER
    1.46 +  ///The default LP solver
    1.47 +
    1.48 +  ///The default LP solver.
    1.49 +  ///\ingroup gen_opt_group
    1.50 +  ///
    1.51 +  ///Currently, it is either \c LpGlpk or \c LpCplex
    1.52 +  typedef LpGlpk Lp;
    1.53 +  ///The default LP solver identifier string
    1.54 +
    1.55 +  ///The default LP solver identifier string.
    1.56 +  ///\ingroup gen_opt_group
    1.57 +  ///
    1.58 +  ///Currently, the possible values are "GLPK" or "CPLEX"
    1.59 +  const char default_solver_name[]="SOLVER";  
    1.60 +#else
    1.61 +#ifdef HAVE_GLPK
    1.62 +#define DEFAULT_LP GLPK
    1.63 +  typedef LpGlpk Lp;
    1.64 +  const char default_solver_name[]="GLPK";
    1.65 +#elif HAVE_CPLEX
    1.66 +#define DEFAULT_LP CPLEX
    1.67 +  typedef LpCplex Lp;
    1.68 +  const char default_solver_name[]="CPLEX";
    1.69 +#endif
    1.70 +#endif
    1.71 + 
    1.72 +} //namespace lemon
    1.73 +
    1.74 +#endif //LEMON_LP_BASE_H