Hi,
I’m trying to run CVX to solve this problem:
cvx_begin
variable Pa(20,10)
for kk=1:10
for ii=1:20
obj(ii,kk)=Matrix(ii,kk)*inv_pos((Matrix(ii,kk)*(Pa(ii,kk))^2+1));
end
end
minimize sum(sum(obj))
subject to
sum(sum(Pa))<=P_total;
cvx_end
but I have the following error:
Error using cvx/pow_cvx (line 144)
Disciplined convex programming error:
Illegal operation: pow_p( {convex}, {-1} )
Error in cvx/inv_pos (line 5)
y = pow_cvx( x, -1, ‘pow_p’ );
where Matrix is constant contains singualr values of different matrices.