Originally Posted by **jakemalloy**

This is my dilemma:

Situation: n number of people are in a network. Each pair has a mutual distance they desire to be from each other. If there are discrepencies, all members compromise equally to adjust for the closest fit possible. E.G., A and B 1 unit; B and C 2 units; A and C 4 units. (Keep in 2D) Therefore, A and B add 1/3 unit, B and C add 1/3 unit, and A and C reduce 1/3 unit. Thus, each is as close to the desired distance as possible and all adjust equally.

Occassionally arbitrary choices must be made, e.g., four members all wanting to be 1 unit from each other. Some will have to adjust away and some toward. Which member goes which direction is arbitrary.

So, Any good way to do this?