Functions and Procedures
All of the functions and procedures of the mmxprs module are available to SLP users. In addition, the following functions and procedures are provided for use in SLP:
chgtolset Change values in an SLP tolerance set or create a new setchgvartolset Set or change the tolerance set for an SLP variableclearinitvals Clear initial value settings for all SLP variablescopysoltoinit Set the initial values of all SLP variables to their value in the current solutioncXSLPcommand Execute an SLP console command which returns a string resultFunc Include an SLP or user function in an expressiongetact Returns the value of a general constraint or of a general expressiongetcoeff Return the coefficient or constant term in a constraintgetconverged Return the convergence status of a variablegetcsol Return the activity or reduced cost of a variablegetdblattrib Get the value of an SLP double (real) attributegetdblcontrol Get the value of an SLP double (real) control parametergetdual Returns the dual solution value of a general constraintgethistory Return the history value of a variablegetintattrib Get the value of an SLP integer attributegetintcontrol Get the value of an SLP integer control parametergetname Return the name in the problem of the requested itemgetnlcoeff Return the current value of the nonlinear part of a constraintgetrsol Return the slack or dual solution value of a constraintgetslack Return the slack value of a general constraintgetsol Return the primal solution value of a constraint, or the calculated value of a general expressiongetstatus Return the status value of an mpvargetstepbound Return the current value of the step bound of an mpvargettolset Get the values for an SLP tolerance set.gettype Returns the type of a general constraintgetvarnum Return the index of an mpvar in the problemgetvartolset Get the tolerance set for an SLP variableinterp General-purpose linear interpolation functionishidden Test whether a general constraint is hiddeniXSLPcommand Execute an SLP console command which returns an integer resultrXSLPcommand Execute an SLP console command which returns a real resultsetdblcontrol Set the value of an SLP double (real) control parametersethidden Hide or unhide a general constraintsetinitval Provide an initial value for an SLP variablesetintcontrol Set the value of an SLP integer control parametersettype Set the type of a general constraintSLPcalluserfunc Call a user function directly from MoselSLPDATA Provide SLP-specific problem informationSLPexportprob Write the SLP problem to file in extended MPS or text formatSLPgetfuncinfo Obtain additional information for a user functionSLPgetindex Obtain the index of an SLP item from its nameSLPgetname Get the name of an SLP item corresponding to a given indexSLPglobal Call the Xpress-SLP mixed integer optimizer (MISLP)SLPloadprob Loads the nonlinear problem into the Xpress-SLP optimizerSLPlogfile Specify the name of a file to receive any output messages from the Xpress-SLP programSLPmaximize, SLPminimize Maximize or minimize the current SLP problemSLPprintmemory Print memory usage for Xpress-SLP and the mmxslp module.SLPscaling Call the Xpress-SLP scaling function to report on the range of values in the problemSLPsetcallback Set a Mosel function to be used as an SLP callbackSLPsetprobstat This function sets the problem status parameters after an optimizationSLPsetuserfuncaddress Set the address of an external user functionSLPsetuserfuncinfo Set the function information array before calling a user functionSLPtime Get a time reference valueSLPvalidate Validate an SLP solutiontolsetstatus Return the bitmap status of an SLP tolerance setXSLPcommand Execute an SLP console command and optionally return a valueXVitem Set the values for an xvitem object
If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.