K-Means Van Placement

Where should the vans park?

k-means, one step at a time · BIS 527
Ready

Round0
W now–(100 m)²
Best W found– 
W after every step · filled: partition, hollow: learning

How to use
  • Click the map to park each van. Drag a parked van to move it before the run starts.
  • Space runs or pauses, → takes one step, R replays from the same vans, C clears the vans.
  • A partition step sends each household to its nearest van. A ring marks households that switched van.
  • A learning step moves each van to the centroid of its households. A van with no households stays put.
  • k-means stops when a partition step moves no household. Best W found is the smallest W over 200 runs from random households, and the gap is W now divided by it.
  • Distances are straight lines. Real trips follow streets and bridges.

Claude was used to design this app.