Optimal transport with a density-dependent cost function | Synapse