Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
build
buildd
coinor-cbc-2.5.0
debian
tmp
usr
include
coin
CbcHeuristicDINS.hpp
Go to the documentation of this file.
1
// edwin 12/5/09 carved out of CbcHeuristicRINS
2
#ifndef CbcHeuristicDINS_H
3
#define CbcHeuristicDINS_H
4
5
#include "
CbcHeuristic.hpp
"
6
7
8
class
CbcHeuristicDINS
:
public
CbcHeuristic
{
9
public
:
10
11
// Default Constructor
12
CbcHeuristicDINS
();
13
14
/* Constructor with model - assumed before cuts
15
Initial version does not do Lps
16
*/
17
CbcHeuristicDINS
(
CbcModel
& model);
18
19
// Copy constructor
20
CbcHeuristicDINS
(
const
CbcHeuristicDINS
&);
21
22
// Destructor
23
~CbcHeuristicDINS
();
24
26
virtual
CbcHeuristic
*
clone
()
const
;
27
28
30
CbcHeuristicDINS
&
operator=
(
const
CbcHeuristicDINS
& rhs);
31
33
virtual
void
generateCpp
( FILE * fp) ;
34
36
virtual
void
resetModel
(
CbcModel
* model);
37
39
virtual
void
setModel
(
CbcModel
* model);
40
41
using
CbcHeuristic::solution
;
46
virtual
int
solution
(
double
& objectiveValue,
47
double
* newSolution);
49
int
solutionFix
(
double
& objectiveValue,
50
double
* newSolution,
51
const
int
* keep);
52
54
inline
void
setHowOften
(
int
value) {
55
howOften_
= value;
56
}
58
inline
void
setMaximumKeep
(
int
value) {
59
maximumKeepSolutions_
= value;
60
}
62
inline
void
setConstraint
(
int
value) {
63
localSpace_
= value;
64
}
65
66
protected
:
67
// Data
68
70
int
numberSolutions_
;
72
int
howOften_
;
74
int
numberSuccesses_
;
76
int
numberTries_
;
78
int
maximumKeepSolutions_
;
80
int
numberKeptSolutions_
;
82
int
numberIntegers_
;
84
int
localSpace_
;
86
int
**
values_
;
87
};
88
89
#endif
90
Generated on Fri Jun 29 2012 06:31:52 by
1.8.1.1