Create random customers
 
 
 
 
 
DEMAND, CURRENT AND NEXT
CENTER-OF-GRAVITY

Customers are shown as colored circles, with a size reflecting demand quantity. The demand forces pulling the Center-of-Gravity (red circle) are shown as colored arrows (vectors) with a length that refects demand quantity.
NEXT CENTER-OF-GRAVITY
CALCULATION

All demand vectors linked together give the move direction (red arrow). The move distance (grey circle) is then applied to that vector. The result is the black arrow pointing to the next Center-of-Gravity position to be tested.