💥💥💞💞欢迎来到本博客❤️❤️💥💥
🏆博主优势:🌞🌞🌞博客内容尽量做到思维缜密,逻辑清晰,为了方便读者。
⛳️座右铭:行百里者,半于九十。
📋📋📋本文目录如下:🎁🎁🎁
目录
💥1 概述
马尔科夫链是一种时间,状态均为离散的马尔科夫过程,是众多预测方法中的一种,具有科学性,准确性和适应性等优势,在当代预测方法中占据着重要地位.以马尔科夫链为研究对象,阐述马尔科夫链预测的基本原理,传统马尔科夫链预测模型以及优化模型的建立,将马尔科夫链优化模型应用于某高校用水量问题上,并对其进行预测,利用Matlab对用水量预测问题进行编程求解,对最终实验结果进行分析.
本文基于马尔科夫链的优化进行有AP协助的 WLAN 多链路直连通信协议仿真。
📚2 运行结果










主函数部分代码:
%固定数目的节点竞争,改变AP关联设备的数量
clear;clc;clf;
global nodeNum;
OFDM_rate = 600;
Payload = 384000;
%Payload = 384000000;
Pd = 1;
Per = 0;
global CWmin;
CWmin=31;
global m;
m=5;
global N0;
nodeNum=30;
nodeNumPath=1:1:nodeNum/2;
for i=1:1:length(nodeNumPath)
N0=nodeNumPath(i);
ana_CA(i) = bianchi(OFDM_rate,Payload,Pd,Per);
ana_CA2(i) = bianchi(OFDM_rate,Payload/4,Pd,Per);
%nodeNum = nodeNumPath(i);
ana_CA3(i) = bianchi(OFDM_rate,Payload/16,Pd,Per);
%nodeNum = nodeNumPath(i);
anaadv_CA(i)= bianchiadv_withoverhead(OFDM_rate,Payload,Pd,Per) ;
%nodeNum = nodeNumPath(i);
anaadv_CA2(i)= bianchiadv_withoverhead(OFDM_rate,Payload/4,Pd,Per) ;
%nodeNum = nodeNumPath(i);
anaadv_CA3(i)= bianchiadv_withoverhead(OFDM_rate,Payload/16,Pd,Per) ;
gain_CA(i)=anaadv_CA(i)/ana_CA(i);
gain_CA2(i)=anaadv_CA2(i)/ana_CA2(i);
gain_CA3(i)=anaadv_CA3(i)/ana_CA3(i);
end
%sim_plot= sim_CA;
ana_plot = ana_CA;
sim_plot= anaadv_CA;
ana_plot2 = ana_CA2;ana_plot3 = ana_CA3;
sim_plot2= anaadv_CA2;sim_plot3= anaadv_CA3;
%ana_plot = anaadv_CA;
%sim_plot= anaadv1_CA;
figure(1);
%plot(nodeNumPath,ana_plot,nodeNumPath,sim_plot);
plot(nodeNumPath,ana_plot,nodeNumPath,sim_plot,nodeNumPath,ana_plot2,nodeNumPath,sim_plot2,nodeNumPath,ana_plot3,nodeNumPath,sim_plot3);
%legend('ana','sim');
legend('聚合度256 未采用方案','聚合度256 采用方案','聚合度64 未采用方案','聚合度64 采用方案','聚合度16 未采用方案','聚合度16 采用方案');
xlabel('AP关联的STA数量 N0')
ylabel('吞吐量(Mbps)')
%axis([1 30 0 54]);
grid on;
gain_plot=gain_CA;
gain_plot2=gain_CA2;
gain_plot3=gain_CA3;
figure(2);
%plot(nodeNumPath,gain_plot);
plot(nodeNumPath,gain_plot,nodeNumPath,gain_plot2,nodeNumPath,gain_plot3);
legend('聚合度256增益','聚合度64增益','聚合度16增益');
xlabel('AP关联的STA数量 N0')
ylabel('增益')
grid on;
%r_error = abs(ana_CA-sim_CA)./sim_CA;
%r_error = mean(r_error)*100;
%fprintf('Relative error = %.2f%%\n',r_error);
🎉3 参考文献
[1]全映桥.下一代WLAN系统直连通信技术研究[D].西安电子科技大学,2022.
部分理论引用网络文献,若有侵权联系博主删除。
本文介绍了马尔科夫链在高校用水量预测中的应用,以及MATLAB代码实现的优化模型,探讨了AP关联设备数量对无线网络吞吐量的影响,展示了采用AP协作的多链路直连通信协议的性能提升。

1506

被折叠的 条评论
为什么被折叠?



