Hi
/*********************************************
* OPL 12.6.1.0 Model
* Author: zhi_xie
* Creation Date: Oct 17, 2015 at 3:49:03 PM
*********************************************/
{int} s = asSet(1..5);
range r=1.. ftoi(pow(2,card(s))-1);
{int} s2 [k in r] = {i | i in s: ((k div (ftoi(pow(2,(ord(s,i))))) mod 2) == 1)};
execute
{
writeln(s2);
}
works fine on my machine.
By the way, could you try with CPLEX 12.7 ?
regards
#CPLEXOptimizers#DecisionOptimization