Initializing help system before first use

XPRBdelarrvar

XPRBdelarrvar


Purpose
Delete a variable array.
Synopsis
int XPRBdelarrvar(XPRBarrvar av);
Argument
av 
BCL reference to an array in the model.
Return value
0 if function executed successfully, 1 otherwise.
Example
XPRBprob prob;
XPRBarrvar av2;
   ...
av2 = XPRBstartarrvar(prob, 5, "arr2");
XPRBendarrvar(av2);
XPRBdelarrvar(av2);
This deletes the array av2, although not any variables that may have been added to it.
Further information
This function deletes the reference to an array. Arrays may be used as auxiliary constructs for defining constraints. This means it may not be necessary to keep them. If an array is only used in the model, it can be deleted by a call to this function, thus freeing the corresponding memory allocated to it. The variables belonging to the array are not deleted by this function if the array has been created with XPRBstartarrvar.
Related topics