Optimization of semi-flexible transit operation for low demand scenarios