A graphical bicriteria approach to the resource allocation problem