Dear all,
One way to enter the harmonic mean is as follows:
function cvx_optval = harm_mean(x)
cvx_begin
variable z
maximize 2*z - sum(quad_over_lin(z, x))
cvx_end
Cheers,
Wouter
Dear all,
One way to enter the harmonic mean is as follows:
function cvx_optval = harm_mean(x)
cvx_begin
variable z
maximize 2*z - sum(quad_over_lin(z, x))
cvx_end
Cheers,
Wouter