Bonmin  1.7
BonGuessHeuristic.hpp
Go to the documentation of this file.
00001 // (C) Copyright International Business Machines  2007
00002 // All Rights Reserved.
00003 // This code is published under the Common Public License.
00004 //
00005 // Authors :
00006 // Andreas Waechter          IBM       2007-09-01
00007 
00008 #ifndef BonGuessHeuristic_HPP
00009 #define BonGuessHeuristic_HPP
00010 #include "BonOsiTMINLPInterface.hpp"
00011 
00012 #include "CbcHeuristic.hpp"
00013 
00014 namespace Bonmin
00015 {
00016   class  GuessHeuristic : public CbcHeuristic
00017   {
00018   public:
00020     GuessHeuristic(CbcModel &model);
00022     GuessHeuristic( const GuessHeuristic &copy):
00023         CbcHeuristic(copy)
00024     {}
00025 
00027     virtual int solution(double &solutionValue, double *betterSolution);
00028     virtual int solution(double &solutionValue, double *betterSolution, OsiCuts & cs)
00029     {
00030       return solution(solutionValue, betterSolution);
00031     }
00032     virtual CbcHeuristic * clone()const
00033     {
00034       return new GuessHeuristic(*this);
00035     }
00036     virtual void resetModel(CbcModel*)
00037     {}
00038   private:
00040     GuessHeuristic();
00041 
00043     GuessHeuristic & operator=(const GuessHeuristic& rhs);
00044   };
00045 }
00046 #endif