Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
build
buildd
coinor-cbc-2.5.0
Cbc
src
CbcHeuristicRINS.hpp
Go to the documentation of this file.
1
/* $Id: CbcHeuristicRINS.hpp 1261 2009-10-30 12:45:20Z forrest $ */
2
// Copyright (C) 2006, International Business Machines
3
// Corporation and others. All Rights Reserved.
4
#ifndef CbcHeuristicRINS_H
5
#define CbcHeuristicRINS_H
6
7
#include "
CbcHeuristic.hpp
"
8
// for backward compatibility include 3 other headers
9
#include "
CbcHeuristicRENS.hpp
"
10
#include "
CbcHeuristicDINS.hpp
"
11
#include "
CbcHeuristicVND.hpp
"
15
class
CbcHeuristicRINS
:
public
CbcHeuristic
{
16
public
:
17
18
// Default Constructor
19
CbcHeuristicRINS
();
20
21
/* Constructor with model - assumed before cuts
22
Initial version does not do Lps
23
*/
24
CbcHeuristicRINS
(
CbcModel
& model);
25
26
// Copy constructor
27
CbcHeuristicRINS
(
const
CbcHeuristicRINS
&);
28
29
// Destructor
30
~CbcHeuristicRINS
();
31
33
virtual
CbcHeuristic
*
clone
()
const
;
34
35
37
CbcHeuristicRINS
&
operator=
(
const
CbcHeuristicRINS
& rhs);
38
40
virtual
void
generateCpp
( FILE * fp) ;
41
43
virtual
void
resetModel
(
CbcModel
* model);
44
46
virtual
void
setModel
(
CbcModel
* model);
47
48
using
CbcHeuristic::solution
;
53
virtual
int
solution
(
double
& objectiveValue,
54
double
* newSolution);
56
int
solutionFix
(
double
& objectiveValue,
57
double
* newSolution,
58
const
int
* keep);
59
61
inline
void
setHowOften
(
int
value) {
62
howOften_
= value;
63
}
65
inline
char
*
used
()
const
{
66
return
used_
;
67
}
69
inline
void
setLastNode
(
int
value) {
70
lastNode_
= value;
71
}
72
73
protected
:
74
// Data
75
77
int
numberSolutions_
;
79
int
howOften_
;
81
int
numberSuccesses_
;
83
int
numberTries_
;
89
int
stateOfFixing_
;
91
int
lastNode_
;
93
char
*
used_
;
94
};
95
#endif
96
Generated on Fri Jun 29 2012 06:31:52 by
1.8.1.1