Hey guys looking for a maths wiz or IT expert to help me solve this problem.
I have 20 points (say 20 people) in a 2D plane (X,Y) all the coords are given for each of the 20 people.
I would like to place a Creeper so the total distance to the people is minimised.
This solution is fairly easy: you simply get the average of all the 20 x values and 20 y values average and that point would be center point to place the creeper.
The real problem is this:
I am to place 2 Creepers (Creeper A and Creeper B) on to the 2D plane, if a person is close to Creeper A it doesn't need to be "served by Creeper B".
What is the position of the 2 creepers (Xa, Ya), (Xb, Yb) such that the total distance between people and creepers is minimised?
Note it's possible for 1 creeper to serve say 18 people and the other services just 2. They do not need to each serve an equal number of people like 10 each.

Your problem is a version of the facility location problem called Multi-source Weber problem. It’s a NP-hard problem but many exact algorithm exists to solve it on the plane. See for example Slide 40 of http://www.imus.us.es/PDCOR15/doc/Transparencias_Victor_Blanco.pdf