CPXXgetparamnum and CPXgetparamnum

The routine CPXXgetparamnum/CPXgetparamnum returns the reference number of a CPLEX parameter, given a character string containing the name for it.

int  CPXXgetparamnum( CPXCENVptr env, char const * name_str, int * whichparam_p )

int  CPXgetparamnum( CPXCENVptr env, char const * name_str, int * whichparam_p )

Description

The routine CPXXgetparamnum/CPXgetparamnum returns the reference number of a CPLEX parameter, given a character string containing the name for it.

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.
name_str
A character array containing the name of the target parameter.
whichparam_p
A pointer to an integer to receive the reference number.

Return

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

Example


status = CPXgetparamnum (env, "CPXPARAM_Advance", param_number);