We have an optimization problem $\max_x f(x)$.
We have a procedure that computes an approximate solution $x$.
The procedure assumes that $x$ is not constrained. In this case, $x \in [-1,1]$.
Therefore, we can run the procedure on the function $f(g(x))$, where $g$ is a transformation that takes any $x \in \mathbb{R}$ and maps it to $[-1,1]$.
Question: Which transformation is typically used? Are some better than others? I used a few transformations like $\sin$ and $\cos$, and they produced different outputs.