基于马尔科夫链的优化进行有AP协助的 WLAN 多链路直连通信协议仿真(Matlab代码实现)

    目录

💥1 概述

📚2 运行结果

🎉3 参考文献

👨‍💻4 Matlab代码

💥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.

部分理论引用网络文献,若有侵权联系博主删除。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值