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