Bonmin 1.8.9
Loading...
Searching...
No Matches
BonHeuristicRINS.hpp
Go to the documentation of this file.
1// (C) Copyright CNRS and International Business Machines Corporation
2// All Rights Reserved.
3// This code is published under the Eclipse Public License.
4//
5// Authors :
6// Pierre Bonami, LIF Université de la Méditérannée-CNRS
7// Joao Goncalves, International Business Machines Corporation
8//
9// Date : 06/18/2008
10
11#ifndef BonHeuristicRINS_H
12#define BonHeuristicRINS_H
14
15namespace Bonmin {
17 public:
22
26 virtual CbcHeuristic * clone() const{
27 return new HeuristicRINS(*this);
28 }
29
31 virtual ~HeuristicRINS();
32
34 int solution(double & objectiveValue,
35 double * newSolution);
38
41
43 inline void setHowOften(int value)
44 { howOften_=value;}
45
46 private:
48 int howOften_;
50 int numberSolutions_;
51
52 };
53
54}/* Ends Bonmin namepace.*/
55#endif
void setHowOften(int value)
Sets how often to do it.
HeuristicRINS(const HeuristicRINS &other)
Copy constructor.
virtual ~HeuristicRINS()
Destructor.
int solution(double &objectiveValue, double *newSolution)
Runs heuristic.
HeuristicRINS()
Default constructor.
HeuristicRINS(BonminSetup *setup)
Constructor with setup.
static void registerOptions(Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions)
Register the options common to all local search based heuristics.
virtual CbcHeuristic * clone() const
Virtual constructor.
void Initialize(Ipopt::SmartPtr< Ipopt::OptionsList > options)
Initiaize using passed options.
(C) Copyright International Business Machines Corporation 2007