Previous Page: CPXsetnetcallbackfunc First PageNext Page: CPXsolution

CPXsetstrparam


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);

Arguments


CPXENVptr env
The pointer to the CPLEX environment as returned by one of the CPXopenCPLEX routines.

int whichparam
The symbolic constant (or reference number) of the parameter to change.

char *newvalue
The 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.

Example

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

Previous Page: CPXsetnetcallbackfunc First PageNext Page: CPXsolution