How to express the function according to the legal form in CVX?

Even if it is convex, that does not mean it can necessarily be formulated in CVX.