Original post by user hakank (01/MAY/2015)
MiniZinc is by default 1-based. However, you can change the base as you want, but when you then might have to use the arrayNd constructs, e.g. "array1d", "array2d" when initializing arrays.
Here's how you'd define and initialize the "testarr", i.e. using "array1d":
[code:29r1ufa3]array[0..2] of int: testarr = array1d(0..2, [0,1,2]);[/code:29r1ufa3]
Does this make sense?