LEACH协议OMNET++仿真源代码Thecodecontainstwodirectories:oneisadistributedLEACHversion,theotheroneacentralizedwherethebasestation(assumedtoknoweverything)choosestheoptimalclusterhead.The"optimal"isinthecodeapproximatedviarulesthatincludesomekindofgeopgraphicalcriteriaamongothers.Ins