source: trunk/Cbc/src/CbcCompareObjective.hpp

Last change on this file was 2465, checked in by unxusr, 5 months ago

script to format sources

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1// $Id: CbcCompareObjective.hpp 2465 2019-01-03 19:26:52Z 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/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
23class CbcModel;
24
25class CbcCompareObjective : public CbcCompareBase {
26public:
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
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 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*/
Note: See TracBrowser for help on using the repository browser.