XSLPloadcvars
XSLPloadcvars |
Purpose
Load character variables (CVs) into the SLP problem
Synopsis
int XPRS_CC XSLPloadcvars(XSLPprob Prob, int nSLPCVar, char *cValue);
Arguments
Prob
|
The current SLP problem.
|
nSLPCVar
|
Number of character variables to be loaded.
|
cValue
|
Character buffer holding the values of the character variables; each one must be terminated by a null character.
|
Example
The following example loads three character variables into 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"; XSLPloadcvars(Prob,3,cValue);
Further information
The XSLPload... functions load items into the SLP problem. Any existing items of the same type are deleted first. The corresponding XSLPadd... functions add or replace items leaving other items of the same type unchanged.
Related topics