Xpress Optimization

Mosel modeling examples

This directory contains a set of introductory examples that show how to write models using the Mosel language, including the formulation of simple LP, MIP, and QP problems, basic data handling tasks, and the use of various types of discrete variables.



Basic LP tasks: problem statement and solving; solution analysis: LP solving, solution printout, array and set data structures
 
Basic MIP tasks: binary variables; logic constraints: MIP solving, binary variables, index set types, logic constraints
 
Blend: A model for mineral blending: simple LP problem, formulation of blending constraints
 
Coco: The Coco productional planning problem: LP problem, formulation of resource constraints and material balance constraints, formatted solution printing
 
Firestns: A set-covering model for emergency service provision: logical conditions in constraint definition
 
LCSP: Labour constrained scheduling problem: Dynamic creation of variables, formulation of resource constraints
 
Basic set operations: Initializing sets, set operations, set comparison
 
Pplan: A project planning problem: Alternative formulation with SOS-1, formulation of resource use profiles
 
Purchase: A model for optimal purchasing with price-breaks: Modeling a piecewise linear function with SOS-2
 
Catenary: Determine chain shape: QCQP problem
 
Transportation problem with piecewise linear cost expressions: MIP problem
 
Approximating nonlinear univariate functions via piecewise linear constraints: MIP problem
 
MAXSAT solving via MIP: MAXSAT model
 

 

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