source: trunk/Cbc/src/CbcObjectUpdateData.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: CbcObjectUpdateData.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/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 */
14class CbcObjectUpdateData {
15
16public:
17  /// Default Constructor
18  CbcObjectUpdateData();
19
20  /// Useful constructor
21  CbcObjectUpdateData(CbcObject *object,
22    int way,
23    double change,
24    int status,
25    int intDecrease_,
26    double branchingValue);
27
28  /// Copy constructor
29  CbcObjectUpdateData(const CbcObjectUpdateData &);
30
31  /// Assignment operator
32  CbcObjectUpdateData &operator=(const CbcObjectUpdateData &rhs);
33
34  /// Destructor
35  virtual ~CbcObjectUpdateData();
36
37public:
38  /// data
39
40  /// Object
41  CbcObject *object_;
42  /// Branch as defined by instance of CbcObject
43  int way_;
44  /// Object number
45  int objectNumber_;
46  /// Change in objective
47  double change_;
48  /// Status 0 Optimal, 1 infeasible, 2 unknown
49  int status_;
50  /// Decrease in number unsatisfied
51  int intDecrease_;
52  /// Branching value
53  double branchingValue_;
54  /// Objective value before branching
55  double originalObjective_;
56  /// Current cutoff
57  double cutoff_;
58};
59
60#endif
61
62/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
63*/
Note: See TracBrowser for help on using the repository browser.