Decentralized control of complex systems