lpcolsetbase.h
Go to the documentation of this file.
34 * Class LPColSetBase implements a set of \ref LPColBase "LPColBase%s". Unless for memory limitations, any number of LPColBase%s may be 35 * #add%ed to an LPColSetBase. Single or multiple LPColBase%s may be #add%ed to an LPColSetBase, where each method add() comes with 36 * two different signatures. One with and one without a parameter, used for returning the \ref DataKey "DataKeys" 37 * assigned to the new LPColBase%s by the set. See DataKey for a more detailed description of the concept of keys. For the 38 * concept of renumbering LPColBase%s within an LPColSetBase after removal of some LPColBase%s, see DataSet. 49 // ------------------------------------------------------------------------------------------------------------------ 61 // ------------------------------------------------------------------------------------------------------------------ 75 // ------------------------------------------------------------------------------------------------------------------ 121 /// Returns objective value (w.r.t. maximization) of LPColBase with DataKey \p k in LPColSetBase. 243 // ------------------------------------------------------------------------------------------------------------------ 246 * All extension methods come with two signatures, one of which providing a parameter to return the assigned 247 * DataKey(s). See DataSet for a more detailed description. All extension methods are designed to automatically 272 /// Adds LPColBase consisting of objective value \p obj, lower bound \p lower, column vector \p colVector and upper bound \p upper to LPColSetBase. 273 void add(DataKey& newkey, const R& obj, const R& newlower, const SVectorBase<R>& newcolVector, const R& newupper) 289 /// Adds LPColBase consisting of left hand side \p lhs, column vector \p colVector, and right hand side \p rhs to LPColSetBase. 291 void add(const S* obj, const S* lowerValue, const S* colValues, const int* colIndices, int colSize, const S* upperValue) 297 /// Adds LPColBase consisting of left hand side \p lhs, column vector \p colVector, and right hand side \p rhs to 300 void add(DataKey& newkey, const S* objValue, const S* lowerValue, const S* colValues, const int* colIndices, int colSize, const S* upperValue) 381 SVectorBase<R>& create(int pnonzeros = 0, const R& pobj = 1, const R& plw = 0, const R& pupp = 1) 387 /// Creates new LPColBase with specified arguments and returns a reference to its column vector. 388 SVectorBase<R>& create(DataKey& newkey, int nonzeros = 0, const R& obj = 1, const R& newlow = 0, const R& newup = 1) 407 // ------------------------------------------------------------------------------------------------------------------ 410 * See DataSet for a description of the renumbering of the remaining LPColBase%s in a LPColSetBase after the call of 462 /// Removes LPColBase%s with numbers \p nums, where \p n is the length of the array \p nums, and stores the index permutation in array \p perm. 495 // ------------------------------------------------------------------------------------------------------------------ 536 // ------------------------------------------------------------------------------------------------------------------ 559 // ------------------------------------------------------------------------------------------------------------------ 564 /** The user can specify the initial maximum number of columns \p max and the initial maximum number of nonzero 565 * entries \p memmax. If these parameters are omitted, a default size is used. However, one can add an arbitrary
void add(const S *obj, const S *lowerValue, const S *colValues, const int *colIndices, int colSize, const S *upperValue) Adds LPColBase consisting of left hand side lhs, column vector colVector, and right hand side rhs to ... Definition: lpcolsetbase.h:291 R & upper_w(const DataKey &k) Returns upper bound of LPColBase with DataKey k in LPColSetBase. Definition: lpcolsetbase.h:194 void reDim(int newdim, const bool setZero=true) Resets DVectorBase's dimension to newdim. Definition: dvectorbase.h:249 R & maxObj_w(const DataKey &k) Returns objective value (w.r.t. maximization) of LPColBase with DataKey k in LPColSetBase. Definition: lpcolsetbase.h:122 void add(DataKey &newkey, const R &obj, const R &newlower, const SVectorBase< R > &newcolVector, const R &newupper) Adds LPColBase consisting of objective value obj, lower bound lower, column vector colVector and uppe... Definition: lpcolsetbase.h:273 int number(const DataKey &k) const Returns number of LPColBase with DataKey k in LPColSetBase. Definition: lpcolsetbase.h:230 const SVectorBase< R > & colVector() const Gets constraint column vector. Definition: lpcolbase.h:148 SVSetBase< R > & operator=(const SVSetBase< R > &rhs) Assignment operator. Definition: svsetbase.h:970 Entry identifier class for items of a DataSet. Dynamic dense vectors.Class DVectorBase is a derived class of VectorBase adding automatic memory mana... Definition: dvectorbase.h:48 Dense vector.Class VectorBase provides dense linear algebra vectors. It does not provide memory manag... Definition: dsvectorbase.h:28 SVectorBase< R > & colVector_w(const DataKey &k) Returns writeable colVector of LPColBase with DataKey k in LPColSetBase. Definition: lpcolsetbase.h:212 int num() const Returns the number of LPColBases currently in LPColSetBase. Definition: lpcolsetbase.h:80 bool has(const DataKey &k) const True iff SVSetBase contains a SVectorBase for DataKey k. Definition: svsetbase.h:782 SVectorBase< R > & create(int pnonzeros=0, const R &pobj=1, const R &plw=0, const R &pupp=1) Definition: lpcolsetbase.h:381 VectorBase< R > & maxObj_w() Returns vector of objective values w.r.t. maximization. Definition: lpcolsetbase.h:98 Entry identifier class for items of a DataSet.Every item in a DataSet is assigned a DataKey by which ... Definition: datakey.h:46 DataKey key(int i) const Returns DataKey of i 'th LPColBase in LPColSetBase. Definition: lpcolsetbase.h:224 void add2(int i, int n, const int idx[], const S val[]) Adds n nonzero (idx, val)-pairs to i 'th colVector. Definition: lpcolsetbase.h:375 void reSize(int newsize) Resets DVectorBase's memory size to newsize. Definition: dvectorbase.h:266 SVectorBase< R > & colVector_w(int i) Definition: lpcolsetbase.h:200 int max() const Returns maximum number of LPColBases currently fitting into LPColSetBase. Definition: lpcolsetbase.h:86 SVectorBase< R > & operator[](int n) Gets SVectorBase by number, writeable. Definition: svsetbase.h:716 R & maxObj_w(int i) Returns objective value (w.r.t. maximization) of i 'th LPColBase in LPColSetBase. ... Definition: lpcolsetbase.h:110 SVectorBase< R > & create(DataKey &newkey, int nonzeros=0, const R &obj=1, const R &newlow=0, const R &newup=1) Creates new LPColBase with specified arguments and returns a reference to its column vector... Definition: lpcolsetbase.h:388 void add(DataKey &pkey, const LPColBase< R > &pcol) Adds p pcol to LPColSetBase. Definition: lpcolsetbase.h:260 void add(DataKey &newkey, const S *objValue, const S *lowerValue, const S *colValues, const int *colIndices, int colSize, const S *upperValue) Adds LPColBase consisting of left hand side lhs, column vector colVector, and right hand side rhs to ... Definition: lpcolsetbase.h:300 LPColSetBase< R > & operator=(const LPColSetBase< R > &rs) Assignment operator. Definition: lpcolsetbase.h:576 Debugging, floating point type and parameter definitions. void add(DataKey keys[], const LPColSetBase< R > &newset) Adds all LPColBases of set to LPColSetBase. Definition: lpcolsetbase.h:339 Collection of dense, sparse, and semi-sparse vectors. Everything should be within this namespace. Set of LP columns.Class LPColSetBase implements a set of LPColBase%s. Unless for memory limitations... Definition: lpcolsetbase.h:43 R & lower_w(const DataKey &k) Returns lower bound of LPColBase with DataKey k in LPColSetBase. Definition: lpcolsetbase.h:158 LPColSetBase< R > & operator=(const LPColSetBase< S > &rs) Assignment operator. Definition: lpcolsetbase.h:593 void xtend(const DataKey &pkey, int pnewmax) Extends column with DataKey key to fit newmax nonzeros. Definition: lpcolsetbase.h:356 void add2(SVectorBase< R > &svec, int idx, R val) Adds nonzero (idx, val) to svec of this SVSetBase. Definition: svsetbase.h:553 void xtend(int n, int newmax) Extends column n to fit newmax nonzeros. Definition: lpcolsetbase.h:350 bool has(const DataKey &k) const Does DataKey k belong to LPColSetBase ? Definition: lpcolsetbase.h:236 LP column. R & lower_w(int i) Returns lower bound of i 'th LPColBase in LPColSetBase. Definition: lpcolsetbase.h:146 void xtend(SVectorBase< R > &svec, int newmax) Extends svec to fit newmax nonzeros. Definition: svsetbase.h:475 const SVectorBase< R > & colVector(const DataKey &k) const Returns colVector of LPColBase with DataKey k in LPColSetBase. Definition: lpcolsetbase.h:218 R & upper_w(int i) Returns upper bound of i 'th LPColBase in LPColSetBase. Definition: lpcolsetbase.h:182 void remove(const DataKey &removekey) Removes the vector with key removekey from the set. Definition: svsetbase.h:593 Sparse vectors.Class SVectorBase provides packed sparse vectors. Such are a sparse vectors... Definition: dvectorbase.h:31 void add2(int i, int n, const int idx[], const R val[]) Adds n nonzero (idx, val)-pairs to i 'th colVector. Definition: lpcolsetbase.h:368 void add2(const DataKey &k, int n, const int idx[], const R val[]) Definition: lpcolsetbase.h:362 void add(const R &pobj, const R &plower, const SVectorBase< R > &pcolVector, const R &pupper) Definition: lpcolsetbase.h:266 void reMax(int newmax=0) Reallocates memory to be able to store newmax LPColBases. Definition: lpcolsetbase.h:502 LP column.Class LPColBase provides a datatype for storing the column of an LP a the form similar to ... Definition: lpcolbase.h:45 Sparse vector set.Class SVSetBase provides a set of sparse vectors SVectorBase. All SVectorBases in a... Definition: ssvectorbase.h:33 const SVectorBase< R > & colVector(int i) const Returns colVector of i 'th LPColBase in LPColSetBase. Definition: lpcolsetbase.h:206 |