applying GA in sensor placement
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mudu
el 2 de Jul. de 2021
Respondida: Walter Roberson
el 3 de Jul. de 2021
i have created a grid and placed some sensors and targets into it. how can i minimize the cost function for sensor placement using genetic Algorithm?
6 comentarios
Walter Roberson
el 2 de Jul. de 2021
What is k?
Is it correct that the cost of a sensor is determined by the maximum range it has to transmit?
What are the requirements (if any) for being able to relay sensor data from nodes to an outside point?
Respuesta aceptada
Walter Roberson
el 3 de Jul. de 2021
For any given number of sensors, N, use 2*N variables; each sensor will be represented by an X and a Y coordinate.
Use pdist2() to calculate the distance between each target and the set of sensors. Initialize a vector of length N to value 2 in each entry. Scan through the targets, and if the target is more than 10 units from the closest sensor but less than 20 units, set the entry for that sensor to value 3.5, and if the target is more than 20 units from the closest sensor, set the entry for that sensor to 100*number of sensors or other large finite value. Then total the vector, and return that as the "cost".
The ga() algorithm will be responsible for moving the coordinates.
The cost algorithm is not responsible for figuring out whether it would be possible to turn off some of the sensors and still have total coverage.
Now run with number of sensors equal to number of targets, and with number of sensors equal 1. Then proceed to do a binary search looking to lower the cost.
You should expect that you will encounter situations where different number of sensors have the same cost -- for example 7 individual s1 sensors might have total cost 14, but you might be able to cover the same area with 4 sensors that are s2. The cost equation cannot tell the difference at that level.
Generally speaking, using the least number of sensors that generates the lowest cost would be less expensive in some sense. But it is also the most fragile: if a target moves a little then it might go out of range because it might only be covered by one sensor. That can still happen with more sensors, but it becomes less probable. And the fewer the number of sensors you use, the more likely that misplacing a sensor by a little might be a problem.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Genetic Algorithm en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
