Bonmin 1.8.9
Loading...
Searching...
No Matches
BonPseudoCosts.hpp
Go to the documentation of this file.
1// (C) Copyright International Business Machines Corporation 2007
2// All Rights Reserved.
3// This code is published under the Eclipse Public License.
4//
5// Authors :
6// Pierre Bonami, International Business Machines Corporation
7//
8// Date : 04/12/2007
9
10#ifndef BonPseudoCosts_H
11#define BonPseudoCosts_H
12
13#include "OsiChooseVariable.hpp"
14namespace Bonmin
15{
16
18 {
19 public:
22
25
28#if 0
30 inline double * upTotalChange()
31 {
32 return upTotalChange_;
33 }
34
36 inline double * downTotalChange()
37 {
38 return downTotalChange_;
39 }
40
42 inline int * upNumber()
43 {
44 return upNumber_;
45 }
46
48 inline int * downNumber()
49 {
50 return downNumber_;
51 }
52
54 inline const double * upTotalChange() const
55 {
56 return upTotalChange_;
57 }
58
60 inline const double * downTotalChange() const
61 {
62 return downTotalChange_;
63 }
64
66 inline const int * upNumber() const
67 {
68 return upNumber_;
69 }
70
72 inline const int * downNumber() const
73 {
74 return downNumber_;
75 }
76
78 inline int numberObjects() const
79 {
80 return numberObjects_;
81 }
82#endif
84 void addInfo(int way, double originalObj, double originalInfeas,
85 double newObj, double newInfeas, int status);
86
87 };
88
89}/* End Bonmin namespace.*/
90
91#endif
PseudoCosts & operator=(const PseudoCosts &rhs)
Assignment operator const version.
PseudoCosts()
Default constructor.
void addInfo(int way, double originalObj, double originalInfeas, double newObj, double newInfeas, int status)
Add a pseudo cost information.
PseudoCosts(const PseudoCosts &rhs)
Copy constructor.
int * downNumber()
double * upTotalChange_
double * upTotalChange()
int numberObjects() const
int * upNumber()
double * downTotalChange()
double * downTotalChange_
(C) Copyright International Business Machines Corporation 2007