00001 // Copyright (C) 2008, International Business Machines 00002 // Corporation and others. All Rights Reserved. 00003 #ifndef CbcHeuristicPivotAndFix_H 00004 #define CbcHeuristicPivotAndFix_H 00005 00006 #include "CbcHeuristic.hpp" 00010 class CbcHeuristicPivotAndFix : public CbcHeuristic { 00011 public: 00012 00013 // Default Constructor 00014 CbcHeuristicPivotAndFix (); 00015 00016 /* Constructor with model - assumed before cuts 00017 Initial version does not do Lps 00018 */ 00019 CbcHeuristicPivotAndFix (CbcModel & model); 00020 00021 // Copy constructor 00022 CbcHeuristicPivotAndFix ( const CbcHeuristicPivotAndFix &); 00023 00024 // Destructor 00025 ~CbcHeuristicPivotAndFix (); 00026 00028 virtual CbcHeuristic * clone() const; 00029 00031 CbcHeuristicPivotAndFix & operator=(const CbcHeuristicPivotAndFix& rhs); 00032 00034 virtual void generateCpp( FILE * fp) ; 00035 00037 virtual void resetModel(CbcModel * model); 00038 00040 virtual void setModel(CbcModel * model); 00041 00042 using CbcHeuristic::solution ; 00047 virtual int solution(double & objectiveValue, 00048 double * newSolution); 00049 00050 protected: 00051 }; 00052 00053 00054 #endif