Originally posted by: zy6631
I got a problem when using OPL, please help me.
how to define and access multidimensional array whose indexs are related,for example
range Jobs = 0..10;
range Oprs = 1..3;
int nbMchs
http://1..3 =
2, 3, 4;
range Mchs
j in Oprs = 0..nbMchs
j in Oprs;
dvar boolean x
i in Jobsj in Oprs[k in Mchs
j] ;
the third index k's range is a element in array Mchs[], I want its index Mchs[j] is equal to the second index j. how can i do it?
#DecisionOptimization#OPLusingCPLEXOptimizer