Without further knowledge about the type of variables, the size of n etc it’s hard to recommend anything. The constraints are nonlinear and while there are ways to linearize something like this (e.g. piecewise linear approximation) it’s hard to suggest something useful without more details.
-Michael