How to write it in CVX acceptable/equivalent form?

In order to avoid confusion, it would help if you provided complete reproducible code, including input data and all constraints, so that we know the entirety of what you are doing.