Optimal Allocation of Purchase Orders in Dynamic Bidding