Cbc
2.10.13
Toggle main menu visibility
Loading...
Searching...
No Matches
Cbc
src
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
15
16
class
CbcHeuristicRENS
:
public
CbcHeuristic
{
17
public
:
18
// Default Constructor
19
CbcHeuristicRENS
();
20
21
/* Constructor with model - assumed before cuts
22
Initial version does not do Lps
23
*/
24
CbcHeuristicRENS
(
CbcModel
&
model
);
25
26
// Copy constructor
27
CbcHeuristicRENS
(
const
CbcHeuristicRENS
&);
28
29
// Destructor
30
~CbcHeuristicRENS
();
31
33
virtual
CbcHeuristic
*
clone
()
const
;
34
36
CbcHeuristicRENS
&
operator=
(
const
CbcHeuristicRENS
&rhs);
37
39
virtual
void
resetModel
(
CbcModel
*
model
);
40
42
virtual
void
setModel
(
CbcModel
*
model
);
43
44
using
CbcHeuristic::solution
;
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
62
int
numberTries_
;
73
int
rensType_
;
74
};
75
76
#endif
77
78
/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
79
*/
CbcHeuristic.hpp
objectiveValue
double objectiveValue() const
Definition
CbcNode.hpp:221
model
CbcModel * model() const
Return model.
Definition
CbcObject.hpp:252
CbcHeuristicRENS::rensType_
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...
Definition
CbcHeuristicRENS.hpp:73
CbcHeuristicRENS::clone
virtual CbcHeuristic * clone() const
Clone.
CbcHeuristicRENS::CbcHeuristicRENS
CbcHeuristicRENS()
CbcHeuristicRENS::solution
virtual int solution(double &objectiveValue, double *newSolution)
returns 0 if no solution, 1 if valid solution.
CbcHeuristicRENS::setModel
virtual void setModel(CbcModel *model)
update model (This is needed if cliques update matrix etc)
CbcHeuristicRENS::CbcHeuristicRENS
CbcHeuristicRENS(CbcModel &model)
CbcHeuristicRENS::CbcHeuristicRENS
CbcHeuristicRENS(const CbcHeuristicRENS &)
CbcHeuristicRENS::resetModel
virtual void resetModel(CbcModel *model)
Resets stuff if model changes.
CbcHeuristicRENS::setRensType
void setRensType(int value)
Set type.
Definition
CbcHeuristicRENS.hpp:54
CbcHeuristicRENS::~CbcHeuristicRENS
~CbcHeuristicRENS()
CbcHeuristicRENS::numberTries_
int numberTries_
Number of tries.
Definition
CbcHeuristicRENS.hpp:62
CbcHeuristicRENS::operator=
CbcHeuristicRENS & operator=(const CbcHeuristicRENS &rhs)
Assignment operator.
CbcHeuristic::solution
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...
CbcHeuristic::CbcHeuristic
CbcHeuristic()
CbcModel
Simple Branch and bound class.
Definition
CbcModel.hpp:100
Generated by
1.17.0