Last change
on this file since 1899 was
1899,
checked in by stefan, 6 years ago
|
fixup svn properties
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
1.5 KB
|
Line | |
---|
1 | // $Id: CbcObjectUpdateData.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/12/2009 carved from CbcBranchBase |
---|
7 | |
---|
8 | #ifndef CbcObjectUpdateData_H |
---|
9 | #define CbcObjectUpdateData_H |
---|
10 | |
---|
11 | #include "CbcObject.hpp" |
---|
12 | /* This stores data so an object can be updated |
---|
13 | */ |
---|
14 | class CbcObjectUpdateData { |
---|
15 | |
---|
16 | public: |
---|
17 | |
---|
18 | /// Default Constructor |
---|
19 | CbcObjectUpdateData (); |
---|
20 | |
---|
21 | /// Useful constructor |
---|
22 | CbcObjectUpdateData (CbcObject * object, |
---|
23 | int way, |
---|
24 | double change, |
---|
25 | int status, |
---|
26 | int intDecrease_, |
---|
27 | double branchingValue); |
---|
28 | |
---|
29 | /// Copy constructor |
---|
30 | CbcObjectUpdateData ( const CbcObjectUpdateData &); |
---|
31 | |
---|
32 | /// Assignment operator |
---|
33 | CbcObjectUpdateData & operator=( const CbcObjectUpdateData& rhs); |
---|
34 | |
---|
35 | /// Destructor |
---|
36 | virtual ~CbcObjectUpdateData (); |
---|
37 | |
---|
38 | |
---|
39 | public: |
---|
40 | /// data |
---|
41 | |
---|
42 | /// Object |
---|
43 | CbcObject * object_; |
---|
44 | /// Branch as defined by instance of CbcObject |
---|
45 | int way_; |
---|
46 | /// Object number |
---|
47 | int objectNumber_; |
---|
48 | /// Change in objective |
---|
49 | double change_; |
---|
50 | /// Status 0 Optimal, 1 infeasible, 2 unknown |
---|
51 | int status_; |
---|
52 | /// Decrease in number unsatisfied |
---|
53 | int intDecrease_; |
---|
54 | /// Branching value |
---|
55 | double branchingValue_; |
---|
56 | /// Objective value before branching |
---|
57 | double originalObjective_; |
---|
58 | /// Current cutoff |
---|
59 | double cutoff_; |
---|
60 | |
---|
61 | }; |
---|
62 | |
---|
63 | #endif |
---|
64 | |
---|
Note: See
TracBrowser
for help on using the repository browser.