Mosel integration
Xpress Application Developer (XAD) is an extension of the Xpress-Mosel modeling and programming language. Xpress Application Developer extends the functionality of Mosel with a set of functions and procedures for creating standard user interfaces. As a result, Mosel can be used as a modeling and programming language for complete optimization application development, from the mathematical representation of a problem to developing the user interface.
Xpress Application Developer can save significant amounts of time when experimenting with an optimization problem because the OR practitioner no longer needs to interface Mosel with VB, or C++, or Java in order to build a user application. Most features needed for GUI-based application development are now available through the powerful yet easy to use abstractions in the Mosel language.
For example, the following window, (which is a copy of the Optimize matrix dialog in IVE):
Figure 2.1: Optimize matrix dialog
was created exclusively in Mosel, using the following Mosel XAD code:
![]()
A few notes on using XAD with Mosel:
XAD code may be placed anywhere in a Mosel model, however, the user is encouraged to separate the code implementing the visual functionality from other modeling/programming statements, as needed.
In order to run a model which uses mmxad.dso, the library must be present in the dso folder of the Xpress-MP installation (or pointed to be the MOSEL_DOS environment variable) and properly licensed through the license file. Xpress-IVE is not needed—XAD is an independent library which only requires the Mosel runtime library.
If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.