Hi everyone, In my model i have an IntVarArray X with size 3 = [X1, X2, X3]The domains must be :D(X1) = {1,2,3}D(X2) = {0,2,3}D(X3) = {0,3} For this, i do :X1 :X[1] = IntVar(*this, 1, 3); X2..X3 :for (int i = 2; i <= 3; i++){ X[i] = IntVar(*this, i, 3);} So for X2 and X3 i need to add the value 0, and i saw in mpg that only IntVarArgs can grow dynamically by adding value with "<<" operator, so is there any way to add a value in IntVarArray ? especially that the IntVarArray in my model can be large. Thanks
_______________________________________________ Gecode users mailing list users@gecode.org https://www.gecode.org/mailman/listinfo/gecode-users