Question 4 (cont.)
Here we supplement the specification of Example B.0.2 in the Appendix.
**1. Description:** Given a circle with circumference $8$, place $3$ ticks at integer points around the circle such that all distances between inter-ticks along the circumference are distinct.
**2. Formulation:**
$$\\begin{align}
\\min_{x_1,x_2,x_3} &~~~~~0 \\notag \\\\
s.t.
~& y_{ij} = |x_i - x_j|, &&\\forall (i,j) \\in S,&&&(1)\\\\
~& d_{ij} = \\min \\{y_{ij},8-y_{ij}\\}, &&\\forall (i,j) \\in S,&&&(2)\\\\
~& d_{12} \\neq d_{13}, d_{12} \\neq d_{23}, d_{13} \\neq d_{23},&& &&&(3)
\\end{align}$$
where $S = \\{(1,2),(1,3),(2,3)\\}$, $x_1,x_2,x_3 \\in \\{1,2,3,4,5,6,7,8\\}$ denote the positions of each tick, $d_{ij}$ are distances between ticks $i$ and $j$ with auxiliary variables $y_{ij}$.
**3. Linearization of nonlinear constraints:**
The constraints in the above formulation are nonlinear, we linearize them by big-M methods.
- **Constraints (1):**
Equalities $(1)$ can be linearized by introducing auxiliary variables $a_{ij} \\in \\{0,1\\} , \\forall (i,j)\\in S$ as
$$
\\begin{align}
&y_{ij} \\geq x_i - x_j, &\\forall (i,j) \\in S,&&&(4)\\\\
&y_{ij} \\geq x_j - x_i, &\\forall (i,j) \\in S,&&&(5)\\\\
&y_{ij} \\leq x_i - x_j + 8\\cdot a_{ij}, &\\forall (i,j) \\in S,&&&(6)\\\\
&y_{ij} \\leq x_j - x_i + 8\\cdot(1-a_{ij}),&\\forall (i,j) \\in S,&&&(7)
\\end{align}
$$
where $a_{ij} = 0$ enforces $x_i-x_j\\geq0$, otherwise $x_i-x_j\\leq0$.
- **Constraints (2):**
Similarly, equalities $(2)$ are equivalent to
$$
\\begin{align}
&d_{ij} \\leq y_{ij}, &\\forall (i,j) \\in S,\\\\
&d_{ij} \\leq 8-y_{ij}, &\\forall (i,j) \\in S,\\\\
&d_{ij} \\geq y_{ij} - 8\\cdot m_{ij}, &\\forall (i,j) \\in S,\\\\
&d_{ij} \\geq 8-y_{ij} - 8\\cdot(1-m_{ij}), &\\forall (i,j) \\in S,
\\end{align}
$$
where $m_{ij}\\in\\{0,1\\}, \\forall (i,j) \\in S$ are auxiliary variables, with $m_{ij}=0$ when $y_{ij}\\leq 8-y_{ij}$.
- **Constraints (3):**
The "not equal to" constraints $(3)$ can be linearized by
$$
\\begin{align}
&d_{ij} \\geq d_{k\\ell}+1 - 8\\cdot t_{ijk\\ell}, &\\forall (i,j,k,\\ell) \\in K,\\\\
&d_{k\\ell} \\geq d_{ij}+1 - 8\\cdot(1- t_{ijk\\ell}), &\\forall (i,j,k,\\ell) \\in K,
\\end{align}
$$
where $K = \\{(1,2,1,3),(1,2,2,3),(1,3,2,3)\\}$. By introducing auxiliary variables $\\{t_{ijk\\ell}\\in \\{0,1\\}, \\forall (i,j,k,\\ell) \\in K\\}$, we have $d_{ij} \\geq d_{k\\ell} + 1$ if $t_{ijk\\ell}=1$, otherwise $d_{ij} \\leq d_{k\\ell}-1$, i.e., $d_{ij}\\neq d_{k\\ell}$.
**4. Symmetry group:**
Assume $\\{x\_1=\\bar{x}\_1,x\_2=\\bar{x}\_2,x\_3=\\bar{x}\_3\\}$ is a feasible solution of this problem and let $[\\cdot]_T$ denote the $mod-T$ operation, then it's easy to verify that $\\{x\_i=[\\bar{x}\_i+b]_8\\}\_{i=1}^3$ (rotation) and its reverse $\\{x_i=[(8-\\bar{x}_i)+b]_8\\}\_{i=1}^3, \\forall~ b\\in \\mathbb{Z}$ (reflection) are both equivalent feasible solutions. That is, rotation and reflection acting on the ticks do not change their corresponding distances (please refer to Figure 6 of the Appendix for visual illustration).
When representing $x_1,x_2,x_3$ by binary variables $z_{ip}\\in \\{0,1\\}, \\forall i\\in{1,2,3},\\forall p\\in\\{1,\\dots,8\\}$:
\\begin{align}
&x_i = \\sum_{p=1}^8 p \\cdot z_{ip}, & \\forall i \\in \\{1,2,3\\},\\\\
&\\sum_{p=1}^8 z_{ip} = 1, &\\forall i \\in \\{1,2,3\\},
\\end{align}
the modulo symmetry leads to a dihedral group $D_8$ along the $p$ dimension of $z_{ip}$. Specifically, let $Z$ be a feasible solution with its $(i,p)$-th entry as the value of $z_{ip}$, then any permutation $\\pi \\in D_8$ acting on the columns of $Z$ yields another equivalent solution $\\left[ Z_{:\\pi(1)},\\dots,Z_{:\\pi(8)} \\right]$.