Feature Matching And Learning For Controlling Multiple Identical Agents With Global Inputs