lemon/mip_glpk.h
author Balazs Dezso <deba@inf.elte.hu>
Tue, 02 Dec 2008 21:40:33 +0100
changeset 481 7afc121e0689
permissions -rw-r--r--
Port LP and MIP solvers from SVN -r3509 (#44)
deba@481
     1
/* -*- mode: C++; indent-tabs-mode: nil; -*-
deba@481
     2
 *
deba@481
     3
 * This file is a part of LEMON, a generic C++ optimization library.
deba@481
     4
 *
deba@481
     5
 * Copyright (C) 2003-2008
deba@481
     6
 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
deba@481
     7
 * (Egervary Research Group on Combinatorial Optimization, EGRES).
deba@481
     8
 *
deba@481
     9
 * Permission to use, modify and distribute this software is granted
deba@481
    10
 * provided that this copyright notice appears in all copies. For
deba@481
    11
 * precise terms see the accompanying LICENSE file.
deba@481
    12
 *
deba@481
    13
 * This software is provided "AS IS" with no warranty of any kind,
deba@481
    14
 * express or implied, and with no claim as to its suitability for any
deba@481
    15
 * purpose.
deba@481
    16
 *
deba@481
    17
 */
deba@481
    18
deba@481
    19
#ifndef LEMON_MIP_GLPK_H
deba@481
    20
#define LEMON_MIP_GLPK_H
deba@481
    21
deba@481
    22
///\file
deba@481
    23
///\brief Header of the LEMON-GLPK mip solver interface.
deba@481
    24
///\ingroup lp_group
deba@481
    25
deba@481
    26
deba@481
    27
#include <lemon/lp_glpk.h>
deba@481
    28
deba@481
    29
namespace lemon {
deba@481
    30
  /// \brief Interface for the GLPK MIP solver
deba@481
    31
  ///
deba@481
    32
  /// This class implements an interface for the GLPK MIP solver.
deba@481
    33
  ///\ingroup lp_group
deba@481
    34
  class MipGlpk : public MipSolverBase, public LpGlpk{
deba@481
    35
deba@481
    36
  public:
deba@481
    37
deba@481
    38
    typedef MipSolverBase ParentMip;
deba@481
    39
    typedef LpGlpk ParentLp;
deba@481
    40
deba@481
    41
    MipGlpk();
deba@481
    42
    //~MipGlpk();
deba@481
    43
deba@481
    44
deba@481
    45
deba@481
    46
  protected:
deba@481
    47
deba@481
    48
    virtual ColTypes _colType(int col) const;
deba@481
    49
    virtual void _colType(int col, ColTypes col_type);
deba@481
    50
deba@481
    51
    virtual LpGlpk::SolveExitStatus _solve();
deba@481
    52
    virtual LpGlpk::SolutionStatus _getMipStatus() const;
deba@481
    53
    virtual ParentLp::Value _getPrimal(int i) const;
deba@481
    54
    virtual ParentLp::Value _getPrimalValue() const;
deba@481
    55
  };
deba@481
    56
deba@481
    57
} //END OF NAMESPACE LEMON
deba@481
    58
deba@481
    59
#endif // END OF LEMON_MIP_GLPK_H