Optimization of Scheduling and Dispatching Cars on Demand