1.软件版本
MATLAB2021a
2.本算法理论知识
本系统仿真场景如下:
C-CUBP
主要涉及到的公式有:
15:
18:
6:
11/9:
C-DUBP
主要涉及到的公式有:
18:
6:
11/9:
上述原理主要总结自参考文献:
[1] Huang B , Li J , Svensson T . A Utility-Based Joint Resource Allocation Approach for Multi-Service in CoMP Networks[J]. Wireless Personal Communications, 2013, 72(3):1633-1648.
3.部分源码
clc;
clear;
close all;
warning off;
addpath 'func\'
Simulation_time = 100;
Max_people = 15;
Step_people = 3;
Min_people = 3;
Sum_Utility = 0;
ALL_throughput = 0;
Drop_ratio = 0;
Outage_ratio = 0;
p = 0;
for i = Min_people:Step_people:Max_people
p = p + 1;
ALL_throughput = 0;
ALL_Power_comp = 0;
%利用蒙特卡罗的思想,对一个情况进行多次计算,结果用平均值表示
for k = 1:Simulation_time
k
T_user = func_COMP_VIOP_traffic(i);
%进行调度
[SU,T_CPF_Scheduler,dr,or] = func_CPF_Scheduler(T_user,i);
%Cell-edge sum utility
Sum_Utility = Sum_Utility + sum(SU);
%BE average throughput
ALL_throughput = ALL_throughput + sum(T_CPF_Scheduler);
%VoIP packet drop ratio
Drop_ratio = dr;
%VoIP call outage ratio
Outage_ratio = or;
end
Sum_Utility2(p) = Sum_Utility/Simulation_time;
ALL_throughput2(p) = ALL_throughput/Simulation_time;
Drop_ratio2(p) = Drop_ratio/Simulation_time;
Outage_ratio2(p) = Outage_ratio/Simulation_time;
end
%==========================================================================
figure;
MM = Min_people:Step_people:Max_people;
plot(MM,Sum_Utility2,'m--^','LineWidth',2);title('Sum Utility');grid on;
xlabel('用户数量');
ylabel('Sum Utility');
axis([2,16,0,500]);
figure;
MM = Min_people:Step_people:Max_people;
plot(MM,ALL_throughput2,'m--^','LineWidth',2);title('ALL throughput');grid on;
xlabel('用户数量');
ylabel('ALL throughput');
axis([2,16,0,800]);
figure;
MM = Min_people:Step_people:Max_people;
plot(MM,Drop_ratio2,'m--^','LineWidth',2);title('VoIP packet drop ratio');grid on;
xlabel('用户数量');
ylabel('drop ratio');
axis([2,16,0,0.16]);
figure;
MM = Min_people:Step_people:Max_people;
plot(MM,Outage_ratio2,'m--^','LineWidth',2);title('VoIP call outage ratio');grid on;
xlabel('用户数量');
ylabel('outage ratio');
axis([2,16,0,0.7]);
save CPF.mat MM Sum_Utility2 ALL_throughput2 Drop_ratio2 Outage_ratio2
4.仿真分析
5.参考文献
[1] Huang B , Li J , Svensson T . A Utility-Based Joint Resource Allocation Approach for Multi-Service in CoMP Networks[J]. Wireless Personal Communications, 2013, 72(3):1633-1648.A06-18