I'm currently using Gurobi in python and trying to add a constraint that the variable will not equal to 0 at the same time, say a != 0 or b != 0
, both a and b can be negative or positive. But I can't find a proper way to add this constraint. Does anyone have idea about this?
Edit: The problem I'm trying to solve is to find the proper plane that has the smallest distances in summation for a list of points. The equation I used is $\sum_{i=0}^n \frac{|Ax_{i} + By_{i} + Cz_{i} + D|}{\sqrt{A^2 + B^2 + C^2}}$ where $x_{i}, y_{i}, z_{i}$ refer to the point, A,B,C,D refer to the plane equation Ax + By + Cz + D = 0, and thus A,B,C cant be 0 at the same time.