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
CbcCompareObjective.hpp
Go to the documentation of this file.
1
//Edwin 11/25/09 carved out of CbcCompareActual
2
#ifndef CbcCompareObjective_H
3
#define CbcCompareObjective_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
18
class
CbcModel
;
19
20
class
CbcCompareObjective
:
public
CbcCompareBase
{
21
public
:
22
// Default Constructor
23
CbcCompareObjective
();
24
25
virtual
~CbcCompareObjective
();
26
// Copy constructor
27
CbcCompareObjective
(
const
CbcCompareObjective
&rhs);
28
29
// Assignment operator
30
CbcCompareObjective
&
operator=
(
const
CbcCompareObjective
& rhs);
31
33
virtual
CbcCompareBase
*
clone
()
const
;
35
virtual
void
generateCpp
( FILE * fp);
36
37
/* This returns true if objective value of node y is less than
38
objective value of node x */
39
virtual
bool
test
(
CbcNode
* x,
CbcNode
* y);
40
};
41
42
#endif //CbcCompareObjective_H
43
Generated on Mon Mar 17 2014 19:08:45 by
1.8.1.2