Question about defining formula in the cvx

I don’t think your previous problem Problem in programming - #3 by dariush suddenly became convex (or concave) with these modifications. You will need something other than CVX to address this problem.