deba@458: /* -*- mode: C++; indent-tabs-mode: nil; -*- deba@458: * deba@458: * This file is a part of LEMON, a generic C++ optimization library. deba@458: * alpar@1092: * Copyright (C) 2003-2013 deba@458: * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport deba@458: * (Egervary Research Group on Combinatorial Optimization, EGRES). deba@458: * deba@458: * Permission to use, modify and distribute this software is granted deba@458: * provided that this copyright notice appears in all copies. For deba@458: * precise terms see the accompanying LICENSE file. deba@458: * deba@458: * This software is provided "AS IS" with no warranty of any kind, deba@458: * express or implied, and with no claim as to its suitability for any deba@458: * purpose. deba@458: * deba@458: */ deba@458: deba@458: #ifndef LEMON_LP_H deba@458: #define LEMON_LP_H deba@458: deba@458: #include deba@458: deba@458: ladanyi@627: #ifdef LEMON_HAVE_GLPK alpar@461: #include ladanyi@627: #elif LEMON_HAVE_CPLEX alpar@461: #include ladanyi@627: #elif LEMON_HAVE_SOPLEX alpar@461: #include ladanyi@627: #elif LEMON_HAVE_CLP alpar@461: #include alpar@1105: #elif LEMON_HAVE_CBC alpar@1105: #include deba@458: #endif deba@458: deba@458: ///\file deba@458: ///\brief Defines a default LP solver deba@458: ///\ingroup lp_group deba@458: namespace lemon { deba@458: deba@458: #ifdef DOXYGEN deba@458: ///The default LP solver identifier deba@458: deba@458: ///The default LP solver identifier. deba@458: ///\ingroup lp_group deba@458: /// alpar@1108: ///Currently, the possible values are \c _LEMON_GLPK, \c LEMON__CPLEX, alpar@1108: ///\c _LEMON_SOPLEX or \c LEMON__CLP deba@459: #define LEMON_DEFAULT_LP SOLVER deba@458: ///The default LP solver deba@458: deba@458: ///The default LP solver. deba@458: ///\ingroup lp_group deba@458: /// alpar@462: ///Currently, it is either \c GlpkLp, \c CplexLp, \c SoplexLp or \c ClpLp alpar@462: typedef GlpkLp Lp; deba@458: deba@459: ///The default MIP solver identifier deba@459: deba@459: ///The default MIP solver identifier. deba@458: ///\ingroup lp_group deba@458: /// alpar@1108: ///Currently, the possible values are \c _LEMON_GLPK, \c LEMON__CPLEX alpar@1108: ///or \c _LEMON_CBC deba@459: #define LEMON_DEFAULT_MIP SOLVER deba@459: ///The default MIP solver. deba@458: deba@459: ///The default MIP solver. deba@458: ///\ingroup lp_group deba@458: /// alpar@1064: ///Currently, it is either \c GlpkMip, \c CplexMip , \c CbcMip alpar@462: typedef GlpkMip Mip; deba@458: #else alpar@1108: #if LEMON_DEFAULT_LP == _LEMON_GLPK alpar@462: typedef GlpkLp Lp; alpar@1108: #elif LEMON_DEFAULT_LP == _LEMON_CPLEX alpar@462: typedef CplexLp Lp; alpar@1108: #elif LEMON_DEFAULT_LP == _LEMON_SOPLEX alpar@1064: typedef SoplexLp Lp; alpar@1108: #elif LEMON_DEFAULT_LP == _LEMON_CLP alpar@1064: typedef ClpLp Lp; alpar@1064: #endif alpar@1108: #if LEMON_DEFAULT_MIP == _LEMON_GLPK alpar@1105: typedef GlpkMip Mip; alpar@1108: #elif LEMON_DEFAULT_MIP == _LEMON_CPLEX alpar@462: typedef CplexMip Mip; alpar@1108: #elif LEMON_DEFAULT_MIP == _LEMON_CBC alpar@1064: typedef CbcMip Mip; deba@458: #endif deba@458: #endif deba@458: deba@458: } //namespace lemon deba@458: deba@458: #endif //LEMON_LP_H