It’s a weird thing to ask for a continuous variable to be not equal to a value. If x == 0 is optimal and you forbid it with a constraint, then 0.00000000000000001 is probably the next best value.
It is not possible in JuMP just because it’s not a thing one does in continuous optimization.
You’re not getting x==0 as a solution anyway.
Well, i’s possible that I am not thinking right. I know that the results are two points P1(sqrt(2/3); sqrt(1/3)) and P2(-sqrt(2/3); sqrt(1/3)). If I make x >= 0 I only have as a result P1 and if I do x <= 0 I have P2. If I don’t give any restriction to x I have a wrong result. So I thought That the solution could be x != 0.
You’ll have to set a negative starting point close to the solution. You’ll also have to provide a starting point for y that makes the solution feasible.
In general, mathematical optimization is the wrong tool to compute all solutions. Almost all solvers focus on providing an optimal solution, rather than all optimal solutions.