lemon/mip_cplex.h
changeset 2219 c263168e0964
child 2366 bfbdded3763a
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/lemon/mip_cplex.h	Mon Sep 25 08:50:36 2006 +0000
     1.3 @@ -0,0 +1,61 @@
     1.4 +/* -*- C++ -*-
     1.5 + *
     1.6 + * This file is a part of LEMON, a generic C++ optimization library
     1.7 + *
     1.8 + * Copyright (C) 2003-2006
     1.9 + * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
    1.10 + * (Egervary Research Group on Combinatorial Optimization, EGRES).
    1.11 + *
    1.12 + * Permission to use, modify and distribute this software is granted
    1.13 + * provided that this copyright notice appears in all copies. For
    1.14 + * precise terms see the accompanying LICENSE file.
    1.15 + *
    1.16 + * This software is provided "AS IS" with no warranty of any kind,
    1.17 + * express or implied, and with no claim as to its suitability for any
    1.18 + * purpose.
    1.19 + *
    1.20 + */
    1.21 +
    1.22 +#ifndef LEMON_MIP_CPLEX_H
    1.23 +#define LEMON_MIP_CPLEX_H
    1.24 +
    1.25 +///\file
    1.26 +///\brief Header of the LEMON-CPLEX mip solver interface.
    1.27 +///\ingroup gen_opt_group
    1.28 +
    1.29 +
    1.30 +#include <lemon/lp_cplex.h>
    1.31 +
    1.32 +namespace lemon {
    1.33 +
    1.34 +  /// \brief Interface for the CPLEX MIP solver
    1.35 +  /// 
    1.36 +  /// This class implements an interface for the CPLEX MIP solver.
    1.37 +  ///\ingroup gen_opt_group
    1.38 +  class MipCplex : public MipSolverBase, public LpCplex{
    1.39 +    
    1.40 +  public:
    1.41 +  
    1.42 +    typedef MipSolverBase ParentMip;
    1.43 +    typedef LpCplex ParentLp;
    1.44 +    
    1.45 +    MipCplex();
    1.46 +    //~MipCplex();
    1.47 +    
    1.48 +    
    1.49 +
    1.50 +    
    1.51 +  protected:
    1.52 +  
    1.53 +    virtual ColTypes _colType(int col);
    1.54 +    virtual void _colType(int col, ColTypes col_type);
    1.55 +    
    1.56 +    virtual LpCplex::SolveExitStatus _solve();
    1.57 +    virtual LpCplex::SolutionStatus _getMipStatus();
    1.58 +    virtual ParentLp::Value _getPrimal(int i);
    1.59 +    virtual ParentLp::Value _getPrimalValue();
    1.60 +  };
    1.61 +
    1.62 +} //END OF NAMESPACE LEMON
    1.63 +
    1.64 +#endif // END OF LEMON_MIP_CPLEX_H