athos@2144: /* -*- C++ -*- athos@2144: * athos@2144: * This file is a part of LEMON, a generic C++ optimization library athos@2144: * athos@2144: * Copyright (C) 2003-2006 athos@2144: * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport athos@2144: * (Egervary Research Group on Combinatorial Optimization, EGRES). athos@2144: * athos@2144: * Permission to use, modify and distribute this software is granted athos@2144: * provided that this copyright notice appears in all copies. For athos@2144: * precise terms see the accompanying LICENSE file. athos@2144: * athos@2144: * This software is provided "AS IS" with no warranty of any kind, athos@2144: * express or implied, and with no claim as to its suitability for any athos@2144: * purpose. athos@2144: * athos@2144: */ athos@2144: athos@2144: #ifndef LEMON_ILP_GLPK_H athos@2144: #define LEMON_ILP_GLPK_H athos@2144: athos@2144: ///\file athos@2144: ///\brief Header of the LEMON-GLPK lp solver interface. athos@2144: ///\ingroup gen_opt_group athos@2144: athos@2144: athos@2144: #include athos@2144: athos@2144: namespace lemon { athos@2144: /// \brief Interface for the GLPK ILP solver athos@2144: /// athos@2144: /// This class implements an interface for the GLPK ILP solver. athos@2144: ///\ingroup gen_opt_group athos@2144: class MipGlpk : public MipSolverBase, public LpGlpk{ athos@2144: athos@2144: public: athos@2144: athos@2144: typedef MipSolverBase ParentMip; athos@2144: typedef LpGlpk ParentLp; athos@2144: athos@2144: MipGlpk(); athos@2144: //~MipGlpk(); athos@2144: athos@2144: athos@2144: athos@2144: protected: athos@2144: athos@2148: virtual ColTypes _colType(int col); athos@2148: virtual void _colType(int col, ColTypes col_type); athos@2144: athos@2144: virtual LpGlpk::SolveExitStatus _solve(); athos@2144: virtual ParentLp::Value _getPrimal(int i); athos@2144: virtual ParentLp::Value _getPrimalValue(); athos@2144: }; athos@2144: athos@2144: } //END OF NAMESPACE LEMON athos@2144: athos@2144: #endif // END OF LEMON_ILP_GLPK_H