System Identification and Control of Multiagent Systems Through Interactions