Purpose
Execute an SLP console command and optionally return a value
Synopsis
procedure XSLPcommand(cmd1:string [,cmd2:real|string] [,cmd3:real|string])
function cXSLPcommand(cmd1:string [,cmd2:real|string] [,cmd3:real|string]) :string
function iXSLPcommand(cmd1:string [,cmd2:real|string] [,cmd3:real|string]) :integer
function rXSLPcommand(cmd1:string [,cmd2:real|string] [,cmd3:real|string]) :real
Arguments
cmd1
|
String containing the first part or all of the SLP console command
|
cmd2
|
Optional string or value to be appended to cmd1
|
cmd3
|
Optional string or value to be appended to cmd2
|
Return value
XSLPcommand does not return a value.
The other forms of the statement return the value of the command. A function will generally
return zero or an empty string if the return value of the command is of a different type
from that of the function.
Example
The following code fragment uses the SLP console commands to retrieve the
value of presolve and reverse its sense:
declarations
Presolve: integer
end-declarations
Presolve := iXSLPcommand("presolve")
writeln("Presolve was ",Presolve)
XSLPcommand("presolve = ",(1.0-Presolve))
Presolve := iXSLPcommand("presolve")
writeln("Presolve is now ",Presolve)
Further information
These statements use the mmxcmd module, which must be included
in a uses statement in the model.
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.