Loading...
Searching...
No Matches
LPRowBase< R > Class Template Reference (In)equality for LPs. More...
Detailed Descriptiontemplate<class R> class soplex::LPRowBase< R > (In)equality for LPs. Class LPRowBase provides constraints for linear programs in the form \[ l \le a^Tx \le r, \] where a is a DSVector. l is referred to as left hand side, r as right hand side and a as row vector or the constraint vector. l and r may also take values \(\pm\) R(infinity). This static member is predefined, but may be overridden to meet the needs of the LP solver to be used. LPRowBases allow to specify regular inequalities of the form \[ a^Tx \sim \alpha, \] where \(\sim\) can take any value of \(\le, =, \ge\), by setting rhs and lhs to the same value or setting one of them to \(\infty\). Since constraints in the regular form occur often, LPRowBases offers methods type() and value() for retreiving \(\sim\) and \(\alpha\) of an LPRowBase in this form, respectively. Also, a constructor for LPRowBases given in regular form is provided. Definition at line 54 of file lprowbase.h. Member Enumeration Documentation◆ Type
template<class R >
(In)Equality type of an LP row. LPRowBases may be of one of the following Types. This datatype may be used for constructing new LPRowBases in the regular form.
Definition at line 81 of file lprowbase.h. Constructor & Destructor Documentation◆ LPRowBase() [1/5]
template<class R >
Constructs LPRowBase with a vector ready to hold Definition at line 96 of file lprowbase.h. References LPRowBase< R >::isConsistent(). ◆ LPRowBase() [2/5]Copy constructor. Definition at line 117 of file lprowbase.h. References LPRowBase< R >::isConsistent(). ◆ LPRowBase() [3/5]Copy constructor. Definition at line 125 of file lprowbase.h. References LPRowBase< R >::isConsistent(). ◆ LPRowBase() [4/5]
template<class R >
Constructs LPRowBase with the given left-hand side, right-hand side and rowVector. Definition at line 132 of file lprowbase.h. References LPRowBase< R >::isConsistent(). ◆ LPRowBase() [5/5]
template<class R >
Constructs LPRowBase from passed Definition at line 139 of file lprowbase.h. References LPRowBase< R >::EQUAL, LPRowBase< R >::GREATER_EQUAL, soplex::infinity, LPRowBase< R >::isConsistent(), LPRowBase< R >::left, LPRowBase< R >::LESS_EQUAL, and LPRowBase< R >::right. ◆ ~LPRowBase()
template<class R >
Destructor. Definition at line 167 of file lprowbase.h. Member Function Documentation◆ isConsistent()
template<class R >
Checks consistency. Definition at line 288 of file lprowbase.h. References LPRowBase< R >::vec. Referenced by LPRowBase< R >::LPRowBase(), LPRowBase< R >::LPRowBase(), LPRowBase< R >::LPRowBase(), LPRowBase< R >::LPRowBase(), LPRowBase< R >::LPRowBase(), and LPRowBase< R >::operator=(). ◆ lhs()
template<class R >
Left-hand side value. Definition at line 234 of file lprowbase.h. References LPRowBase< R >::left. Referenced by LPRowSetBase< R >::add(), SPxLPBase< R >::changeRow(), LPRowBase< R >::setType(), LPRowBase< R >::type(), and LPRowBase< R >::value(). ◆ obj()
template<class R >
Objective coefficient value. Definition at line 258 of file lprowbase.h. References LPRowBase< R >::object. Referenced by LPRowSetBase< R >::add(), and SPxLPBase< R >::changeRow(). ◆ operator=()Assignment operator. Definition at line 103 of file lprowbase.h. References LPRowBase< R >::isConsistent(), LPRowBase< R >::left, LPRowBase< R >::object, LPRowBase< R >::right, and LPRowBase< R >::vec. ◆ rhs()
template<class R >
Right-hand side value. Definition at line 246 of file lprowbase.h. References LPRowBase< R >::right. Referenced by LPRowSetBase< R >::add(), SPxLPBase< R >::changeRow(), LPRowBase< R >::setType(), LPRowBase< R >::type(), and LPRowBase< R >::value(). ◆ rowVector()
template<class R >
Constraint row vector. Definition at line 270 of file lprowbase.h. References LPRowBase< R >::vec. Referenced by LPRowSetBase< R >::add(), SPxLPBase< R >::changeRow(), and SoPlex_getRowVectorRational(). ◆ setLhs()
template<class R >
Sets left-hand side value. Definition at line 240 of file lprowbase.h. References LPRowBase< R >::left. Referenced by SPxLPBase< R >::getRow(). ◆ setObj()
template<class R >
Sets objective coefficient value. Definition at line 264 of file lprowbase.h. Referenced by SPxLPBase< R >::getRow(). ◆ setRhs()
template<class R >
Sets right-hand side value. Definition at line 252 of file lprowbase.h. References LPRowBase< R >::right. Referenced by SPxLPBase< R >::getRow(). ◆ setRowVector()
template<class R >
access constraint row vector. Definition at line 276 of file lprowbase.h. References LPRowBase< R >::vec. Referenced by SPxLPBase< R >::getRow(). ◆ setType()
template<class R >
Sets type of (in)equality. Definition at line 192 of file lprowbase.h. References LPRowBase< R >::EQUAL, LPRowBase< R >::GREATER_EQUAL, soplex::infinity, LPRowBase< R >::left, LPRowBase< R >::LESS_EQUAL, LPRowBase< R >::lhs(), LPRowBase< R >::RANGE, LPRowBase< R >::rhs(), LPRowBase< R >::right, and SPX_MSG_ERROR. ◆ type()
template<class R >
Gets type of row. Definition at line 177 of file lprowbase.h. References LPRowBase< R >::EQUAL, LPRowBase< R >::GREATER_EQUAL, soplex::infinity, LPRowBase< R >::LESS_EQUAL, LPRowBase< R >::lhs(), LPRowBase< R >::RANGE, and LPRowBase< R >::rhs(). Referenced by LPRowBase< R >::value(). ◆ value()
template<class R >
Right hand side value of (in)equality. This method returns \(\alpha\) for a LPRowBase in regular form. However, value() may only be called for LPRowBases with type() != Definition at line 226 of file lprowbase.h. References soplex::infinity, LPRowBase< R >::lhs(), LPRowBase< R >::RANGE, LPRowBase< R >::rhs(), and LPRowBase< R >::type(). Friends And Related Symbol Documentation◆ LPRowBaseDefinition at line 56 of file lprowbase.h. Member Data Documentation◆ left
template<class R >
left-hand side of the constraint Definition at line 64 of file lprowbase.h. Referenced by LPRowBase< R >::lhs(), LPRowBase< R >::LPRowBase(), LPRowBase< R >::operator=(), LPRowBase< R >::setLhs(), and LPRowBase< R >::setType(). ◆ object
template<class R >
objective coefficient of corresponding slack variable s = vec times primal Definition at line 66 of file lprowbase.h. Referenced by LPRowBase< R >::obj(), and LPRowBase< R >::operator=(). ◆ right
template<class R >
right-hand side of the constraint Definition at line 65 of file lprowbase.h. Referenced by LPRowBase< R >::LPRowBase(), LPRowBase< R >::operator=(), LPRowBase< R >::rhs(), LPRowBase< R >::setRhs(), and LPRowBase< R >::setType(). ◆ vec
template<class R >
the row vector Definition at line 67 of file lprowbase.h. Referenced by LPRowBase< R >::isConsistent(), LPRowBase< R >::operator=(), LPRowBase< R >::rowVector(), and LPRowBase< R >::setRowVector().
|