Initializing help system before first use

XPRBstartarrvar

XPRBstartarrvar


Purpose
Start the definition of a variable array.
Synopsis
XPRBarrvar XPRBstartarrvar(XPRBprob prob, int nbvar, const char *name);
Arguments
prob 
Reference to a problem.
nbvar 
The maximum number of variables in the array.
name 
Name of the array. May be NULL if not required.
Return value
Reference to the new array if function executed successfully, NULL otherwise.
Example
XPRBprob prob;
XPRBarrvar av2;
   ...
av2 = XPRBstartarrvar(prob, 5, "arr2");
This starts the definition of an array with five elements, named arr2.
Further information
This function starts the definition of a variable array. It returns a reference to an array of variables that may be used, for instance, in the definition of constraints. Variables belonging to an array created by this function may stem from any LP-variables previously defined. They may be of different types, and can be positioned in any order. A variable may belong to several arrays, but it is created only once (functions XPRBnewvar or XPRBnewarrvar). If the indicated name is already in use, BCL adds an index to it. If no array name is given, BCL generates a default name starting with AV.
Related topics