In many on-demand online platforms such as ride-sharing, grocery delivery, or shipping, some arriving agents are patient and willing to wait a short amount of time for the resource or service as long as there is an upfront guarantee that service will be ultimately provided within a certain delay. Motivated by this, we present a setting with patient and impatient agents who seek a resource or service that replenishes periodically. Impatient agents demand the resource immediately upon arrival while patient agents are willing to wait a short period conditioned on an upfront commitment to receive the resource. We study this setting under adversarial arrival models using a relaxed notion of competitive ratio. We present a class of POLYtope-based Resource Allocation (POLYRA) algorithms that achieve optimal or near-optimal competitive ratios. Such POLYRA algorithms work by consulting a particular polytope and only making decisions that guarantee the algorithm's state remains feasible in this polytope. When the number of agent types is either two or three, POLYRA algorithms can obtain the optimal competitive ratio. To design these polytopes, we construct an upper bound on the competitive ratio of any algorithm, which is characterized via a linear program (LP) that considers a collection of overlapping worst-case input sequences. Our designed POLYRA algorithms then mimic the optimal solution of this upper bound LP via its polytope's definition, obtaining the optimal competitive ratio. When there are more than three types, our overlapping worst-case input sequences do not necessarily result in an attainable competitive ratio, and so we present a class of simple and interpretable POLYRA algorithm which achieves at least 80% of the optimal competitive ratio. We complement our theoretical studies with numerical analysis which shows the efficiency of our algorithms beyond adversarial arrivals
翻译:在许多在线需求平台中,如搭便车、杂货交付或航运,一些到达的代理商有耐心,愿意等待较短的时间来获取资源或服务,只要有提前保证最终在一定的延迟时间内提供服务。 受此驱动, 我们向病人和不耐烦的代理商展示了一种环境,他们寻求定期补充资源或服务。 住院代理商抵达后立即要求资源, 而病人代理商愿意等待一个短时期, 条件是事先承诺接收最坏的资源。 我们利用竞争比率的宽松概念, 研究这一在对抗性抵达模式下设置的资源或服务竞争比率。 我们展示了基于POLytope的资源分配(POLYRA)算法(POLYRA)算法(POLYRA)算法(POLYRA)算法的一类,最终达到最佳或接近最佳竞争比率。 这种POLYRA算法(POLY )算法(我们的最佳算法(OLL)比最坏的三类算法(我们的最佳算法(OLL) 算法(最差的算法)更难得最佳算算法(最坏的算算法),然后通过一个最坏的算法(我们的最佳算算法(我们的最佳算算法)的代算算法),它比最坏的算法(我们的最佳算算法(最坏的代算法)的代算算法)的代算算法(最坏的代算法, ) )的代算法(最坏的代)。