Cbc
2.9.9
src
CbcCompareObjective.hpp
Go to the documentation of this file.
1
// $Id: CbcCompareObjective.hpp 1899 2013-04-09 18:12:08Z stefan $
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
//#############################################################################
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
24
class
CbcModel
;
25
26
class
CbcCompareObjective
:
public
CbcCompareBase
{
27
public
:
28
// Default Constructor
29
CbcCompareObjective
();
30
31
virtual
~CbcCompareObjective
();
32
// Copy constructor
33
CbcCompareObjective
(
const
CbcCompareObjective
&rhs);
34
35
// Assignment operator
36
CbcCompareObjective
&
operator=
(
const
CbcCompareObjective
& rhs);
37
39
virtual
CbcCompareBase
*
clone
()
const
;
41
virtual
void
generateCpp
( FILE * fp);
42
43
/* This returns true if objective value of node y is less than
44
objective value of node x */
45
virtual
bool
test
(
CbcNode
* x,
CbcNode
* y);
46
};
47
48
#endif //CbcCompareObjective_H
49
CbcCompareObjective::clone
virtual CbcCompareBase * clone() const
Clone.
CbcCompareObjective::CbcCompareObjective
CbcCompareObjective()
CbcCompareObjective::~CbcCompareObjective
virtual ~CbcCompareObjective()
CbcCompareObjective
Definition:
CbcCompareObjective.hpp:26
CbcModel
Simple Branch and bound class.
Definition:
CbcModel.hpp:101
CbcCompareObjective::CbcCompareObjective
CbcCompareObjective(const CbcCompareObjective &rhs)
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:27
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.20