Cbc
2.10.13
Toggle main menu visibility
Loading...
Searching...
No Matches
Cbc
src
CbcCompareDepth.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/24/09 carved out of CbcCompareActual
7
8
#ifndef CbcCompareDepth_H
9
#define CbcCompareDepth_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
class
CbcModel
;
23
// This is default before first solution
24
class
CbcCompareDepth
:
public
CbcCompareBase
{
25
public
:
26
// Default Constructor
27
CbcCompareDepth
();
28
29
~CbcCompareDepth
();
30
// Copy constructor
31
CbcCompareDepth
(
const
CbcCompareDepth
&rhs);
32
33
// Assignment operator
34
CbcCompareDepth
&
operator=
(
const
CbcCompareDepth
&rhs);
35
37
virtual
CbcCompareBase
*
clone
()
const
;
39
virtual
void
generateCpp
(FILE *fp);
40
41
// This returns true if the depth of node y is greater than depth of node x
42
virtual
bool
test
(CbcNode *x, CbcNode *y);
43
};
44
45
#endif
46
47
/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
48
*/
CbcCompareBase.hpp
CbcCompare.hpp
CbcNode.hpp
CbcCompareBase::CbcCompareBase
CbcCompareBase()
Definition
CbcCompareBase.hpp:29
CbcCompareDepth::operator=
CbcCompareDepth & operator=(const CbcCompareDepth &rhs)
CbcCompareDepth::generateCpp
virtual void generateCpp(FILE *fp)
Create C++ lines to get to current state.
CbcCompareDepth::~CbcCompareDepth
~CbcCompareDepth()
CbcCompareDepth::clone
virtual CbcCompareBase * clone() const
Clone.
CbcCompareDepth::CbcCompareDepth
CbcCompareDepth(const CbcCompareDepth &rhs)
CbcCompareDepth::test
virtual bool test(CbcNode *x, CbcNode *y)
This is test function.
CbcCompareDepth::CbcCompareDepth
CbcCompareDepth()
CbcModel
Simple Branch and bound class.
Definition
CbcModel.hpp:100
Generated by
1.17.0