Originally posted by: sandeepsinghchauhan
range C = 1..5;
range D = 1..10;
float IN[C][D]= matrix having float values
{int} E[C][D] =
[[{1,2,3,4,5},{1,2,3,4,5,6,7,8,9,10}]];
tuple t
{
int c;
int d;
int e;
float k;
}
{t} s={<c,d,e,k> | c in C,d in D, e in E[c,d],k in IN[c,d]};
execute {
writeln(s);
}
ERROR
Cannot use the type float with "in".
please help
#DecisionOptimization#OPLusingCPLEXOptimizer