Loading...
Searching...
No Matches
lprowbase.h
Go to the documentation of this file.
41 * Class LPRowBase provides constraints for linear programs in the form \f[ l \le a^Tx \le r, \f] where \em a is a
42 * DSVector. \em l is referred to as %left hand side, \em r as %right hand side and \em a as \em row \em vector or the
43 * constraint vector. \em l and \em r may also take values \f$\pm\f$ R(infinity). This static member is predefined, but
46 * LPRowBases allow to specify regular inequalities of the form \f[ a^Tx \sim \alpha, \f] where \f$\sim\f$ can take any
47 * value of \f$\le, =, \ge\f$, by setting rhs and lhs to the same value or setting one of them to \f$\infty\f$.
49 * Since constraints in the regular form occur often, LPRowBases offers methods type() and value() for retreiving
50 * \f$\sim\f$ and \f$\alpha\f$ of an LPRowBase in this form, respectively. Also, a constructor for LPRowBases given in
60 // ------------------------------------------------------------------------------------------------------------------
73 // ------------------------------------------------------------------------------------------------------------------
78 /** #LPRowBase%s may be of one of the following Types. This datatype may be used for constructing new #LPRowBase%s in the
87 };
91 // ------------------------------------------------------------------------------------------------------------------
132 LPRowBase(const R& p_lhs, const SVectorBase<R>& p_rowVector, const R& p_rhs, const R& p_obj = 0)
172 // ------------------------------------------------------------------------------------------------------------------
223 /** This method returns \f$\alpha\f$ for a LPRowBase in regular form. However, value() may only be called for
283 // ------------------------------------------------------------------------------------------------------------------
Collection of dense, sparse, and semi-sparse vectors. LPRowBase(int defDim=0) Constructs LPRowBase with a vector ready to hold defDim nonzeros. Definition lprowbase.h:96 LPRowBase(const R &p_lhs, const SVectorBase< R > &p_rowVector, const R &p_rhs, const R &p_obj=0) Constructs LPRowBase with the given left-hand side, right-hand side and rowVector. Definition lprowbase.h:132 R object objective coefficient of corresponding slack variable s = vec times primal Definition lprowbase.h:66 LPRowBase(const SVectorBase< R > &p_rowVector, Type p_type, const R &p_value, const R &p_obj=0) Constructs LPRowBase from passed rowVector, type and value. Definition lprowbase.h:139 void setRowVector(const DSVectorBase< R > &p_vec) access constraint row vector. Definition lprowbase.h:276 Exception class for things that should NEVER happen. Definition exceptions.h:119 Everything should be within this namespace. Debugging, floating point type and parameter definitions. #define SPX_MSG_ERROR(x) Prints out message x if the verbosity level is at least SPxOut::ERROR. Definition spxdefines.h:163
|