| 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" |
| 14 |
namespace Bonmin |
| 15 |
{ |
| 16 |
|
| 17 |
class PseudoCosts: public OsiPseudoCosts |
| 18 |
{ |
| 19 |
public: |
| 20 |
/** Default constructor.*/ |
| 21 |
PseudoCosts(); |
| 22 |
|
| 23 |
/** Copy constructor.*/ |
| 24 |
PseudoCosts(const PseudoCosts & rhs); |
| 25 |
|
| 26 |
/** Assignment operator const version.*/ |
| 27 |
PseudoCosts & operator=(const PseudoCosts&rhs); |
| 28 |
#if 0 |
| 29 |
/** Acces upTotalChange.*/ |
| 30 |
inline double * upTotalChange() |
| 31 |
{ |
| 32 |
return upTotalChange_; |
| 33 |
} |
| 34 |
|
| 35 |
/** Acces downTotalChange.*/ |
| 36 |
inline double * downTotalChange() |
| 37 |
{ |
| 38 |
return downTotalChange_; |
| 39 |
} |
| 40 |
|
| 41 |
/** Acces upNumber.*/ |
| 42 |
inline int * upNumber() |
| 43 |
{ |
| 44 |
return upNumber_; |
| 45 |
} |
| 46 |
|
| 47 |
/** Acces downNumber.*/ |
| 48 |
inline int * downNumber() |
| 49 |
{ |
| 50 |
return downNumber_; |
| 51 |
} |
| 52 |
|
| 53 |
/** Acces upTotalChange.*/ |
| 54 |
inline const double * upTotalChange() const |
| 55 |
{ |
| 56 |
return upTotalChange_; |
| 57 |
} |
| 58 |
|
| 59 |
/** Acces downTotalChange.*/ |
| 60 |
inline const double * downTotalChange() const |
| 61 |
{ |
| 62 |
return downTotalChange_; |
| 63 |
} |
| 64 |
|
| 65 |
/** Acces upNumber.*/ |
| 66 |
inline const int * upNumber() const |
| 67 |
{ |
| 68 |
return upNumber_; |
| 69 |
} |
| 70 |
|
| 71 |
/** Acces downNumber.*/ |
| 72 |
inline const int * downNumber() const |
| 73 |
{ |
| 74 |
return downNumber_; |
| 75 |
} |
| 76 |
|
| 77 |
/** Access number objects.*/ |
| 78 |
inline int numberObjects() const |
| 79 |
{ |
| 80 |
return numberObjects_; |
| 81 |
} |
| 82 |
#endif |
| 83 |
/** Add a pseudo cost information.*/ |
| 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 |