alpar@1610: /* -*- C++ -*- alpar@1610: * alpar@1956: * This file is a part of LEMON, a generic C++ optimization library alpar@1956: * alpar@1956: * Copyright (C) 2003-2006 alpar@1956: * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport alpar@1610: * (Egervary Research Group on Combinatorial Optimization, EGRES). alpar@1610: * alpar@1610: * Permission to use, modify and distribute this software is granted alpar@1610: * provided that this copyright notice appears in all copies. For alpar@1610: * precise terms see the accompanying LICENSE file. alpar@1610: * alpar@1610: * This software is provided "AS IS" with no warranty of any kind, alpar@1610: * express or implied, and with no claim as to its suitability for any alpar@1610: * purpose. alpar@1610: * alpar@1610: */ alpar@1610: alpar@1610: #ifndef LEMON_LP_H alpar@1610: #define LEMON_LP_H alpar@1610: alpar@1610: #include alpar@1610: alpar@1610: #ifdef HAVE_GLPK alpar@1610: #include alpar@1610: #elif HAVE_CPLEX alpar@1610: #include alpar@1610: #endif alpar@1610: alpar@1610: ///\file alpar@1610: ///\brief Defines a default LP solver alpar@1610: ///\ingroup gen_opt_group alpar@1610: namespace lemon { alpar@1610: alpar@1610: #ifdef DOXYGEN alpar@1610: ///The default LP solver identifier alpar@1610: alpar@1610: ///The default LP solver identifier. alpar@1610: ///\ingroup gen_opt_group alpar@1610: /// alpar@1610: ///Currently, the possible values are \c GLPK or \c CPLEX alpar@1610: #define DEFAULT_LP SOLVER alpar@1610: ///The default LP solver alpar@1610: alpar@1610: ///The default LP solver. alpar@1610: ///\ingroup gen_opt_group alpar@1610: /// alpar@1610: ///Currently, it is either \c LpGlpk or \c LpCplex alpar@1610: typedef LpGlpk Lp; alpar@1610: ///The default LP solver identifier string alpar@1610: alpar@1610: ///The default LP solver identifier string. alpar@1610: ///\ingroup gen_opt_group alpar@1610: /// alpar@1610: ///Currently, the possible values are "GLPK" or "CPLEX" alpar@1610: const char default_solver_name[]="SOLVER"; alpar@1610: #else alpar@1610: #ifdef HAVE_GLPK alpar@1610: #define DEFAULT_LP GLPK alpar@1610: typedef LpGlpk Lp; alpar@1610: const char default_solver_name[]="GLPK"; alpar@1610: #elif HAVE_CPLEX alpar@1610: #define DEFAULT_LP CPLEX alpar@1610: typedef LpCplex Lp; alpar@1610: const char default_solver_name[]="CPLEX"; alpar@1610: #endif alpar@1610: #endif alpar@1610: alpar@1610: } //namespace lemon alpar@1610: alpar@1610: #endif //LEMON_LP_BASE_H