source: trunk/Cbc/src/CbcObjectUpdateData.hpp @ 1422

Last change on this file since 1422 was 1357, checked in by coin, 10 years ago

run 'astyle -A4 -p' and dos2unix

File size: 1.3 KB
Line 
1// Edwin 11/12/2009 carved from CbcBranchBase
2#ifndef CbcObjectUpdateData_H
3#define CbcObjectUpdateData_H
4
5#include "CbcObject.hpp"
6/*  This stores data so an object can be updated
7 */
8class CbcObjectUpdateData {
9
10public:
11
12    /// Default Constructor
13    CbcObjectUpdateData ();
14
15    /// Useful constructor
16    CbcObjectUpdateData (CbcObject * object,
17                         int way,
18                         double change,
19                         int status,
20                         int intDecrease_,
21                         double branchingValue);
22
23    /// Copy constructor
24    CbcObjectUpdateData ( const CbcObjectUpdateData &);
25
26    /// Assignment operator
27    CbcObjectUpdateData & operator=( const CbcObjectUpdateData& rhs);
28
29    /// Destructor
30    virtual ~CbcObjectUpdateData ();
31
32
33public:
34    /// data
35
36    /// Object
37    CbcObject * object_;
38    /// Branch as defined by instance of CbcObject
39    int way_;
40    /// Object number
41    int objectNumber_;
42    /// Change in objective
43    double change_;
44    /// Status 0 Optimal, 1 infeasible, 2 unknown
45    int status_;
46    /// Decrease in number unsatisfied
47    int intDecrease_;
48    /// Branching value
49    double branchingValue_;
50    /// Objective value before branching
51    double originalObjective_;
52    /// Current cutoff
53    double cutoff_;
54
55};
56
57#endif
Note: See TracBrowser for help on using the repository browser.