You’d have to introduce binary variables in order to handle the non-convexity. It might get rather messy.