Cbc  2.10.5
 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 2465 2019-01-03 19:26:52Z unxusr $
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  // Default Constructor
20 
21  /* Constructor with model - assumed before cuts
22  Initial version does not do Lps
23  */
24  CbcHeuristicRENS(CbcModel &model);
25 
26  // Copy constructor
28 
29  // Destructor
31 
33  virtual CbcHeuristic *clone() const;
34 
37 
39  virtual void resetModel(CbcModel *model);
40 
42  virtual void setModel(CbcModel *model);
43 
50  virtual int solution(double &objectiveValue,
51  double *newSolution);
52 
54  inline void setRensType(int value)
55  {
56  rensType_ = value;
57  }
58 
59 protected:
60  // Data
73  int rensType_;
74 };
75 
76 #endif
77 
78 /* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
79 */
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:100