00001 /* $Id: BonInitHeuristic.hpp 488 2011-01-10 17:06:41Z pbelotti $ */ 00002 // (C) Copyright International Business Machines Corporation 2007 00003 // All Rights Reserved. 00004 // This code is published under the Eclipse Public License (EPL). 00005 // 00006 // Authors : 00007 // Andreas Waechter, International Business Machines Corporation 00008 // 00009 // Date : 12/07/2007 00010 00011 #ifndef BonInitHeuristic_HPP 00012 #define BonInitHeuristic_HPP 00013 00014 #include "CbcHeuristic.hpp" 00015 #include "CouenneProblem.hpp" 00016 00017 namespace Couenne { 00018 00024 class InitHeuristic : public CbcHeuristic{ 00025 00026 public: 00027 00029 InitHeuristic(double objValue, const double* sol, CouenneProblem& cp); 00031 InitHeuristic(const InitHeuristic &other); 00032 00034 virtual ~InitHeuristic(); 00035 00037 virtual CbcHeuristic * clone() const; 00038 00040 InitHeuristic & operator=(const InitHeuristic &rhs); 00041 00042 virtual void resetModel(CbcModel * model){} 00048 virtual int solution(double & objectiveValue, double * newSolution); 00049 00050 private: 00051 00053 InitHeuristic(); 00054 00056 double objValue_; 00057 00059 double* sol_; 00060 00062 int nVars_; 00063 }; 00064 00065 } 00066 00067 #endif 00068