CPXXinfointparam and CPXinfointparam
The routine
CPXXinfointparam/CPXinfointparam
obtains the default, minimum, and maximum values of a CPLEX parameter of type
CPXINT.
int CPXXinfointparam( CPXCENVptr env, int whichparam, CPXINT * defvalue_p, CPXINT * minvalue_p, CPXINT * maxvalue_p )
int CPXinfointparam( CPXCENVptr env, int whichparam, CPXINT * defvalue_p, CPXINT * minvalue_p, CPXINT * maxvalue_p )
Description
The routine CPXXinfointparam/CPXinfointparam obtains the default,
minimum, and maximum values of a CPLEX parameter of type
CPXINT.
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 = CPXinfointparam (env,
CPXPARAM_Preprocessing_Presolve,
&default_preind,
&min_preind,
&max_preind);
The argument whichparam denotes a parameter of type
CPX_PARAMTYPE_INT.
For compatibility with previous versions of the product,
this routine also accepts parameters of type
CPX_PARAMTYPE_LONG. If the value returned in
the argument defvalue_p,
minvalue_p, or maxvalue_p
for the parameter denoted by whichparam is of
type CPX_PARAMTYPE_LONG and fits into a value of type
CPXINT without truncation, then this routine succeeds.
Otherwise, if any value returned in those informational arguments is
larger than INT_MAX or smaller than INT_MIN,
CPLEX replaces that value by INT_MAX or INT_MIN.