Originally posted by: davidoff
Well, I do not understand your question . Excel Spreadsheet are in 2D, aren't they ?
So I would understand your question if you 'd ask "how do I fill up a 3D OPL array from an excel collection of data" ?
Now, suppose you have a collection of multiple dimensions data in excel , let's take a 3 dimensional array with name,surname, and age
The best way to store it into OPL is through a set of tuple, each tuple storing one record of your collection.
then you may transform this tuple set into an array . Look at the transp project in the OPL samples . You will see nice transformations from a tuple set into an array
float Cost[Routes] = [ <t.p,<t.o,t.d>>:t.cost | t in TableRoutes ];
Hope this helps
David
#DecisionOptimization#OPLusingCPLEXOptimizer