Using the XSLP console-based interface
XSLP is a data-driven console-based interface for operating Xpress NonLinear, an extension of the Xpress Optimzier console.
The example will use screen-based input and output. You can also put the commands into a file and execute it in batch mode, or use the embedded TCL scripting language.
Commands are not case-sensitive except where the case is important (for example, the name of the objective function). We shall use upper case for commands and lower case for the arguments which would change for other models. Each parameter in a command must be separated by at least one space from the preceding parameter or command.
XSLP |
This starts the XSLP program. This checks for the existence of the Xpress Optimizer and Xpress NonLinear DLLs. If you are using an OEM version of the Xpress DLL, you may need a special password or license file from your usual supplier.
READPROB polygon |
This reads a non-linear problem from the file polygon.mat.
MAXIM |
This form of the maximize command does a non-linear optimization with the default settings of all the parameters (it will recognise the problem as an SLP one automatically).
WRITEPRTSOL |
This will use the normal Xpress function to write to solution in a text form to a file with the same name as the input, but with a ".prt" suffix.
Q |
This (the abbreviation for the QUIT command) terminates the XSLP console program.