Originally posted by: SystemAdmin
Hi Blais,
Try
item(OPDData.relOEs,ctn.esp)
but I think sets do not have to preserve order, keep that in mind.
There are sorted sets, like
sorted {rvOE} relOEs = ...;
but not sure how it works with tuples, I use sorted sets with ints.
Another approach is to replace the set with an array
int N = card(OPDData.relOEs);
rvOE_Array
http://i in 1..N = item(OPDData.relOEs, i);
Regards,
Zahar
#DecisionOptimization#OPLusingCPLEXOptimizer