FICO
FICO Xpress Optimization Examples Repository
FICO Optimization Community FICO Xpress Optimization Home
Back to examples browserPrevious exampleNext example

Delivery - Data input from file; infeasibility analysis

Description
A simple supply and demand network example showing data input from file and the use of "views": incremental definition of arrays of variables. Also uses constraint templates with the arrays of variables.

A second version of this model (file xbdlvriis) has modified data making the problem infeasible. This example shows how to analyze infeasibility with the help of IIS (irreducible infeasible sets), it retrieves the IIS and prints out their contents.

It is possible to retrieve more detailed information on the IIS, such as isolation rows or bounds, using Xpress Optimizer functions (file xbdlvriis2iso) or to use the infeasibility repair functionality of the Optimizer (file xbdlvriis2rep) with models defined in BCL.


Source Files
By clicking on a file name, a preview is opened at the bottom of this page.
xbdelvr.cs[download]
xbdelvr.csproj[download]

Data Files





cost.dat

! Delivery Problem
! Data File: cost.dat
!
! Table COST: Unit transportation cost
!
!
! TO  London Livpol Doncst   York   Hull Manchr Shffld   ! FROM
        0.0,   6.3,   7.1,   9.4,   8.2,  10.2,   3.1    ! London
        3.4,   8.8,   6.1,   7.9,   3.2,   6.5,   8.1    ! Luton
       14.2,  13.5,  16.4,   7.4,   8.5,   5.6,   9.0    ! B'ham
       15.6,  22.4,  19.7,  16.5,  17.1,  18.2,   0.0    ! Bristl
       12.4,  18.6,  26.3,  31.2,  15.7,  21.4,  12.9    ! Derby
       37.3,  23.4,  18.6,  16.4,  13.2,  19.1,  31.0    ! Stckpt
       14.5,  19.7,  21.6,  18.3,  23.9,  28.4,  23.7    ! York
       19.6,   5.6,  12.9,  15.2,   0.0,  13.6,  15.4    ! Derby
       18.4,   9.3,  17.1,  22.5,  26.3,  28.5,  31.6    ! Soton
        9.4,  18.2,  15.6,  17.1,  33.9,   5.3,  17.0    ! Scnthp

Back to examples browserPrevious exampleNext example