CPXXsetstrparam and CPXsetstrparam
The routine CPXXsetstrparam/CPXsetstrparam sets the value of a CPLEX
string parameter.
int CPXXsetstrparam( CPXENVptr env, int whichparam, char const * newvalue_str )
int CPXsetstrparam( CPXENVptr env, int whichparam, char const * newvalue_str )
Description
The routine CPXXsetstrparam/CPXsetstrparam sets the value of a CPLEX
string parameter.
Arguments
- env
-
A pointer to the CPLEX environment as returned by
CPXXopenCPLEX/CPXopenCPLEX. - whichparam
- The symbolic constant (or reference number) of the parameter to change.
- newvalue_str
-
The new value of the parameter. The maximum length of
newvalue_str, including the NULL terminator (the character'\0'orchar(0)), isCPX_STR_PARAM_MAX(defined incpxconst.h) bytes. Settingnewvalue_strto a string longer than this results in an error. Must not beNULL.
Return
The routine returns 0 (zero) if successful and nonzero if an error occurs.Example
status = CPXsetstrparam (env, CPXPARAM_WorkDir, "mydir");