FICO Xpress Optimization Examples Repository
 FICO Optimization Community FICO Xpress Optimization Home

Locate airport while minimizing average distance

Description
Locate N airports each within a specified distance of a city centre, and minimise the sum of square of the distances between all the airports.

Further explanation of this example: 'Mosel User Guide', Section 17.4.2 Xpress NonLinear

Source Files
By clicking on a file name, a preview is opened at the bottom of this page.

Data Files

airport.dat

! Data file for 'airport.mos'
R: [
( 1 ) 0.09
( 2 ) 0.3
( 3 ) 0.09
( 4 ) 0.45
( 5 ) 0.5
( 6 ) 0.04
( 7 ) 0.1
( 8 ) 0.02
( 9 ) 0.02
( 10 ) 0.07
( 11 ) 0.4
( 12 ) 0.045
( 13 ) 0.05
( 14 ) 0.056
( 15 ) 0.36
( 16 ) 0.08
( 17 ) 0.07
( 18 ) 0.36
( 19 ) 0.67
( 20 ) 0.38
( 21 ) 0.37
( 22 ) 0.05
( 23 ) 0.4
( 24 ) 0.66
( 25 ) 0.05
( 26 ) 0.07
( 27 ) 0.08
( 28 ) 0.3
( 29 ) 0.31
( 30 ) 0.49
( 31 ) 0.09
( 32 ) 0.46
( 33 ) 0.12
( 34 ) 0.07
( 35 ) 0.07
( 36 ) 0.09
( 37 ) 0.05
( 38 ) 0.13
( 39 ) 0.16
( 40 ) 0.46
( 41 ) 0.25
( 42 ) 0.1
]
CX: [
( 1 ) -6.3
( 2 ) -7.8
( 3 ) -9
( 4 ) -7.2
( 5 ) -5.7
( 6 ) -1.9
( 7 ) -3.5
( 8 ) -0.5
( 9 ) 1.4
( 10 ) 4
( 11 ) 2.1
( 12 ) 5.5
( 13 ) 5.7
( 14 ) 5.7
( 15 ) 3.8
( 16 ) 5.3
( 17 ) 4.7
( 18 ) 3.3
( 19 ) 0
( 20 ) -1
( 21 ) -0.4
( 22 ) 4.2
( 23 ) 3.2
( 24 ) 1.7
( 25 ) 3.3
( 26 ) 2
( 27 ) 0.7
( 28 ) 0.1
( 29 ) -0.1
( 30 ) -3.5
( 31 ) -4
( 32 ) -2.7
( 33 ) -0.5
( 34 ) -2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