Multi-Agent Distributed Adaptive Resource Allocation