A Multi-Agent Model for the Resource Allocation Problem: A Reactive Approach