Let ${\bf A}\in\mathbb{R}^{D\times D}$ and ${\bf b}\in [-1, 0, 1]^D$ be a binary vector. I am trying to solve:
$$\operatorname{sign}\left({\bf A}^\top {\bf x}\right) = {\bf b}.$$
What's the best approach to solving this problem? Any hints are appreciated.
As $\text{sgn}(b)=b$, the solution of
$$Ax=b$$ is automatically such that $$\text{sgn}(Ax)=b.$$