A control architecture of complex systems based on multi-agent models.