Originally posted by: Olivier Binckly
workmem is a parameter of type double
C Name CPX_PARAM_WORKMEM (double)
did you try to use the following method?
CPXsetdblparam
int CPXsetdblparam(CPXENVptr env, int whichparam, double newvalue)
Definition file: cplex.h
The routine 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.
Example
status = CPXsetdblparam (env, CPX_PARAM_TILIM, 1000.0);
Parameters:
env A pointer to the CPLEX environment as returned by CPXopenCPLEX.
whichparam The symbolic constant (or reference number) of the parameter to change.
newvalue The new value of the parameter.
Returns:
The routine returns zero if successful and nonzero if an error occurs.
#DecisionOptimization#OPLusingCPLEXOptimizer