lemon/mip_glpk.h
author alpar
Mon, 28 Aug 2006 16:10:12 +0000
changeset 2183 b6602864e456
parent 2144 cd8897f67c26
child 2185 e2bf51eab7f7
permissions -rw-r--r--
Update header list
athos@2144
     1
/* -*- C++ -*-
athos@2144
     2
 *
athos@2144
     3
 * This file is a part of LEMON, a generic C++ optimization library
athos@2144
     4
 *
athos@2144
     5
 * Copyright (C) 2003-2006
athos@2144
     6
 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
athos@2144
     7
 * (Egervary Research Group on Combinatorial Optimization, EGRES).
athos@2144
     8
 *
athos@2144
     9
 * Permission to use, modify and distribute this software is granted
athos@2144
    10
 * provided that this copyright notice appears in all copies. For
athos@2144
    11
 * precise terms see the accompanying LICENSE file.
athos@2144
    12
 *
athos@2144
    13
 * This software is provided "AS IS" with no warranty of any kind,
athos@2144
    14
 * express or implied, and with no claim as to its suitability for any
athos@2144
    15
 * purpose.
athos@2144
    16
 *
athos@2144
    17
 */
athos@2144
    18
athos@2144
    19
#ifndef LEMON_ILP_GLPK_H
athos@2144
    20
#define LEMON_ILP_GLPK_H
athos@2144
    21
athos@2144
    22
///\file
athos@2144
    23
///\brief Header of the LEMON-GLPK lp solver interface.
athos@2144
    24
///\ingroup gen_opt_group
athos@2144
    25
athos@2144
    26
athos@2144
    27
#include <lemon/lp_glpk.h>
athos@2144
    28
athos@2144
    29
namespace lemon {
athos@2144
    30
  /// \brief Interface for the GLPK ILP solver
athos@2144
    31
  /// 
athos@2144
    32
  /// This class implements an interface for the GLPK ILP solver.
athos@2144
    33
  ///\ingroup gen_opt_group
athos@2144
    34
  class MipGlpk : public MipSolverBase, public LpGlpk{
athos@2144
    35
  
athos@2144
    36
  public:
athos@2144
    37
  
athos@2144
    38
    typedef MipSolverBase ParentMip;
athos@2144
    39
    typedef LpGlpk ParentLp;
athos@2144
    40
    
athos@2144
    41
    MipGlpk();
athos@2144
    42
    //~MipGlpk();
athos@2144
    43
    
athos@2144
    44
    
athos@2144
    45
    
athos@2144
    46
  protected:
athos@2144
    47
  
athos@2148
    48
    virtual ColTypes _colType(int col);
athos@2148
    49
    virtual void _colType(int col, ColTypes col_type);
athos@2144
    50
    
athos@2144
    51
    virtual LpGlpk::SolveExitStatus _solve();
athos@2144
    52
    virtual ParentLp::Value _getPrimal(int i);
athos@2144
    53
    virtual ParentLp::Value _getPrimalValue();
athos@2144
    54
  };
athos@2144
    55
athos@2144
    56
} //END OF NAMESPACE LEMON
athos@2144
    57
athos@2144
    58
#endif // END OF LEMON_ILP_GLPK_H