A general analysis of resource allocation by competing individuals.