setintcontrol


Purpose
Set the value of an SLP integer control parameter
Synopsis
procedure setintcontrol(Type:string, Param:integer|string, Value:integer)
Arguments
Type 
A character string beginning with "L" for the linear problem or "M" for the MIP (integer) problem in MISLP
Param 
The number or name of the required parameter. The number is given in the header file for the corresponding Xpress module (for example, xprs.h or xslp.h). If the name is used, it must be preceded by "XSLP_" or "XPRS_" as appropriate (for example, "xslp_algorithm" or "xprs_lpiterlimit").
Value 
The value to which the parameter is to be set
Example
The following code fragment from a callback within a MISLP optimization sets the value of defaultalg in the MIP problem to 2:
setintcontrol("M",8023,2))
8023 is parameter xprs_defaultalg
Further information
The set...control functions are identical to setparam for the linear problem (Type="L"). During MISLP, MIP parameters must be set in the MIP problem (Type="M") because the linear problem is solving only subproblems and is not in MIP mode. Note that the required parameter can be specified as an integer or as a name. Specifying as an integer is generally more efficient. The value corresponding to a particular parameter can be found in the header file for the appropriate module (xprs.h or xslp.h). This function is also useful for setting parameters which have not been defined by name in the Mosel system.
Related topics
getdblcontrol


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.