I currently have six variables $x_1, x_2, x_3, x_4, x_5, x_6$. I am trying to determine how large I can make the difference $x_6-x_1$ while satisfying the constraints:
$\sum_{j=1}^{6} x_j^2 \leq 1$
$\sum_{j=1}^{6} x_j = 0$
So far I have tried to use an optimization package in R but to no avail. Is there a way I can program this out or would it be too much to handle? Thanks!