Gray code is a systematic ordering of binary numbers in a way that each successive value differs from the previous one in ...
$$ \begin{array}{ll} \underset{x \in \mathbb{R}^n}{\min} \quad \frac{1}{2}\langle x,Qx \rangle + \langle c, x \rangle +\phi(x)\\ \text{s.t.} \quad \quad \quad \quad ...