Originally posted by: mhoang
Hi all,
I want to read data of a 2-dimensional array named cover
ArcsCustomer: one dimension for arcs represented by two nodes, and other for customers. I coded in OPL IDE like following:
int NumNodes = ...;//number of nodes
range Nodes = 0..NumNodes;
int NumCus = ...;//number of customers
range Cus=1..Numcus;
tuple arc {
key int fromnode;
key int tonode;
fload cost;
}
{arc} Arcs with fromnode in Nodes, tonode in Nodes = ...;
int cover
Arcs, Cus=...;
But an error was noticed "Data tuple unexepected for int
ArcsCus.
I think this error is due to "multidimensional arrays are not supported in tuples". But i don't know how to solve this problem.
Thanks for your hepl.
Minh Hoang.
#ConstraintProgramming-General#DecisionOptimization