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

© 2001-2019 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.