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' or char(0)), is CPX_STR_PARAM_MAX (defined in cpxconst.h) bytes. Setting newvalue_str to a string longer than this results in an error. Must not be NULL.

Return

The routine returns 0 (zero) if successful and nonzero if an error occurs.

Example


status = CPXsetstrparam (env, CPXPARAM_WorkDir, "mydir");