CPXXgetlongparam and CPXgetlongparam
The routine CPXXgetlongparam/CPXgetlongparam obtains the current
value of a CPLEX parameter of type CPXLONG.
int CPXXgetlongparam( CPXCENVptr env, int whichparam, CPXLONG * value_p )
int CPXgetlongparam( CPXCENVptr env, int whichparam, CPXLONG * value_p )
Description
The routine CPXXgetlongparam/CPXgetlongparam obtains the current
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 for which the value is to be obtained.
- value_p
- A pointer to an integer variable to hold the current value of the CPLEX parameter.
Return
The routine returns 0 (zero) if successful and nonzero if an error occurs.Example
status = CPXgetlongparam (env, CPXPARAM_Simplex_Limits_Iterations, &curitlim);
Note:
It is technically possible but not recommended
to call this routine for parameters
of type CPX_PARAMTYPE_INT.