How can I express this concave function in CVX

very thank you sir
your guide and this link was usefull

and log is increasing function

i wrote this code then and solved

clear all;close all;clc
N = 10;
g = 1;
h = 1;
r = 1;
ObjValue = zeros(4,1);
for i = 1 : N
cvx_begin
    variable x nonnegative
    variable y nonnegative
    minimize inv_pos(h*y)+inv_pos(g*x)
    subject to
    x + y == Pt
cvx_end

    if ~exist('f', 'var') || isempty(f) 
        f = log2(1+1/cvx_optval);
    else
        f = [f,log2(1+1/cvx_optval)];
    end
end
ObjValue(r) = sum(f);