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

Auto-indexation for single-dimensional arrays

Description

This example shows how to read single-dimensional data tables from a spreadsheet or database file that only contains the data values. The data arrays must have an index set of type range that gets populated automatically based on the row count, either starting with the default value 1 or with a specified start value. Several arrays can be populated via a single statement.



Further explanation of this example: Xpress Whitepaper 'Using ODBC and other database interfaces with Mosel', Section Examples - Dense vs. sparse data format - Auto-indexation.


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

Data Files





adt.csv

10,40
20,50
30,60

Back to examples browserPrevious exampleNext example