Say I have a number of customers in a geographical area, marked "c
":
Each customer has a Lat/Long. I would like to find x
number of points, in the same space, that best serve the customers, ie. they are closest to the customers.
Its easy to do when x = 1
, because that is the geographical center of gravity, and there are a few ways to find that out. However I am struggling to think of how I would approach this problem if x > 1
Say x = 2
, then I would like to know, where would I place the two points so the distances to customers are minimised, how would I even approach this problem?
I would eventually try and solve this using a programming language, so I am not after a purely mathematical formula, even though that would help.