Event based guaranteed cost consensus for distributed multi-agent systems