Optimization-based computation of locomotion trajectories for crowd patches | Synapse