Cbc  trunk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
CbcHeuristicRENS.hpp
Go to the documentation of this file.
00001 // $Id$
00002 // Copyright (C) 2006, International Business Machines
00003 // Corporation and others.  All Rights Reserved.
00004 // This code is licensed under the terms of the Eclipse Public License (EPL).
00005 
00006 // edwin 12/5/09 carved out of CbcHeuristicRINS
00007 
00008 #ifndef CbcHeuristicRENS_H
00009 #define CbcHeuristicRENS_H
00010 
00011 #include "CbcHeuristic.hpp"
00012 
00016 class CbcHeuristicRENS : public CbcHeuristic {
00017 public:
00018 
00019     // Default Constructor
00020     CbcHeuristicRENS ();
00021 
00022     /* Constructor with model - assumed before cuts
00023        Initial version does not do Lps
00024     */
00025     CbcHeuristicRENS (CbcModel & model);
00026 
00027     // Copy constructor
00028     CbcHeuristicRENS ( const CbcHeuristicRENS &);
00029 
00030     // Destructor
00031     ~CbcHeuristicRENS ();
00032 
00034     virtual CbcHeuristic * clone() const;
00035 
00036 
00038     CbcHeuristicRENS & operator=(const CbcHeuristicRENS& rhs);
00039 
00041     virtual void resetModel(CbcModel * model);
00042 
00044     virtual void setModel(CbcModel * model);
00045 
00046     using CbcHeuristic::solution ;
00052     virtual int solution(double & objectiveValue,
00053                          double * newSolution);
00054 
00056     inline void setRensType(int value)
00057     { rensType_ = value;}
00058 
00059 protected:
00060     // Data
00062     int numberTries_;
00070     int rensType_;
00071 };
00072 
00073 #endif
00074 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines