Cbc  2.9.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbcHeuristicRENS.hpp
Go to the documentation of this file.
1 // $Id: CbcHeuristicRENS.hpp 2105 2015-01-05 13:11:11Z forrest $
2 // Copyright (C) 2006, International Business Machines
3 // Corporation and others. All Rights Reserved.
4 // This code is licensed under the terms of the Eclipse Public License (EPL).
5 
6 // edwin 12/5/09 carved out of CbcHeuristicRINS
7 
8 #ifndef CbcHeuristicRENS_H
9 #define CbcHeuristicRENS_H
10 
11 #include "CbcHeuristic.hpp"
12 
17 public:
18 
19  // Default Constructor
21 
22  /* Constructor with model - assumed before cuts
23  Initial version does not do Lps
24  */
25  CbcHeuristicRENS (CbcModel & model);
26 
27  // Copy constructor
29 
30  // Destructor
32 
34  virtual CbcHeuristic * clone() const;
35 
36 
39 
41  virtual void resetModel(CbcModel * model);
42 
44  virtual void setModel(CbcModel * model);
45 
52  virtual int solution(double & objectiveValue,
53  double * newSolution);
54 
56  inline void setRensType(int value)
57  { rensType_ = value;}
58 
59 protected:
60  // Data
73  int rensType_;
74 };
75 
76 #endif
77 
virtual CbcHeuristic * clone() const
Clone.
int numberTries_
Number of tries.
virtual int solution(double &objectiveValue, double *newSolution)
returns 0 if no solution, 1 if valid solution.
LocalSearch class.
CbcHeuristicRENS & operator=(const CbcHeuristicRENS &rhs)
Assignment operator.
virtual void resetModel(CbcModel *model)
Resets stuff if model changes.
virtual void setModel(CbcModel *model)
update model (This is needed if cliques update matrix etc)
int rensType_
Type 0 - fix at LB 1 - fix on dj 2 - fix at UB as well 3 - fix on 0.01*average dj add 16 to allow two...
void setRensType(int value)
Set type.
Heuristic base class.
virtual int solution(double &objectiveValue, double *newSolution)=0
returns 0 if no solution, 1 if valid solution with better objective value than one passed in Sets sol...
Simple Branch and bound class.
Definition: CbcModel.hpp:101