CPXXsetdblparam and CPXsetdblparam

The routine CPXXsetdblparam/CPXsetdblparam sets the value of a CPLEX parameter of type double.

int  CPXXsetdblparam( CPXENVptr env, int whichparam, double newvalue )

int  CPXsetdblparam( CPXENVptr env, int whichparam, double newvalue )

Description

The routine CPXXsetdblparam/CPXsetdblparam sets the value of a CPLEX parameter of type double.

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 = CPXsetdblparam (env, CPXPARAM_TimeLimit, 1000.0);