MathConstraint-Easy / _raw /costas_array_n5__v3_h.xml
MathConstraint's picture
Upload folder using huggingface_hub
a9e7957 verified
<instance format="XCSP3" type="CSP">
<variables>
<array id="x" note="x[c] is the row of the mark in column c (a permutation of 0..n-1)." size="[5]"> 0..4 </array>
</variables>
<constraints>
<allDifferent> x[] </allDifferent>
<group>
<allDifferent> %... </allDifferent>
<args> sub(x[0],x[1]) sub(x[1],x[2]) sub(x[2],x[3]) sub(x[3],x[4]) </args>
<args> sub(x[0],x[2]) sub(x[1],x[3]) sub(x[2],x[4]) </args>
<args> sub(x[0],x[3]) sub(x[1],x[4]) </args>
</group>
</constraints>
</instance>