Optimization and mappng

Hi
I have done the mapping and the extration of the raster data from the images.Then i have implemented it to the Arcmap.Can anyone help for the optimization purpose.I hace to optimized the placement of the microphones on the vast area.

Screenshot_(661).png

Screenshot_(673).png

Screenshot_(676).png
I need help for the designing of the fitness function for the optimum sound-based intrusion detection

and implement the genetic algorithm to estimate the optimum microphone

Python code for the optimization of placement of microphones using ArcGIS

Python program that will
1)Define a single point for the red/green dot near the supposedly enemy territory;
2)Define a subset A of your DEM raster image towards the friendly territory;
3)Calculate the line of sight for each pair (of observation pixel to target pixel);
4)Sum the total number of green LoS that you get, which will be less than or equal to the number of pixels in subset A.