Xpress Optimization

Mosel module examples

In addition to the standard installation of Mosel and Xpress Optimizer, the environment variable MOSEL_DSO must be set to this directory in order for Mosel to be able to locate the modules.



Definition of constants of different types: Defining integer, real, string, boolean constants
 
Definition of a procedure for getting solution values into an array: Implementing a subroutine
 
Definition of complex numbers and operators to work with them: Defining an external type with operators
 
Definition of type 'task' and subroutines for accessing it: Defining an external type with operators and access routines; defining module parameters and services
 
Definition of type 'date' and subroutines for accessing it: Defining an external type with operators and access routines; defining module parameters and services
 
Definition of three new types and operators to work with them: Defining external types with operators
 
Basic LP/MIP solver interface for Xpress Optimizer: Using the NI matrix handling functionality, extending a type, defining parameters and subroutines, defining a callback function
 
Basic QCQP solver interface for Xpress Optimizer: Using the mmnl matrix handling functionality, extending a type, defining parameters and subroutines, defining a callback function
 
Declaring a static module: Module embedded in a C program
 
Using the 'zlib' library to provide IO driver 'compress' functionality: Defining I/O drivers
 
Module implementing driver 'toC' to save the compilation result to a C file: Defining an I/O driver
 
How best to debug a module: Creating a static module
 

 

  Comments or suggestions about the examples? Please e-mail support@fico.com