CPXXparamsetadddbl and CPXparamsetadddbl
The routine
CPXXparamsetadddbl/CPXparamsetadddbl
adds a parameter of type double to a parameter set.
int CPXXparamsetadddbl( CPXCENVptr env, CPXPARAMSETptr ps, int whichparam, double dvalue)
int CPXparamsetadddbl( CPXCENVptr env, CPXPARAMSETptr ps, int whichparam, double dvalue)
Description
The routine
CPXXparamsetadddbl/CPXparamsetadddbl
adds a parameter of type double parameter to a
parameter set. If the parameter does not yet exist in the
parameter set then it gets added with the specified value. If
the parameter is already in the parameter set then its current
value will be replaced by the specified value.
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. - ps
-
A pointer to the CPLEX parameter set as returned by
CPXXparamsetcreate/CPXparamsetcreate. - whichparam
- The symbolic constant (or reference number) of the parameter to add.
- newvalue
- The new value of the parameter.
Return
The routine returns 0 (zero) if successful and nonzero if an error occurs.Example
status = CPXparamsetadddbl (env, ps, CPXPARAM_TimeLimit, 1000.0);
See also Parameter sets and Examples for multiobjective optimization in the CPLEX User's Manual.