Osi 0.108.9
|
Row Cut Class which refers back to row which created it. More...
#include <OsiRowCut.hpp>
Public Member Functions | |
Which row | |
int | whichRow () const |
Get row. | |
void | setWhichRow (int row) |
Set row. | |
Constructors and destructors | |
OsiRowCut2 & | operator= (const OsiRowCut2 &rhs) |
Assignment operator. | |
OsiRowCut2 (const OsiRowCut2 &) | |
Copy constructor. | |
virtual OsiRowCut * | clone () const |
Clone. | |
OsiRowCut2 (int row=-1) | |
Default Constructor. | |
virtual | ~OsiRowCut2 () |
Destructor. | |
![]() | |
OsiRowCut_inline double | lb () const |
Get lower bound. | |
OsiRowCut_inline void | setLb (double lb) |
Set lower bound. | |
OsiRowCut_inline double | ub () const |
Get upper bound. | |
OsiRowCut_inline void | setUb (double ub) |
Set upper bound. | |
char | sense () const |
Get sense ('E', 'G', 'L', 'N', 'R') | |
double | rhs () const |
Get right-hand side. | |
double | range () const |
Get range (ub - lb for 'R' rows, 0 otherwise) | |
OsiRowCut_inline void | setRow (int size, const int *colIndices, const double *elements, bool testForDuplicateIndex=COIN_DEFAULT_VALUE_FOR_DUPLICATE) |
Set row elements. | |
OsiRowCut_inline void | setRow (const CoinPackedVector &v) |
Set row elements from a packed vector. | |
OsiRowCut_inline const CoinPackedVector & | row () const |
Get row elements. | |
OsiRowCut_inline CoinPackedVector & | mutableRow () |
Get row elements for changing. | |
OsiRowCut_inline bool | operator== (const OsiRowCut &rhs) const |
equal - true if lower bound, upper bound, row elements, and OsiCut are equal. | |
OsiRowCut_inline bool | operator!= (const OsiRowCut &rhs) const |
not equal | |
virtual bool | operator== (const OsiCut &rhs) const |
equal. 2 cuts are equal if there effectiveness are equal | |
virtual bool | operator!= (const OsiCut &rhs) const |
not equal | |
OsiRowCut_inline bool | consistent () const |
Returns true if the cut is consistent. | |
OsiRowCut_inline bool | consistent (const OsiSolverInterface &im) const |
Returns true if cut is consistent with respect to the solver interface's model. | |
OsiRowCut_inline bool | infeasible (const OsiSolverInterface &im) const |
Returns true if the row cut itself is infeasible and cannot be satisfied. | |
virtual double | violated (const double *solution) const |
Returns infeasibility of the cut with respect to solution passed in i.e. | |
void | operator+= (double value) |
add value to every vector entry | |
void | operator-= (double value) |
subtract value from every vector entry | |
void | operator*= (double value) |
multiply every vector entry by value | |
void | operator/= (double value) |
divide every vector entry by value | |
void | sortIncrIndex () |
Allow access row sorting function. | |
OsiRowCut & | operator= (const OsiRowCut &rhs) |
Assignment operator. | |
OsiRowCut (const OsiRowCut &) | |
Copy constructor. | |
OsiRowCut () | |
Default Constructor. | |
OsiRowCut (double cutlb, double cutub, int capacity, int size, int *&colIndices, double *&elements) | |
Ownership Constructor. | |
virtual | ~OsiRowCut () |
Destructor. | |
virtual void | print () const |
Print cuts in collection. | |
![]() | |
void | setEffectiveness (double e) |
Set effectiveness. | |
double | effectiveness () const |
Get effectiveness. | |
void | setGloballyValid (bool trueFalse) |
Set globallyValid (nonzero true) | |
void | setGloballyValid () |
void | setNotGloballyValid () |
bool | globallyValid () const |
Get globallyValid. | |
void | setGloballyValidAsInteger (int trueFalse) |
Set globallyValid as integer (nonzero true) | |
int | globallyValidAsInteger () const |
Get globallyValid. | |
virtual bool | operator< (const OsiCut &rhs) const |
less than. True if this.effectiveness < rhs.effectiveness | |
virtual bool | operator> (const OsiCut &rhs) const |
less than. True if this.effectiveness > rhs.effectiveness | |
Private Attributes | |
Private member data | |
int | whichRow_ |
Which row. | |
Additional Inherited Members | |
![]() | |
OsiCut () | |
Default Constructor. | |
OsiCut (const OsiCut &) | |
Copy constructor. | |
OsiCut & | operator= (const OsiCut &rhs) |
Assignment operator. | |
virtual | ~OsiCut () |
Destructor. | |
Row Cut Class which refers back to row which created it.
It may be useful to strengthen a row rather than add a cut. To do this we need to know which row is strengthened. This trivial extension to OsiRowCut does that.
Definition at line 300 of file OsiRowCut.hpp.
OsiRowCut2::OsiRowCut2 | ( | const OsiRowCut2 & | ) |
Copy constructor.
OsiRowCut2::OsiRowCut2 | ( | int | row = -1 | ) |
Default Constructor.
|
virtual |
Destructor.
|
inline |
Get row.
Definition at line 306 of file OsiRowCut.hpp.
|
inline |
Set row.
Definition at line 311 of file OsiRowCut.hpp.
OsiRowCut2 & OsiRowCut2::operator= | ( | const OsiRowCut2 & | rhs | ) |
Assignment operator.
|
private |
Which row.
Definition at line 339 of file OsiRowCut.hpp.