Digital Ecosystems: Optimisation by a distributed intelligence