Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
var
build
temp
tmp.S6JLgK91Yt
4.0-0-0
coinor-cbc
coinor-cbc-2.5.0
Cbc
src
CbcHeuristicVND.hpp
Go to the documentation of this file.
1
// edwin 12/5/09 carved out of CbcHeuristicRINS
2
#ifndef CbcHeuristicVND_H
3
#define CbcHeuristicVND_H
4
5
#include "
CbcHeuristic.hpp
"
6
7
11
class
CbcHeuristicVND
:
public
CbcHeuristic
{
12
public
:
13
14
// Default Constructor
15
CbcHeuristicVND
();
16
17
/* Constructor with model - assumed before cuts
18
Initial version does not do Lps
19
*/
20
CbcHeuristicVND
(
CbcModel
& model);
21
22
// Copy constructor
23
CbcHeuristicVND
(
const
CbcHeuristicVND
&);
24
25
// Destructor
26
~CbcHeuristicVND
();
27
29
virtual
CbcHeuristic
*
clone
()
const
;
30
31
33
CbcHeuristicVND
&
operator=
(
const
CbcHeuristicVND
& rhs);
34
36
virtual
void
generateCpp
( FILE * fp) ;
37
39
virtual
void
resetModel
(
CbcModel
* model);
40
42
virtual
void
setModel
(
CbcModel
* model);
43
44
using
CbcHeuristic::solution
;
49
virtual
int
solution
(
double
& objectiveValue,
50
double
* newSolution);
52
int
solutionFix
(
double
& objectiveValue,
53
double
* newSolution,
54
const
int
* keep);
55
57
inline
void
setHowOften
(
int
value) {
58
howOften_
= value;
59
}
61
inline
double
*
baseSolution
()
const
{
62
return
baseSolution_
;
63
}
64
65
protected
:
66
// Data
67
69
int
numberSolutions_
;
71
int
howOften_
;
73
int
numberSuccesses_
;
75
int
numberTries_
;
77
int
lastNode_
;
79
int
stepSize_
;
80
int
k_
;
81
int
kmax_
;
82
int
nDifferent_
;
84
double
*
baseSolution_
;
85
};
86
87
#endif
88
Generated on Mon Mar 17 2014 19:08:45 by
1.8.1.2