Cbc trunk
|
00001 /* $Id: CbcHeuristicRandRound.hpp 1173 2009-06-04 09:44:10Z forrest $ */ 00002 // Copyright (C) 2008, 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 #ifndef CbcHeuristicRandRound_H 00007 #define CbcHeuristicRandRound_H 00008 00009 #include "CbcHeuristic.hpp" 00013 class CbcHeuristicRandRound : public CbcHeuristic { 00014 public: 00015 00016 // Default Constructor 00017 CbcHeuristicRandRound (); 00018 00019 /* Constructor with model - assumed before cuts 00020 Initial version does not do Lps 00021 */ 00022 CbcHeuristicRandRound (CbcModel & model); 00023 00024 // Copy constructor 00025 CbcHeuristicRandRound ( const CbcHeuristicRandRound &); 00026 00027 // Destructor 00028 ~CbcHeuristicRandRound (); 00029 00031 virtual CbcHeuristic * clone() const; 00032 00034 CbcHeuristicRandRound & operator=(const CbcHeuristicRandRound& rhs); 00035 00037 virtual void generateCpp( FILE * fp) ; 00038 00040 virtual void resetModel(CbcModel * model); 00041 00043 virtual void setModel(CbcModel * model); 00044 00045 using CbcHeuristic::solution ; 00050 virtual int solution(double & objectiveValue, 00051 double * newSolution); 00052 00053 protected: 00054 }; 00055 00056 00057 #endif 00058