Loading...
Searching...
No Matches
lpcolsetbase.h
Go to the documentation of this file.
43 * Class LPColSetBase implements a set of \ref LPColBase "LPColBase%s". Unless for memory limitations, any number of LPColBase%s may be
44 * #add%ed to an LPColSetBase. Single or multiple LPColBase%s may be #add%ed to an LPColSetBase, where each method add() comes with
45 * two different signatures. One with and one without a parameter, used for returning the \ref DataKey "DataKeys"
46 * assigned to the new LPColBase%s by the set. See DataKey for a more detailed description of the concept of keys. For the
47 * concept of renumbering LPColBase%s within an LPColSetBase after removal of some LPColBase%s, see DataSet.
58 // ------------------------------------------------------------------------------------------------------------------
72 // ------------------------------------------------------------------------------------------------------------------
86 // ------------------------------------------------------------------------------------------------------------------
132 /// Returns objective value (w.r.t. maximization) of LPColBase with DataKey \p k in LPColSetBase.
254 // ------------------------------------------------------------------------------------------------------------------
257 * All extension methods come with two signatures, one of which providing a parameter to return the assigned
258 * DataKey(s). See DataSet for a more detailed description. All extension methods are designed to automatically
284 /// Adds LPColBase consisting of objective value \p obj, lower bound \p lower, column vector \p colVector and upper bound \p upper to LPColSetBase.
304 /// Adds LPColBase consisting of left hand side \p lhs, column vector \p colVector, and right hand side \p rhs to LPColSetBase.
313 /// Adds LPColBase consisting of left hand side \p lhs, column vector \p colVector, and right hand side \p rhs to
400 SVectorBase<R>& create(int pnonzeros = 0, const R& pobj = 1, const R& plw = 0, const R& pupp = 1,
407 /// Creates new LPColBase with specified arguments and returns a reference to its column vector.
408 SVectorBase<R>& create(DataKey& newkey, int nonzeros = 0, const R& obj = 1, const R& newlow = 0,
430 // ------------------------------------------------------------------------------------------------------------------
433 * See DataSet for a description of the renumbering of the remaining LPColBase%s in a LPColSetBase after the call of
489 /// 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.
525 // ------------------------------------------------------------------------------------------------------------------
567 // ------------------------------------------------------------------------------------------------------------------
593 // ------------------------------------------------------------------------------------------------------------------
598 /** The user can specify the initial maximum number of columns \p max and the initial maximum number of nonzero
599 * entries \p memmax. If these parameters are omitted, a default size is used. However, one can add an arbitrary
Collection of dense, sparse, and semi-sparse vectors. SVectorBase< R > & colVector_w(const DataKey &k) Returns writeable colVector of LPColBase with DataKey k in LPColSetBase. Definition lpcolsetbase.h:223 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:316 void add(DataKey &newkey, const R &obj, const R &newlower, const SVectorBase< R > &newcolVector, const R &newupper, const int &newscaleExp=0) Adds LPColBase consisting of objective value obj, lower bound lower, column vector colVector and uppe... Definition lpcolsetbase.h:285 LPColSetBase< R > & operator=(const LPColSetBase< R > &rs) Assignment operator. Definition lpcolsetbase.h:610 R & upper_w(const DataKey &k) Returns upper bound of LPColBase with DataKey k in LPColSetBase. Definition lpcolsetbase.h:205 SVectorBase< R > & create(DataKey &newkey, int nonzeros=0, const R &obj=1, const R &newlow=0, const R &newup=1, const int &newscaleExp=0) Creates new LPColBase with specified arguments and returns a reference to its column vector. Definition lpcolsetbase.h:408 VectorBase< R > & maxObj_w() Returns vector of objective values w.r.t. maximization. Definition lpcolsetbase.h:109 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:394 void add(DataKey keys[], const LPColSetBase< R > &newset) Adds all LPColBases of set to LPColSetBase. Definition lpcolsetbase.h:358 R & maxObj_w(const DataKey &k) Returns objective value (w.r.t. maximization) of LPColBase with DataKey k in LPColSetBase. Definition lpcolsetbase.h:133 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:306 DataKey key(int i) const Returns DataKey of i 'th LPColBase in LPColSetBase. Definition lpcolsetbase.h:235 void add2(const DataKey &k, int n, const int idx[], const R val[]) Definition lpcolsetbase.h:381 void add(DataKey &pkey, const LPColBase< R > &pcol) Adds p pcol to LPColSetBase. Definition lpcolsetbase.h:271 int number(const DataKey &k) const Returns number of LPColBase with DataKey k in LPColSetBase. Definition lpcolsetbase.h:241 int max() const Returns maximum number of LPColBases currently fitting into LPColSetBase. Definition lpcolsetbase.h:97 R & lower_w(int i) Returns lower bound of i 'th LPColBase in LPColSetBase. Definition lpcolsetbase.h:157 R & upper_w(int i) Returns upper bound of i 'th LPColBase in LPColSetBase. Definition lpcolsetbase.h:193 void remove(const int nums[], int n, int *perm) Removes LPColBases with numbers nums, where n is the length of the array nums, and stores the index p... Definition lpcolsetbase.h:490 int num() const Returns the number of LPColBases currently in LPColSetBase. Definition lpcolsetbase.h:91 SVectorBase< R > & create(int pnonzeros=0, const R &pobj=1, const R &plw=0, const R &pupp=1, const int &pscaleExp=0) Definition lpcolsetbase.h:400 bool has(const DataKey &k) const Does DataKey k belong to LPColSetBase ? Definition lpcolsetbase.h:247 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:387 void add(const R &pobj, const R &plower, const SVectorBase< R > &pcolVector, const R &pupper, const int &pscaleExp=0) Definition lpcolsetbase.h:277 R & lower_w(const DataKey &k) Returns lower bound of LPColBase with DataKey k in LPColSetBase. Definition lpcolsetbase.h:169 void reMax(int newmax=0) Reallocates memory to be able to store newmax LPColBases. Definition lpcolsetbase.h:532 R & maxObj_w(int i) Returns objective value (w.r.t. maximization) of i 'th LPColBase in LPColSetBase. Definition lpcolsetbase.h:121 void remove(const int nums[], int n) Removes LPColBases with numbers nums, where n is the length of the array nums. Definition lpcolsetbase.h:483 const SVectorBase< R > & colVector(const DataKey &k) const Returns colVector of LPColBase with DataKey k in LPColSetBase. Definition lpcolsetbase.h:229 void xtend(const DataKey &pkey, int pnewmax) Extends column with DataKey key to fit newmax nonzeros. Definition lpcolsetbase.h:375 LPColSetBase< R > & operator=(const LPColSetBase< S > &rs) Assignment operator. Definition lpcolsetbase.h:628 const SVectorBase< R > & colVector(int i) const Returns colVector of i 'th LPColBase in LPColSetBase. Definition lpcolsetbase.h:217 void remove(const DataKey &removekey) Removes the vector with key removekey from the set. Definition svsetbase.h:645 void xtend(SVectorBase< R > &svec, int newmax) Extends svec to fit newmax nonzeros. Definition svsetbase.h:523 void add2(SVectorBase< R > &svec, int idx, R val) Adds nonzero (idx, val) to svec of this SVSetBase. Definition svsetbase.h:605 SVectorBase< R > & operator[](int n) Gets SVectorBase by number, writeable. Definition svsetbase.h:768 SVSetBase< R > & operator=(const SVSetBase< R > &rhs) Assignment operator. Definition svsetbase.h:1030 bool has(const DataKey &k) const True iff SVSetBase contains a SVectorBase for DataKey k. Definition svsetbase.h:834 Entry identifier class for items of a DataSet. LP column. Everything should be within this namespace. Debugging, floating point type and parameter definitions.
|