Determining the Optimal Allocation of Automated Buses