All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
lprowsetbase.h
Go to the documentation of this file.
35 * Class LPRowSetBase implements a set of \ref LPRowBase "LPRowBase%s". Unless for memory limitations, any number of
36 * LPRowBase%s may be #add%ed to an LPRowSetBase. Single or multiple LPRowBase%s may be added to an LPRowSetBase, where
37 * each method add() comes with two different signatures. One with and one without a parameter, used for returning the
38 * Keys assigned to the new LPRowBase%s by the set. See DataKey for a more detailed description of the concept of
39 * keys. For the concept of renumbering LPRowBase%s within an LPRowSetBase after removal of some LPRows see DataSet.
50 // ------------------------------------------------------------------------------------------------------------------
62 // ------------------------------------------------------------------------------------------------------------------
76 // ------------------------------------------------------------------------------------------------------------------
194 /// Returns the objective coefficient of the LPRowBase with DataKey \p k in LPRowSetBase (writeable).
281 /** The \em value of a row depends on its type: if the inequality is of type "greater or equal", the value is the lhs
309 // ------------------------------------------------------------------------------------------------------------------
312 * Extension methods come with two signatures, one of them providing a parameter to return the assigned
313 * DataKey(s). See DataSet for a more detailed description. All extension methods will automatically rearrange or
331 /// Adds LPRowBase consisting of left hand side \p lhs, row vector \p rowVector, and right hand side \p rhs to LPRowSetBase.
338 /// Adds LPRowBase consisting of left hand side \p lhs, row vector \p rowVector, and right hand side \p rhs to LPRowSetBase.
340 void add(const S* lhsValue, const S* rowValues, const int* rowIndices, int rowSize, const S* rhsValue, const S* objValue = 0)
351 /// Adds LPRowBase consisting of left hand side \p lhs, row vector \p rowVector, and right hand side \p rhs to
354 void add(DataKey& newkey, const S* lhsValue, const S* rowValues, const int* rowIndices, int rowSize, const S* rhsValue, const S* objValue = 0)
378 /// Adds LPRowBase consisting of left hand side \p lhs, row vector \p rowVector, and right hand side \p rhs to
380 void add(DataKey& newkey, const R& newlhs, const SVectorBase<R>& newrowVector, const R& newrhs, const R& newobj = 0)
461 SVectorBase<R>& create(int pnonzeros = 0, const R& plhs = 0, const R& prhs = 1, const R& pobj = 0)
468 SVectorBase<R>& create(DataKey& newkey, int nonzeros = 0, const R& newlhs = 0, const R& newrhs = 1, const R& newobj = 0)
486 // ------------------------------------------------------------------------------------------------------------------
489 * See DataSet for a description of the renumbering of the remaining LPRowBase%s in a LPRowSetBase after the call of
575 // ------------------------------------------------------------------------------------------------------------------
578 * For a description of the memory management methods, see the documentation of SVSet, which has been used for
618 // ------------------------------------------------------------------------------------------------------------------
634 return left.isConsistent() && right.isConsistent() && object.isConsistent() && SVSetBase<R>::isConsistent();
642 // ------------------------------------------------------------------------------------------------------------------
647 /** The user can specify the initial maximum number of rows \p max and the initial maximum number of nonzero entries
|