I'm designing a program where each of N agents is assigned a value K. There are N fixed locations, each with coordinates (x,y), and each location is assigned one agent.
What algorithm could I use to distribute all agents among the locations such that the linear distance between the agents with the highest values of K is maximized? (Specifically between the agents in the highest quintile of K values.)
If it matters, N will likely fall in the range of 10-30.