Last change
on this file since 2104 was
1902,
checked in by stefan, 7 years ago
|
sync with trunk rev 1901
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
1.3 KB
|
Line | |
---|
1 | // $Id: CbcCompareDepth.hpp 1902 2013-04-10 16:58:16Z forrest $ |
---|
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 | //############################################################################# |
---|
13 | /* These are alternative strategies for node traversal. |
---|
14 | They can take data etc for fine tuning |
---|
15 | |
---|
16 | At present the node list is stored as a heap and the "test" |
---|
17 | comparison function returns true if node y is better than node x. |
---|
18 | |
---|
19 | */ |
---|
20 | #include "CbcNode.hpp" |
---|
21 | #include "CbcCompareBase.hpp" |
---|
22 | #include "CbcCompare.hpp" |
---|
23 | class CbcModel; |
---|
24 | // This is default before first solution |
---|
25 | class CbcCompareDepth : public CbcCompareBase { |
---|
26 | public: |
---|
27 | // Default Constructor |
---|
28 | CbcCompareDepth () ; |
---|
29 | |
---|
30 | ~CbcCompareDepth(); |
---|
31 | // Copy constructor |
---|
32 | CbcCompareDepth ( const CbcCompareDepth &rhs); |
---|
33 | |
---|
34 | // Assignment operator |
---|
35 | CbcCompareDepth & operator=( const CbcCompareDepth& rhs); |
---|
36 | |
---|
37 | /// Clone |
---|
38 | virtual CbcCompareBase * clone() const; |
---|
39 | /// Create C++ lines to get to current state |
---|
40 | virtual void generateCpp( FILE * fp); |
---|
41 | |
---|
42 | // This returns true if the depth of node y is greater than depth of node x |
---|
43 | virtual bool test (CbcNode * x, CbcNode * y); |
---|
44 | }; |
---|
45 | |
---|
46 | #endif |
---|
47 | |
---|
Note: See
TracBrowser
for help on using the repository browser.