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.

xbdelvrjava.zip[download all files]

Source Files
By clicking on a file name, a preview is opened at the bottom of this page.
xbdelvr.java[download]
xbdlvriis.java[download]
xbdlvriis2iso.java[download]
xbdlvriis2rep.java[download]

Data Files





ifvan.dat

! Delivery Problem
! Data File: ifvan.dat
!
! Table IFVAN: Contains non-zero if route requires vans
!
!
! TO  London Livpol Doncst  York   Hull  Manchr Shffld   ! FROM
        1,     1,     0,     1,     0,     0,     0      ! London
        0,     1,     1,     0,     1,     1,     0      ! Luton
        0,     0,     0,     0,     0,     0,     0
        0,     0,     0,     0,     0,     0,     0
        0,     0,     0,     0,     0,     0,     0
        0,     0,     0,     0,     0,     0,     0                       
        0,     0,     0,     0,     0,     0,     0
        0,     0,     0,     0,     0,     0,     0
        0,     0,     0,     0,     0,     0,     0
        1,     1,     1,     1,     1,     0,     0      ! Scnthp

Back to examples browserPrevious exampleNext example