CPXXsetlongparam and CPXsetlongparam
The routine CPXXsetlongparam/CPXsetlongparam sets the value of a CPLEX
parameter of type CPXLONG.
int CPXXsetlongparam( CPXENVptr env, int whichparam, CPXLONG newvalue )
int CPXsetlongparam( CPXENVptr env, int whichparam, CPXLONG newvalue )
Description
The routine CPXXsetlongparam/CPXsetlongparam sets the value of a CPLEX
parameter of type CPXLONG.
The CPLEX Parameters Reference Manual provides a list of parameters with their types, options, and default values.
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
- The new value of the parameter.
Return
The routine returns 0 (zero) if successful and nonzero if an error occurs.Example
status = CPXsetlongparam (env, CPXPARAM_Simplex_Limits_Iterations, 1000000000000LL);
See also lpex1.c in the CPLEX User's Manual.
It is technically possible but not
recommended to call this routine for parameters
of type CPX_PARAMTYPE_INT.