Reem
(Reem Gamal)
August 19, 2024, 10:46pm
1
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

You have violated CVX’s rules.
S_src appears to be a linear fractional form, so I think you ought to be able to handle this problem per section 4.3.2 “Linear-fractional programming” of “Convex Optimization” by Boyd and Vandenberghe https://web.stanford.edu/~boyd/cvxbook/ . You should probably also read the material earlier in that book on linear fractional functions.
to be relevant. But that depends on what your overall optimization problem is.