Knowledge management for self-organised resource allocation