Cbc
2.10.10
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
d
l
p
r
s
Functions
a
d
l
p
r
s
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
Related Functions
Files
File List
File Members
All
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
Functions
a
c
d
e
f
g
o
r
s
w
Variables
Enumerations
Enumerator
c
d
f
g
l
n
o
s
Macros
c
h
i
m
n
o
p
s
t
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Cbc
src
CbcCompareObjective.hpp
Go to the documentation of this file.
1
// $Id$
2
// Copyright (C) 2002, International Business Machines
3
// Corporation and others. All Rights Reserved.
4
// This code is licensed under the terms of the Eclipse Public License (EPL).
5
6
//Edwin 11/25/09 carved out of CbcCompareActual
7
8
#ifndef CbcCompareObjective_H
9
#define CbcCompareObjective_H
10
11
//#############################################################################
12
/* These are alternative strategies for node traversal.
13
They can take data etc for fine tuning
14
15
At present the node list is stored as a heap and the "test"
16
comparison function returns true if node y is better than node x.
17
18
*/
19
#include "
CbcNode.hpp
"
20
#include "
CbcCompareBase.hpp
"
21
#include "
CbcCompare.hpp
"
22
23
class
CbcModel
;
24
25
class
CbcCompareObjective
:
public
CbcCompareBase
{
26
public
:
27
// Default Constructor
28
CbcCompareObjective
();
29
30
virtual
~CbcCompareObjective
();
31
// Copy constructor
32
CbcCompareObjective
(
const
CbcCompareObjective
&rhs);
33
34
// Assignment operator
35
CbcCompareObjective
&
operator=
(
const
CbcCompareObjective
&rhs);
36
38
virtual
CbcCompareBase
*
clone
()
const
;
40
virtual
void
generateCpp
(FILE *fp);
41
42
/* This returns true if objective value of node y is less than
43
objective value of node x */
44
virtual
bool
test
(
CbcNode
*x,
CbcNode
*y);
45
};
46
47
#endif //CbcCompareObjective_H
48
49
/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
50
*/
CbcCompareObjective::clone
virtual CbcCompareBase * clone() const
Clone.
CbcCompareObjective::CbcCompareObjective
CbcCompareObjective()
CbcCompareObjective::~CbcCompareObjective
virtual ~CbcCompareObjective()
CbcCompareObjective
Definition:
CbcCompareObjective.hpp:25
CbcModel
Simple Branch and bound class.
Definition:
CbcModel.hpp:100
CbcCompare.hpp
CbcCompareBase.hpp
CbcCompareObjective::operator=
CbcCompareObjective & operator=(const CbcCompareObjective &rhs)
CbcNode
Information required while the node is live.
Definition:
CbcNode.hpp:49
CbcNode.hpp
CbcCompareBase
Definition:
CbcCompareBase.hpp:26
CbcCompareObjective::generateCpp
virtual void generateCpp(FILE *fp)
Create C++ lines to get to current state.
CbcCompareObjective::test
virtual bool test(CbcNode *x, CbcNode *y)
This is test function.
Generated by
1.8.17