How to use cvx and how to write this line

Dear Mark ,

Could you help me how to write this line in cvx I am optimizing the rate relevant to the power allocation coefficient in RSMA . (ac,a1,a2 are the variables which I need to optimize )
gamma_c1 = (abs(H1)).^2 .* ac .* SNR ./ (1 + (a1 + a2) .* SNR .* (abs(H1)).^2);

That is a linear factional form, which can’t be entered directly in CVX. Hence gamma_c1 can’t be formed in CVX.

It might still be possible to enter your problem, depending on what the problem is.For instance, you can move the denominator over to the LHS.

Iif that does not suit your needs, you might find

to be relevant. But that depends on what your overall optimization problem is.