An Optimal Collective Control Strategy Based on Vicsek Model