From TomWiki

Jump to: navigation, search

TOMLAB /Xpress includes an embedded license for XpressM P and the TOMLAB interfaces developed as part of the package.

The interface between XpressM P, Matlab and TOMLAB has been designed at two layers. The first layer gives direct access from Matlab to XpressM P, via calling one Matlab function that calls a pre-compiled DLL (or lib in Unix) that defines and runs the problem in XpressM P. The second layer is a Matlab function that takes the input in the TOMLAB format, and calls the first layer function. On return the function creates the output in the TOMLAB format.

XpressM P has a whole set of callback routines. There is one predefined Matlab routine for each callback. The user is in control of which ones to use, and should add his own code in Matlab for each callback. As default only the User Output Callback is called, that prints Error and Warning messages.


Contents of this Manual

Read carefully Installation of TOMLAB /Xpress on how to install the interface. Using the Matlab Interface gives the basic information needed to run the Matlab interface. The more advanced feature, using callbacks, is described in Callbacks in Matlab. Some Matlab test routines are included, described in Test Routines in Non-Tomlab Format and Test Routines in Tomlab Format. All Matlab routines are described in Appendix A.


In this manual we assume that the user is familiar with XpressMP TOMLAB and the Matlab language.

Installation of TOMLAB /Xpress

Using the Matlab Interface

Callbacks in Matlab

Test Routines in Non-Tomlab Format

Test Routines in Tomlab Format

xpControl - Control Parameters

xpProblemAttrib - Problem Attributes

Return Codes

Appendix A - The Matlab Interface Routines - Main Routines

Appendix B - The Matlab Interface Routines - Utility Routines

Appendix C - The Matlab Interface Routines - Test Routines

Appendix D - The Matlab Interface Routines - Callback Routines

Appendix E - IIS and SA

Retrieved from "http://tomwiki.com/Xpress"
Personal tools