Bonmin  1.8.8
BonFixAndSolveHeuristic.hpp
Go to the documentation of this file.
1 // (C) Copyright CNRS
2 // This code is published under the Eclipse Public License.
3 //
4 // Authors :
5 // Pierre Bonami, LIF Université de la Méditérannée-CNRS
6 //
7 // Date : 06/18/2008
8 
9 #ifndef BonFixAndSolveHeuristic_H
10 #define BonFixAndSolveHeuristic_H
12 
13 namespace Bonmin {
15  public:
20 
24  virtual CbcHeuristic * clone() const{
25  return new FixAndSolveHeuristic(*this);
26  }
27 
29  virtual ~FixAndSolveHeuristic();
30 
32  int solution(double & objectiveValue,
33  double * newSolution);
35  static void registerOptions(Ipopt::SmartPtr<Bonmin::RegisteredOptions> roptions);
36 
38  void Initialize(Ipopt::SmartPtr<Ipopt::OptionsList> options);
39  };
40 
41 }/* Ends Bonmin namepace.*/
42 #endif
43 
void Initialize(Ipopt::SmartPtr< Ipopt::OptionsList > options)
Initiaize using passed options.
virtual ~FixAndSolveHeuristic()
Destructor.
FixAndSolveHeuristic()
Default constructor.
static void registerOptions(Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions)
Register the options common to all local search based heuristics.
virtual CbcHeuristic * clone() const
Virtual constructor.
int solution(double &objectiveValue, double *newSolution)
Runs heuristic.