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