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

ELS - Solving several model instances in parallel

Description
This implementation (program: runelsd.* starting submodel: elsd.mos) extends the parallel version of the ELS model to solving of submodels distributed to various computing nodes, showing the following features:
  • parallel remote execution of submodels
  • communication between different models (for bound updates on the objective function)
  • sending and receiving events
  • stopping submodels
Further explanation of this example: Xpress Whitepaper 'Multiple models and parallel solving with Mosel', Section 'Solving several model instances in parallel'.

runelsxprd.zip[download all files]

Source Files
By clicking on a file name, a preview is opened at the bottom of this page.
runelsd.c[download]
runelsd.java[download]
elsd.mos[download]
readelsdem.mos[download]

Data Files





els.dat

! Data file for `els.mos'

DEMAND:    [ 2 3 5 3 4 2 5 4 1 3 4 2 3 5 2
             3 1 2 3 5 3 1 2 3 3 4 5 1 4 1  
             3 5 2 1 2 1 3 3 5 2 2 1 3 2 3
             2 2 1 3 2 1 2 2 3 3 2 2 3 1 2]

SETUPCOST: [17 14 11 6 9 6 15 10 8 7 12 9 10 8 12]

PRODCOST:  [ 5 3 2 1 3 1 4 3 2 2 3 1 2 3 2 
             1 4 2 3 1 3 1 2 3 3 3 4 4 2 2  
             3 3 3 4 4 3 3 3 2 2 1 1 3 3 3 
             2 2 2 3 3 3 4 4 4 3 3 2 2 2 3]

CAP:       [12 12 12 12 12 12 12 12 12 12 12 12 12 12 12]

Back to examples browserPrevious exampleNext example