NO FRAMES

CPXsetstrparam

int CPXPUBLIC CPXsetstrparam(CPXENVptr env, int whichparam, const char * newvalue_str)
Definition file: cplex.h
Include files: cplex.h

The routine CPXsetstrparam sets the value of a CPLEX string parameter.

Example

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

Parameters:

env

A pointer to the CPLEX environment as returned by 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 cplex.h. Setting newvalue_str to a string longer than this results in an error.

Returns:

The routine returns zero on success and nonzero if an error occurs.