int: K=5;
set of int: K_set=1..K;
array[K_set] of var int: N;
constraint ceil(log2(int2float(N[K]))+0.001)=4;
I thought int2float would coerce N[K] to a float, which log2 takes and returns a float, which I could add to the float 0.001 (yielding a float), which ceil takes and returns an int, which I could constrain to equal an int?
Andrew