Aggregate plans for multiagent systems