Originally posted by: SystemAdmin
Hi Nobert,
I faced the same issue, but with a data matrix.
I had
int f
a in Ab in B = ... ;
range C
a in Ab in B = 1..f[a][b];
float T
a in Ab in B[c in C[a]
b] = ... ;
But the programme have given me an error on both last lines.
So I change my structure for the one you suggested.
Maybe, in a case of data arrays, there is a better solution, but now, I have :
tuple TripleIndex{int a;int b;int c;}
{TripleIndex} Index = {<a,b,c> | a in A, b in B, c in 1..C[a][b]};
float T
Index = ... ;
But how do I write down data now that I have only one dimension ?
In other words, how do I say which a,b,c correspond to the floats in my array ?
Because the structure T = [ [
1 2 3 4] [
5 6 7 8] ] ; does not work, of course....
Thanks a lot
Adrien
#DecisionOptimization#OPLusingCPLEXOptimizer