Cbc 2.10.11
Loading...
Searching...
No Matches
CbcHeuristicRENS.hpp
Go to the documentation of this file.
1// $Id$
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
17public:
18 // Default Constructor
20
21 /* Constructor with model - assumed before cuts
22 Initial version does not do Lps
23 */
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
59protected:
60 // Data
74};
75
76#endif
77
78/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
79*/
LocalSearch class.
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...
virtual CbcHeuristic * clone() const
Clone.
virtual int solution(double &objectiveValue, double *newSolution)
returns 0 if no solution, 1 if valid solution.
virtual void setModel(CbcModel *model)
update model (This is needed if cliques update matrix etc)
CbcHeuristicRENS(CbcModel &model)
CbcHeuristicRENS(const CbcHeuristicRENS &)
virtual void resetModel(CbcModel *model)
Resets stuff if model changes.
void setRensType(int value)
Set type.
int numberTries_
Number of tries.
CbcHeuristicRENS & operator=(const CbcHeuristicRENS &rhs)
Assignment operator.
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