Bonmin  1.7
BonHeuristicRINS.hpp
Go to the documentation of this file.
00001 // (C) Copyright CNRS and International Business Machines Corporation
00002 // All Rights Reserved.
00003 // This code is published under the Common Public License.
00004 //
00005 // Authors :
00006 // Pierre Bonami, LIF Université de la Méditérannée-CNRS
00007 // Joao Goncalves, International Business Machines Corporation
00008 //
00009 // Date : 06/18/2008
00010 
00011 #ifndef BonHeuristicRINS_H
00012 #define BonHeuristicRINS_H
00013 #include "BonLocalSolverBasedHeuristic.hpp"
00014 
00015 namespace Bonmin {
00016   class HeuristicRINS:public LocalSolverBasedHeuristic {
00017     public:
00019      HeuristicRINS();
00021     HeuristicRINS(BonminSetup * setup);
00022 
00024      HeuristicRINS(const HeuristicRINS &other);
00026      virtual CbcHeuristic * clone() const{
00027       return new HeuristicRINS(*this);
00028      }
00029 
00031      virtual ~HeuristicRINS();
00032 
00034      int solution(double & objectiveValue,
00035                   double * newSolution);
00037    static void registerOptions(Ipopt::SmartPtr<Bonmin::RegisteredOptions> roptions);
00038 
00040    void Initialize(Ipopt::SmartPtr<Ipopt::OptionsList> options);
00041 
00043     inline void setHowOften(int value)
00044     { howOften_=value;}
00045 
00046   private:
00048     int howOften_;
00050     int numberSolutions_;
00051 
00052   };
00053 
00054 }/* Ends Bonmin namepace.*/
00055 #endif