Turn non-convex constraint into a convex one

No guarantees this will work well, or at all, on your problem.