Originally posted by: UDOPS
I am annoyed at the slicing behavior in OPL. Why does OPL allow slicing in the first line but not the next line?
{int} s1={1,2};
tuple blockformat {int block; int time;}
tuple cellformat {int cell; int member;} //not actually different than "blockformat", could have reused "blockformat"
{blockformat} Blocks={<1, 1>, <1, 2>, <1, 3>, <2, 1>, <2, 2>, <2, 3>, <3, 2>, <3, 4>};
{cellformat} CellPairs={<1,6>, <1,7>, <3,8>, <3,10>};
This one works:
{blockformat} Intersection={<i,t>|<i,t> in Blocks, <i,m> in CellPairs};
This one generates an error:
{blockformat} altsection={<i,t>|<i,t> in Blocks, i in s1};
#DecisionOptimization#OPLusingCPLEXOptimizer