Initializing help system before first use

XSLPaddcvars

XSLPaddcvars


Purpose
Add character variables (CVs) to the SLP problem
Synopsis
int XPRS_CC XSLPaddcvars(XSLPprob Prob, int nSLPCVar, char *cValue);
Arguments
Prob 
The current SLP problem.
nSLPCVar 
Number of character variables to be added.
cValue 
Character buffer holding the values of the character variables; each one must be terminated by a null character.
Example

The following example adds three character variables to the problem, which contain "The first string", "String 2" and "A third set of characters" respectively


char *cValue="The first string\0"
             "String 2\0"
             "A third set of characters";
XSLPaddcvars(Prob,3,cValue);
Further information

The XSLPadd... functions load additional items into the SLP problem. The corresponding XSLPload... functions delete any existing items first.


Related topics