Resource allocation in service and logistics systems