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

Basic modeling tasks: data input, optimization, enumeration

Description
Simple exam scheduling problem (formulated with disequality constraints) showing basic modeling tasks:
  • data input from file - static arrays (i4exam_ka.mos)
  • data input from file - dynamic arrays (i4exam2*_ka.mos)
  • optimization (i4exam3_ka.mos)
  • definition of a branching strategy over decision variables of type cpvar (i4exam4_ka.mos)
Further explanation of this example: 'Xpress Kalis Mosel User Guide', Sections 2.2 Data input from file and 2.3 Optimization and enumeration


Source Files
By clicking on a file name, a preview is opened at the bottom of this page.
i4exam_ka.mos[download]
i4exam2_ka.mos[download]
i4exam3_ka.mos[download]
i4exam4_ka.mos[download]

Data Files





i4exam.dat

! Data file for `i4exam.mos'

INCOMP: [0 1 0 0 1 0 1 0 0 1 1
         1 0 0 0 1 0 1 0 0 1 1
         0 0 0 1 1 1 1 0 1 1 1
         0 0 1 0 1 1 1 0 0 1 1
         1 1 1 1 0 1 1 1 1 1 1
         0 0 1 1 1 0 1 0 1 1 1
         1 1 1 1 1 1 0 1 1 1 1
         0 0 0 0 1 0 1 0 0 1 1
         0 0 1 0 1 1 1 0 0 1 1
         1 1 1 1 1 1 1 1 1 0 1
         1 1 1 1 1 1 1 1 1 1 0]

Back to examples browserPrevious exampleNext example