Matlab, other indicators, proportional fair scheduling algorithm, resource allocation, throughput, f
4.1
30subchannels
%frame duration is 5ms
%11slots for dl scheduling
%suppose every user has 5 rtps, the pk size ~uniform(0.12k,0.24k)bytes.
%every pk wait max time ~uniform(3,5)frames. snr ~rayleigh.
t_c = 0.0002058; %one symbol duration
t_frame = 0.005; %frame duration
%time constant for PF
tc_pf = 1000;
system_time = 0; % concerned with deadline
pf_throughput = 0;
pf_throughput_user = zeros(user_num,1);
pf_pk_loss = zeros(user_num,1); %to record the number of pk lost by each user
pf_ave_delay = zeros(user_num,1); %average delay of PF
slot_remain_pf = 0;
utilization_pf = zeros(1,frame_num);
total_throughput_pf = zeros(1,frame_num);
pf_pk_loss_rate = zeros(1,frame_num);
%average throughput,updating every allocation time
lamda_pf = ones(user_num,1);
%initiate snr
%use snr to find accordi