Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
build
buildd
coinor-cbc-2.5.0
debian
tmp
usr
include
coin
CbcCompareDepth.hpp
Go to the documentation of this file.
1
//Edwin 11/24/09 carved out of CbcCompareActual
2
#ifndef CbcCompareDepth_H
3
#define CbcCompareDepth_H
4
5
6
//#############################################################################
7
/* These are alternative strategies for node traversal.
8
They can take data etc for fine tuning
9
10
At present the node list is stored as a heap and the "test"
11
comparison function returns true if node y is better than node x.
12
13
*/
14
#include "
CbcNode.hpp
"
15
#include "
CbcCompareBase.hpp
"
16
#include "
CbcCompare.hpp
"
17
class
CbcModel
;
18
// This is default before first solution
19
class
CbcCompareDepth
:
public
CbcCompareBase
{
20
public
:
21
// Default Constructor
22
CbcCompareDepth
() ;
23
24
~CbcCompareDepth
();
25
// Copy constructor
26
CbcCompareDepth
(
const
CbcCompareDepth
&rhs);
27
28
// Assignment operator
29
CbcCompareDepth
&
operator=
(
const
CbcCompareDepth
& rhs);
30
32
virtual
CbcCompareBase
*
clone
()
const
;
34
virtual
void
generateCpp
( FILE * fp);
35
36
// This returns true if the depth of node y is greater than depth of node x
37
virtual
bool
test
(
CbcNode
* x,
CbcNode
* y);
38
};
39
40
#endif
41
Generated on Fri Jun 29 2012 06:31:52 by
1.8.1.1