珠宝首饰商城网站建设,无网站网络营销,网站建设的要点是什么,黑帽seo365t技术目录
#x1f4a5;1 概述
#x1f4da;2 运行结果
#x1f389;3 参考文献
#x1f468;#x1f4bb;4 Matlab代码 #x1f4a5;1 概述
提高能源效率是无线传感器网络面临的关键挑战之一#xff0c;无线传感器网络日益普遍。由于节点#xff08;传感器#xff… 目录
1 概述
2 运行结果
3 参考文献
4 Matlab代码 1 概述
提高能源效率是无线传感器网络面临的关键挑战之一无线传感器网络日益普遍。由于节点传感器通常不得不依赖有限的能量存储来执行其数据收集工作作为对来自其他节点的数据的中继因此数据传输路径的优化对于提高网络寿命变得很重要。将节点分组到具有簇头CH的簇中是实现这一点的常见方式。
然而节点作为数据收集器和数据中继的两个角色在能耗方面相互冲突随着数据中继操作整个网络正常运行所必需的深入有限的能量存储它可能会缩短节点的寿命阻碍其数据收集。自我生存和对网络的贡献之间的这种内在冲突为博弈论在传感器网络建模中的应用开辟了有趣的途径。本文提出了一个这样的模型——DEGRA并与其他模型即LEACH和DEER进行了比较。该算法通过考虑所讨论的节点以及周围节点的剩余能量来实现这一点。
2 运行结果 主函数部分代码
1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Energy Density Based Algorithm Proposed %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clear;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PARAMETERS %%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Field Dimensions - x and y maximum (in meters)
xm 100;
ym 100;
%x and y Coordinates of the Sink
%sink.x 0.5 * xm;
%sink.y ym 50;
%sink.x50;
%sink.y175;
sink.x -100;
sink.y -100;
%sink.x0.5*xm;
%sink.y0.5*ym;
%Number of Nodes in the field
n 100;
%Optimal Election Probability of a node to become cluster head
%p0.05;
PacketLength 4000;
ctrPacketLength 125;
%Energy Model (all values in Joules)
%Initial Energy
Eo 0.25;
%EelecEtxErx
ETX50*0.000000001;
ERX50*0.000000001;
%Transmit Amplifier types
Efs10*0.000000000001;
Emp0.0013*0.000000000001;
%Data Aggregation Energy
EDA5*0.000000000001;
INFINITY 999999999999999;
%maximum number of rounds
rmax3000;
%%%%%%%%%%%%%%%%%%%%%%%%% END OF PARAMETERS %%%%%%%%%%%%%%%%%%%%%%%%
%Computation of do
dosqrt(Efs/Emp);
%Creation of the random Sensor Network
figure(1);
for i1:1:nS(i).xd(1) rand(1,1)*xm;%×ø±ê%XR(i)S(i).xd;S(i).yd(1) rand(1,1)*ym;%YR(i)S(i).yd;%S(i).G 0;%initially there are no cluster heads only nodesS(i).type(1) N;S(i).E(1) Eo;%S(i).ENERGY(1) 0;% hold on;plot (S(i).xd,S(i).yd,og)hold on;
end
S(n1).xd(1) sink.x;
S(n1).yd(1) sink.y;
%plot(S(n1).xd, S(n1).yd, x)
hold on;
%First Iteration
figure(1);
%counter for CHs
countCHs0;
%counter for CHs per round
rcountCHs0;
cluster1;
countCHs;
rcountCHsrcountCHscountCHs;
flag_first_dead0;
TOT_ENERGY_INIT(1).E 0;
for i 1:1:nif (S(i).E(1)0)TOT_ENERGY_INIT(1).E TOT_ENERGY_INIT(1).E S(i).E(1);end
end3 参考文献
[1]王超. 无线传感器网络中数据收集方法研究[D].北京邮电大学,2012.
部分理论引用网络文献若有侵权联系博主删除。