Cbc  2.10.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CbcCompareEstimate.hpp
Go to the documentation of this file.
1 // $Id: CbcCompareEstimate.hpp 2465 2019-01-03 19:26:52Z unxusr $
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 CbcCompareEstimate_H
9 #define CbcCompareEstimate_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 
24 /* This is when rounding is being done
25 */
27 public:
28  // Default Constructor
31  // Copy constructor
33 
34  // Assignment operator
36 
38  virtual CbcCompareBase *clone() const;
40  virtual void generateCpp(FILE *fp);
41 
42  virtual bool test(CbcNode *x, CbcNode *y);
43 };
44 
45 #endif //CbcCompareEstimate_H
46 
47 /* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
48 */
virtual bool test(CbcNode *x, CbcNode *y)
This is test function.
virtual CbcCompareBase * clone() const
Clone.
Information required while the node is live.
Definition: CbcNode.hpp:49
virtual void generateCpp(FILE *fp)
Create C++ lines to get to current state.
CbcCompareEstimate & operator=(const CbcCompareEstimate &rhs)
Simple Branch and bound class.
Definition: CbcModel.hpp:100