Description
This routine sets the value of a CPLEX string parameter.Return Value
The routine returns a zero on success, and a nonzero if an error occurs.Synopsis
int CPXsetstrparam (CPXENVptr env,
int whichparam,
char *newvalue);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX routines.
int whichparamThe symbolic constant (or reference number) of the parameter to change.
char *newvalueThe new value of the parameter. The maximum length of
newvalue, including the NULL terminator, is CPX_STR_PARAM_MAX, defined in cplex.h. Setting newvalue to a string longer than this will result in an error.
status = CPXsetstrparam (env, CPX_PARAM_NODEFILEDIR, "mydir");