Initializing help system before first use

XSLPsetparam

XSLPsetparam


Purpose
Set the value of a control parameter by name
Synopsis
int XPRS_CC XSLPsetparam(XSLPprob Prob, const char *Param, const char *cValue);
Arguments
Prob 
The current SLP problem.
Param 
Name of the control or attribute whose value is to be returned.
cValue 
Character buffer containing the value.
Example
The following example sets the value of XSLP_ALGORITHM:
XSLPprob Prob;
int Algorithm;
char Buffer[32];
Algorithm = 934;
sprintf(Buffer,"%d",Algorithm);
XSLPsetparam(Prob, "XSLP_ALGORITHM", Buffer);
Further information
This function can be used to set any Xpress NonLinear or Optimizer control. The value is always passed as a character string. It is the user's responsibility to create the character string in an appropriate format.
Related topics