Remote applications without local Xpress installation
Managing Mosel model executions in a distributed architecture does not necessarily imply a need for a local Xpress installation on the machine controling the application: the Mosel remote invocation library (XPRD) makes it possible to build applications requiring the Xpress technology that run from environments where Xpress is not installed—including architectures for which Xpress is not available. XPRD is a self-contained library (i.e. with no dependency on the usual Xpress libraries) that provides the necessary routines to start Mosel instances either on the local machine or on remote hosts and control them in a similar way as if they were invoked through the Mosel libraries. Besides the standard instance and model handling operations, the XPRD library supports the file handling mechanisms of mmjobs as well as its event signaling system.
Several sets of examples implement the counterparts to the Mosel examples runfoliodistr.mos and runfoliopardistr.mos for the remote execution of the model file foliomemio.mos without local installation of Xpress: these C and Java files are located in the directory examples\mosel\WhitePapers\MoselPar\XPRD.
The example runfoliodistr.[c|java] executes a Mosel model remotely and retrieves the results via streams. Example versions distfolio.[c|java] and distfoliopar.[c|java] transfer data via files using Mosel's binary format. The file distfolio.[c|java] starts a single remote model run and distfoliopar.[c|java] shows how to perform several concurrent model executions each using a different (possibly remote) Mosel instance.
Even more advanced is the program version distfoliocbioev.[c|java] where result data is communicated during the optimization model run. The interaction of the Mosel model and the host application is coordinated via event messages that are exchanged between the two.
Further information
- Examples: Xpress whitepaper ``Multiple models and parallel solving with Mosel'' (Section `XPRD: Remote model execution without local installation').
- Documentation of the XPRD C library: ``XPRD: Mosel Remote Invocation Library Reference Manual''.
- Documentation of the XPRD Java library: ``XPRD: Mosel Remote Invocation Library JavaDoc''.
© 2001-2020 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.