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

Basic MIP tasks: binary variables; logic constraints

Description
We wish to choose among items of different value and weight those that result in the maximum total value for a given weight limit.

Further explanation of this example: 'Xpress Python Reference Manual'

burglar_python.zip[download all files]

Source Files
By clicking on a file name, a preview is opened at the bottom of this page.
burglar.py[download]
burglari.py[download]
burglarl.py[download]
burglar_rec.py[download]

Data Files





burglar_rec_dat.py

# Data file for `burglar_rec.py'

I = {"camera": [15, 2], "necklace": [100, 20], "vase": [90, 20],
     "picture": [60, 30], "tv": [40, 40], "video": [15, 30],
     "chest": [10, 60], "brick": [1, 10]}

Back to examples browserPrevious exampleNext example