I am trying to perform a division operation of a numerator (5x4 real affine expression) by a denominator (scalar real affine expression). One of the DCP rules is that an affine cannot be divided by another another. Hence, I have tried to convexify the expressions using logarithm. This produces a {convex} - {concave} expression that CVX is rejecting and flagging as error. Please is there another way I can make it acceptable to CVX. Here are my codes.

% Operation that I want to perform sinr = log(numer ./ denom)

% numer is a 5x4 real affine expression

%denom is a scalar real affine expression

sinr = 0;

for t = 1:size(numer,1)

for v = 1:size(numer,2)

sinr = sinr + log(numer(t,v)) + (-log(denom));

end

end

obj = B_RB .* sinr;

maximize(obj)

subject to

0<=pf<=(10^(23/10))/1000;

cvx_end