Cannot perform the operation: {real affine} ./ {real affine} error on cvx matlab

The problem is that you are not following CVX’s rules.

That said, the objective function can be formulated using rel_entr so that CVX will accept it.

Use the fact that
alpha_k*log(1+y/alpha_k) = -rel_entr(alpha_k,alpha_k+y)
The correct y to use is easily determined, but I don’t feel like writing out that mess.

1 Like