Control parameters and constants
Control Parameters
Most of the Xpress-MP and Xpress-SLP control parameters can be used by name through the setparam procedure and the getparam function. Any real or integer parameter which cannot be accessed in this way (for example, it is a recent addition to the optimizer which has not yet been included in Mosel) can be set or changed using the get...control or set...control functions.
In addition to the optimizer parameters there are a few specific to SLP within Mosel as follows:
xslp_colorder Reorder matrix columns before loading the problem.xslp_loadnames Enable/disable loading of MPS names into the Optimizer.xslp_maxxvarraydimension Maximum number of dimensions for real arrays used as arguments to user functionsxslp_problem SLP problem pointerxslp_verbose Enable/disable message printing by SLPConstants
The following constants are defined:
Xpress-SLP callbacks:
For compatibility with previous versions, callback constants of the form XSLPxxxx are accepted as equivalent to xslp_xxxx.
- xslp_cascadeend
- at end of SLP variable cascading
- xslp_cascadestart
- at start of SLP variable cascading
- xslp_cascadevar
- after cascading of each SLP variable
- xslp_intsol
- in MISLP when an integer solution is found
- xslp_iterend
- at end of each SLP iteration
- xslp_iterstart
- at start of each SLP iteration
- xslp_itervar
- after testing for convergence of each SLP variable
- xslp_optnode
- in MISLP when an optimal solution is found
- xslp_prenode
- in MISLP before a node is optimized
- xslp_slpdestroy
- when an SLP problem is being destroyed
- xslp_slpend
- when SLP terminates
- xslp_slpmessage
- message printing
- xslp_slpnode
- in MISLP after a node has been solved
- xslp_slpstart
- when SLP optimization starts
Xpress-SLP SLPgetindex types:
- xslp_cvnames
- Character variable
- xslp_internalfuncnames
- Internal function (case sensitive)
- xslp_internalfuncnamesnocase
- Internal function (case insensitive)
- xslp_userfuncnames
- User function (case sensitive)
- xslp_userfuncnamesnocase
- User function (case insensitive)
- xslp_xvnames
- XV (extended variable array)
Xpress-SLP user function constants:
- xslp_funcinfosize
- Required size of function and argument information array
- xslpinfo_callerflag
- Caller flag
- xslpinfo_funcnum
- Index number of called function
- xslpinfo_instance
- Instance number of called function
- xslpinfo_ndelta
- Number of sets of partial derivatives required
- xslpinfo_ninput
- Number of input variables provided
- xslpinfo_ninstring
- Number of items in list of input variable names
- xslpinfo_noutput
- Number of output variables required
- xslpinfo_noutstring
- Number of items in list of output variable names
If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.