Optimal Transport with Constraints: From Mirror Descent to Classical Mechanics | Synapse