/home/coin/SVN-release/OS-2.1.1/Couenne/src/main/BonInitHeuristic.hpp

Go to the documentation of this file.
00001 /* $Id: BonInitHeuristic.hpp 154 2009-06-16 18:52:53Z pbelotti $ */
00002 // (C) Copyright International Business Machines Corporation 2007
00003 // All Rights Reserved.
00004 // This code is published under the Common Public License.
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 Bonmin{
00018 
00024   class InitHeuristic : public CbcHeuristic{
00025 public:
00027     InitHeuristic(double objValue, const double* sol, CouenneProblem& cp);
00029     InitHeuristic(const InitHeuristic &other);
00030     
00032     virtual ~InitHeuristic();
00033     
00035     virtual CbcHeuristic * clone() const;
00036     
00038     InitHeuristic & operator=(const InitHeuristic &rhs);
00039     
00040     virtual void resetModel(CbcModel * model){}
00046     virtual int solution(double & objectiveValue, double * newSolution);
00047 private:
00049     InitHeuristic();
00050 
00052     double objValue_;
00053 
00055     double* sol_;
00056 
00058     int nVars_;
00059   };
00060 }/* Ends namespace Bonmin. */
00061 
00062 #endif
00063 

Generated on Mon May 3 03:05:21 2010 by  doxygen 1.4.7