CPXXinfolongparam and CPXinfolongparam

The routine CPXXinfolongparam/CPXinfolongparam obtains the default, minimum, and maximum values of a CPLEX parameter of type CPXLONG.

int  CPXXinfolongparam( CPXCENVptr env, int whichparam, CPXLONG * defvalue_p, CPXLONG * minvalue_p, CPXLONG * maxvalue_p )

int  CPXinfolongparam( CPXCENVptr env, int whichparam, CPXLONG * defvalue_p, CPXLONG * minvalue_p, CPXLONG * maxvalue_p )

Description

The routine CPXXinfolongparam/CPXinfolongparam obtains the default, minimum, and maximum values 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.
defvalue_p
A pointer to an integer variable to hold the default value of the CPLEX parameter. May be NULL.
minvalue_p
A pointer to an integer variable to hold the minimum value of the CPLEX parameter. May be NULL.
maxvalue_p
A pointer to an integer variable to hold the maximum value of the CPLEX parameter. May be NULL.

Return

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

Example


status = CPXinfolongparam (env, CPXPARAM_Simplex_Limits_Iterations, 
                           &default_itlim,
		           &min_itlim, 
                           &max_itlim);
Note: It is technically possible but not recommended to call this routine for parameters of type CPX_PARAMTYPE_INT.