Hello,
I am trying to solve the following problem.
cvx_begin
variables E p(NoD) r o bta(NoD) alfa(NoD) gama(NoD) ;
maximize( E )
subject to
E>= ((2*ri/oi)*r) - (((ri/oi)^2)*o)
o >= sum (con1+p)
(r^2) <= sum(bta)
for ind=1:NoD
alfa(ind) <= 2^(bta(ind)/con2)
end
gama >= con4 + p*Gm
for ind=1:NoD
1 - alfa(ind) <= ((2*G(ind)/gama_i(ind))*p(ind)) - (((G(ind)*poi(ind)/gama_i(ind))^2)*gama(ind))
end
for ind=1:NoD
p(ind)*G(ind) >= con3(ind) * gama(ind)
end
p <= con5
cvx_end
The main issue is the inequality constraints “alfa(ind) <= 2^(bta(ind)/con2)” since alfa and bta are variables.
I get the following error:
Error using cvxprob/newcnstr
Disciplined convex programming error:
Invalid constraint: {real affine} <= {log-affine}
Error in <= (line 21)
b = newcnstr( evalin( 'caller', 'cvx_problem', '[]' ), x, y, '<=' );
Error in SA (line 43)
alfa(ind) <= 2^(bta(ind)/con2)
Is there a solution/workaround for this error?