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

© 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.