$$\sum_{j=3q-2}^{3q}\sum_{i=3p-2}^{3p}x_{ijk}=1, \forall k = 1 :n; p,q = 1:3$$
The above constraint wants to describe what condition in the Sudoku problem?
I think the constraint here is that the numbers $1$ to $9$ appear exactly once on each square $3 \times 3$, but I think there is a small mistake in the constraint.