FICO
FICO Xpress Optimization Examples Repository
FICO Optimization Community FICO Xpress Optimization Home
Back to examples browser

Python files for the Mosel-Python comparison blog

Description

Python files for the blog post comparing Mosel and Python: 4 Main Takeaways from Comparing Xpress Mosel and Python for Optimization Models.

Instructions for running these files:
  1. Extract the data files into the same directory as the Python files.
  2. To run a single file via the command line, call Python and pass the filename followed by the first 2 digits of the data file. For example: python SparseGrouping_std.py 00

pythonblog.zip[download all files]

Source Files

Data Files





00_H_SparseGrouping_C.csv

i,j,k,l,C
93,69,1,91,3309
1,41,86,49,4103
1,53,4,87,4680
93,20,42,68,3384
1,88,88,33,2268
53,34,36,29,3606
93,69,41,49,2742
38,47,84,79,142
93,20,29,0,1298
53,24,21,41,1063
53,34,98,83,1158
93,43,62,21,118
38,78,62,11,583
53,24,64,24,241
53,72,63,32,4074
38,78,62,4,988
53,72,63,55,1824
53,72,15,85,2213
93,69,6,27,1740
38,78,30,72,2286
38,38,84,66,2247
38,38,52,75,300
1,65,8,17,2934
1,53,35,78,2749
38,78,12,68,1176
38,9,20,40,2199
53,24,26,84,4089
38,38,67,20,1795
93,49,64,96,1830
1,65,8,73,4200
93,20,26,84,892
38,47,69,38,2026
1,88,88,5,322
38,38,67,56,2129
38,47,69,16,2074
93,69,1,22,451
93,49,51,42,947
93,49,8,52,3165
53,47,47,94,3200
1,41,0,44,4550
93,20,20,12,1625
53,72,27,5,2632
53,24,64,92,4187
53,34,22,48,1343
1,53,56,57,1290
53,47,47,93,3451
1,88,98,73,2944
1,65,58,37,4736
1,53,56,3,2213
1,53,56,33,3063
1,41,17,24,2394
93,49,51,50,3087
38,47,69,72,411
53,24,18,95,865
1,53,95,6,4248
1,88,85,80,2903
53,47,15,52,4373
1,41,0,26,1282
53,24,64,9,4149
1,53,4,51,571
38,9,20,43,3291
1,53,95,61,4379
53,47,15,74,1684
1,41,86,38,529
38,47,45,76,2276
53,72,15,71,1797
53,24,64,43,33
38,78,62,12,1132
93,20,29,11,419
93,69,41,10,3812
38,78,19,70,55
38,9,5,18,1978
93,20,20,77,2127
1,65,15,80,4020
1,88,98,46,2180
38,9,5,10,1516
93,43,1,25,1745
53,72,27,16,770
53,24,18,88,1893
1,65,15,95,583
38,78,62,36,3720
93,43,62,10,2688
38,47,86,5,3674
38,9,24,4,2967
1,41,17,77,626
38,78,19,67,667
1,41,44,10,3592
1,88,98,68,1252
1,65,82,72,4331
38,9,53,54,4843
93,69,1,98,1960
1,53,4,47,1417
93,43,62,19,838
38,9,24,65,1788
93,43,80,89,2174
53,72,63,66,3606
38,38,67,53,4665
1,41,0,34,1159
93,43,62,63,2451
93,20,26,18,1426
53,34,22,67,1106
53,72,94,19,1219
1,88,88,99,4799
93,69,7,61,3538
53,24,18,3,4807
53,72,15,23,4450
38,47,45,60,2269
53,34,98,13,641
38,78,19,64,3474
53,72,15,96,1432
1,41,86,40,4789
38,9,53,42,1141
53,47,55,71,2187
1,53,95,94,3711
53,34,36,90,4214
53,24,18,65,4459
1,65,58,16,3324
93,43,1,70,4318
53,47,15,94,4819
93,49,96,23,3343
1,65,8,95,4227
38,78,12,94,1599
38,47,84,72,427
1,41,44,80,1165
53,34,74,94,2447
53,47,20,22,3507
1,53,56,28,49
53,24,26,53,2094
93,20,42,19,2379
93,69,7,79,4424
38,47,69,48,240
93,43,1,46,4227
93,20,42,20,1159
1,88,7,47,3497
1,53,35,39,3097
93,43,80,15,2770
93,20,20,33,2668
1,65,82,67,4067
53,47,47,45,556
38,38,67,58,4581
1,41,44,14,1748
1,88,7,81,180
93,20,29,89,2391
93,49,8,66,2803
38,9,53,1,407
1,65,82,29,2595
1,53,4,39,3331
38,38,1,84,460
53,72,94,1,604
38,9,20,50,2591
1,88,85,13,4713
93,49,96,31,1834
1,41,17,50,1299
53,34,36,42,2319
93,69,1,1,1717
1,88,7,19,3002
93,49,51,22,1453
38,38,1,3,4606
38,78,19,26,4407
93,69,41,56,4618
53,24,21,3,3010
38,38,84,99,1898
38,38,84,75,1347
53,34,74,73,3992
38,78,12,20,4150
53,47,20,70,4488
53,47,55,80,3502
53,34,98,12,2822
1,88,7,90,4940
1,88,85,97,4611
38,9,5,39,4818
53,47,55,55,4588
93,49,51,73,3389
53,72,94,44,2463
38,9,20,5,604
38,38,52,68,2684
1,88,98,66,1430
38,47,84,14,2240
53,72,27,21,1180
53,34,36,5,2141
93,43,7,78,1916
1,41,44,3,2232
1,88,88,54,4643
53,34,22,29,2429
53,72,94,29,289
38,9,5,29,688
53,24,21,58,3521
93,69,7,97,902
93,69,6,86,4027
38,9,53,25,1866
93,43,80,84,1692
53,34,74,23,347
1,88,85,8,4991
93,43,7,41,2847
38,78,30,26,1954
53,47,15,67,892
93,43,7,53,2179
38,47,45,40,2600
38,9,24,19,3826
93,20,20,23,2144
53,47,20,78,4104
93,69,6,47,528
38,38,1,47,3389
53,72,63,75,3158
38,47,86,49,2893
38,78,12,45,2946
93,20,26,63,1642
38,38,52,97,2011
93,49,64,23,4749
38,47,45,2,4343
93,69,6,65,3333
93,49,96,47,1506
1,65,58,65,1071
1,65,8,25,2838
93,49,8,87,1655
1,65,15,79,3874
93,69,41,91,1883
53,34,74,87,1877
93,43,1,98,1871
38,38,1,49,3831
93,20,42,36,2672
1,41,86,92,901
53,24,26,20,4493
1,41,17,62,2154
1,41,0,23,4570
38,47,86,40,1626
53,24,21,43,1321
53,34,22,76,4332
53,47,20,23,3439
1,53,35,33,1350
38,78,30,33,2137
93,43,7,98,2282
1,65,82,42,3178
93,69,7,15,3318
53,47,47,11,3173
38,9,24,14,3515
93,49,64,53,3324
38,78,30,74,1817
38,47,86,56,4847
93,43,80,71,3541
93,20,26,0,4729
1,65,58,68,4586
53,72,27,38,4796
93,49,64,58,3249
93,49,96,3,524
53,47,55,33,3567
38,47,84,7,408
53,34,98,53,3225
93,20,29,66,714
93,49,8,31,4184
1,53,95,63,2805
1,53,35,57,2436
1,65,15,24,1031
53,24,26,0,2634
38,38,52,41,1973
38,38,84,19,2855

Back to examples browser