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_TSP_tours.csv

9,8,4,6,2,3,10,5,1,7,9
9,1,5,8,10,4,7,2,6,3,9
4,3,1,10,9,8,5,7,2,6,4
8,2,5,7,3,10,1,9,6,4,8
4,6,9,8,2,5,7,3,10,1,4
8,4,1,9,6,5,10,7,3,2,8
1,7,9,3,10,5,6,4,8,2,1
6,4,5,7,8,10,2,1,3,9,6
10,2,7,5,1,8,4,3,6,9,10
4,6,5,10,8,1,9,3,7,2,4

Back to examples browser