Trying to solve the following code but showing the error “Disciplined convex programming error:”
%% power, p1, p2, K, Ith x and y are known
cvx_begin gp
variable P(6)
solve= x *sum(log(1 + P*y));
maximize( solve )
subject to
sum(P)<= Power;
sum(P(1:3))<= p1;
sum(P(4:6))<= p2;
(sum(K*P))<= Ith;
cvx_end
where is the problem and what is the solve??
thanks in advance