Reinforcement Learning for Group Price Optimization

Anton Denisov, Mikhail Budylin8 Jul 2024

Problem

A retailer wants the best price for every product, but the category usually carries a shared rule: its average price must not be higher than competitors' (a price index). Per-product bandits ignore such a rule. Optimization methods handle it, but they need a demand-elasticity model, which is hard to fit well on historical data. X5 Tech analysts wanted a way to learn demand by trying prices while obeying the group constraint.

Example from the article: five products, four candidate prices each, a market index kept between 0.98 and 1.02, and the goal of maximizing expected gross profit.

Solution in brief

Run Thompson sampling over demand at each (product, price) pair. At every step, sample demand from the posteriors, then solve an integer linear program that picks one price per product under the index constraint, and apply those prices. After observing sales, update the posteriors. The final prices are the most frequent solution over the last steps.

Questions this case answers
  • How to learn the best discrete action for each item from noisy feedback when a constraint ties all items together and demand cannot be modeled in advance
  • How to pick the final decision from an adaptive-allocation algorithm that keeps sampling alternatives
  • How to learn the best price for each product in a category while keeping the category's average price relative to competitors inside a band?
  • How to combine Thompson sampling with an integer program so a shared price constraint holds at every step of price exploration?

Tools and methods

  • Thompson sampling — draws demand from posteriors to balance exploration and exploitation.
  • Integer programming — picks one price per product under the shared index constraint (Pyomo with the HiGHS solver).
  • Price optimization — maximizes expected gross profit over a discrete price grid.
Continue reading — it's free

Google or a one-time email code. No password.