Bonmin
1.7
|
00001 // (C) Copyright CNRS 00002 // This code is published under the Common Public License. 00003 // 00004 // Authors : 00005 // Pierre Bonami, LIF Université de la Méditérannée-CNRS 00006 // 00007 // Date : 06/18/2008 00008 00009 #ifndef BonFixAndSolveHeuristic_H 00010 #define BonFixAndSolveHeuristic_H 00011 #include "BonLocalSolverBasedHeuristic.hpp" 00012 00013 namespace Bonmin { 00014 class FixAndSolveHeuristic:public LocalSolverBasedHeuristic { 00015 public: 00017 FixAndSolveHeuristic(); 00019 FixAndSolveHeuristic(BonminSetup * setup); 00020 00022 FixAndSolveHeuristic(const FixAndSolveHeuristic &other); 00024 virtual CbcHeuristic * clone() const{ 00025 return new FixAndSolveHeuristic(*this); 00026 } 00027 00029 virtual ~FixAndSolveHeuristic(); 00030 00032 int solution(double & objectiveValue, 00033 double * newSolution); 00035 static void registerOptions(Ipopt::SmartPtr<Bonmin::RegisteredOptions> roptions); 00036 00038 void Initialize(Ipopt::SmartPtr<Ipopt::OptionsList> options); 00039 }; 00040 00041 }/* Ends Bonmin namepace.*/ 00042 #endif 00043