addElement Method
Add an index to an index set. The index entry is only added to the set if no identical index already exists. Both in the case of a new set element and an existing one, the method returns the sequence number of the index in the index set. Note that the numbering of index elements starts with 0.
Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 4.8.14.0

Parameters
- text
-
Type:
SystemString
The name of the index to be added to the set.
Return Value
Type: Int32Integer sequence number of the index within the set, -1 in case of an error.

XPRBprob prob = new XPRBprob("NewProb"); XPRBindexSet idxset = new XPRBindexSet(); ... int seqNum; seqNum = idxset.addElement("NewSetElement");
