Originally posted by: SystemAdmin
> I know that multidimensional Arrays are not allowed in Tuples. So my
> question is, if there is any other method or work-around for doing
> something I have described above?
How about changing the ACuts tuple structure to something like:
tuple ACuts{
//float a[Werke][Produkte];
int facility;
int products;
float a;
}
So, you will have one tuple entry for every element in your 2d array, consisting of the 1st index, 2nd index and the actual value. Thus if your variables look like:
BetaTuple = {<1>,<1.1>};
AlphaTuple = {<1,3,7>,<1,4,8>,<2,3,9>,<2,4,10>};
facility={1,2};
products={3,4};
a[facility][products]=[[7,8],[9,10]];
you should be able to add them like such:
subOpl.AlphaTuple.add(1,3,7);
subOpl.AlphaTuple.add(1,4,8);
subOpl.AlphaTuple.add(2,3,9);
subOpl.AlphaTuple.add(2,4,10);
Hope this helps.
#DecisionOptimization#OPLusingCPLEXOptimizer