Agr-IoT / LEACH

Simulation of LEACH routing protocol on OMNET++
Other
17 stars 4 forks source link

Node placement not random #9

Closed pjake12 closed 1 year ago

pjake12 commented 1 year ago

placement

when running the simulation, the node placements are constantly positioned like this. How can I make the placements random?

n-jay commented 1 year ago

If you're using the StationaryMobility module, then nodes are indeed placed randomly but deterministically. Meaning that the positioning does not change. I believe this can be changed by passing the seed value in the .ini file.

I recommend you looking into the Mobility model doc for further details. https://inet.omnetpp.org/docs/users-guide/ch-mobility.html#stationary