资讯详情

无人机优化无线传感器网络matlab代码

1 简介

In wireless sensor networks (WSNs),utilizing the unmanned aerial vehicle (UAV) as a mobile data collector for the ground sensor nodes (SNs) is an energy-efficient technique to prolong the network lifetime. Specifically,since the UAV can sequentially move close to each of the SNs when collecting data from them and thus reduce the link distance for saving the SNs transmission energy. In this letter,an efficient iterative algorithm is proposed to find a sub-optimal solution. Numerical results show that the proposed scheme achieves significant network energy saving as compared to benchmark schemes.an efficient iterative algorithm is proposed to find a sub-optimal solution. Numerical results show that the proposed scheme achieves significant network energy saving as compared to benchmark schemes.

2 部分代码

%Energy-Efficient Data Collection in UAV Enabled Wireless Sensor Network Cheng Zhan ,Member,IEEE,Yong Zeng ,Member,IEEE,and Rui Zhang ,Fellow,IEEE% Jongseok Lee,kwangwoon university,seoul,korea.% figure1.(a) and (b)clearallclosealladdpath('./src')globaluq0qFistrain=0ifistrain==1 %% Optimization Q= {}; X= {}; Theta= {}; Lo= {}; forT= [4050100]   disp(['T ='num2str(T)',start'])   [q,x,th,lo]=solveP1('T',T,'Sk',10*(10^6),'epsilon',10^-2);   disp(['T ='num2str(T)',end'])   Q=cat(1,Q,{q});   X=cat(1,X,{x});   Theta=cat(1,Theta,{th});   Lo=cat(1,Lo,{lo}); endelse load('./data/Fig1.mat') parameter_setting('Sk',10*(10^6),'epsilon',10^-2);end%% figure 1.(a)figure(11)holdon plot(Q{1}Q{1}'--b',Q{2}Q{2}'-.r',Q{3}Q{3}(2,:),'-k');scatter(u(1,:),u(2,:),'xk');legend('T=40s','T=50s','T=100s');axis([-800800-800800])gridontitle('Fig. 1.(a),UAV trajectory')xlabel('x')ylabel('y')text(q0(1),q0(2),'\leftarrow Initial point');text(qF(1)-300,qF(2),'Final point \rightarrow');fork=1:4 text(u(1,k),u(2,k),['u_{',num2str(k),」;enddrawnow %% figure 1.(b)figure(13)Xr=X{2};t=zeros(4,1);fork=1:4 t(k) =graythresh(Xr(:,k));end t=min(t)*1.2; Xr(Xr>=t) =1; Xr(Xr<t) =0;plot([0:99]*50/99,Xr(:,1),'-r',[0:99]*50/99,Xr(:,2),'--b',[0:99]*50/99,Xr(:,3), ':k',[0:99]*50/99, Xr(:,4),  '-.m');legend('SN u_{1}','SN u_{2}','SN u_{3}','SN u_{4}','Location','north','NumColumns',4);axis([ 0 50 0 1.25])title('Fig.1(b), Wake-up schedule (T=50s)');yticks([0 1])yticklabels({'Sleep','Wake-up'})drawnow%% save datasmkdir ./datasave('./data/Fig1.mat', 'X','Q','Theta');

3 仿真结果

4 参考文献

[1] Zhan, C. ,  Y. Zeng , and  R. Zhang . "Energy-Efficient Data Collection in UAV Enabled Wireless Sensor Network." IEEE Wireless Communication Letters PP.99(2017):1-1.

5 MATLAB代码与数据下载地址

标签: 有什么无线传感器

锐单商城拥有海量元器件数据手册IC替代型号,打造 电子元器件IC百科大全!

锐单商城 - 一站式电子元器件采购平台