How to write this formula into CVX matlab

image


Is this the right way to do it?
Thanks for any help in advance!

Presuming

A, V, tau are CVX variables, not expressions
g is input data
c1 and c2 are input data having the same sign
and all the dimensions are compatible (so no error messages)

it looks correct.

Prior to the for loop, you will have to declare P to be an expression array
expression P(N)