Local requirements for optimal allocation of heterogeneous agents (2013)