Introduction
MC's SmartPricing application, powered by Gurobi, allows the retailer to discount products in response to competition, delivering additional value to customers.
MC is one of Portugal's largest retailers, managing a variety of food retail (hypermarkets, supermarkets, convenience stores, and e-commerce), health and wellness stores (parapharmacies, beauty products), restaurants, and stationery stores.
The business started in 1985, and as it grew, it became the largest private employer in Portugal. In addition, its diverse suite of retail models and products helped it cultivate the largest loyalty program in the country, delivering value to four million families.
The price war has no 'off' switch
MC manages a diverse array of sales channels and products, meaning it monitors thousands of price points. Groceries, wellness goods, and beauty products are commodities that families purchase regularly. Customers are attuned to prices and seek value—they know what they paid last week, and they know what MC's competitors charge for a comparable item.
This makes pricing a critical business function. Customers will change stores to save money on their most important products.
"This is dynamic," explains Ana Carvalho, Project Director from MC's Commercial Department. "The constant evolution of prices requires continuous monitoring, ensuring that we maintain a competitive and relevant position for our customers."
Discounts are an important tool for MC to compete on price. The right discount will make customers feel valued and give them a reason to shop at MC today, rather than waiting and potentially purchasing elsewhere.
When developing discounts, MC optimizes two competing metrics:
Competitiveness: The ability to offer customers attractive prices; and
Profitability: MC's margin.
MC's Data, AI, and Analytics Team has explored a number of optimized discounting solutions. A classic example is coupons. They placed constraints on the number of coupons and total value of discounts each customer could receive and created rules to ensure coupons covered a diverse suite of products. They then leveraged loyalty program data to sort customers into affinity clusters and send each cluster coupons for the products most relevant to their spending patterns.
Another approach was gamification. The team used optimization to develop personalized challenges with tiered discounts. Once a customer reaches a specific spending tier for a product in promotion, they are rewarded with discounts or loyalty rewards points that they can redeem in stores.
While both approaches were effective, they mainly accounted for MC's margins. Mailed coupons might miss the mark on timing; gamification tiers are built for a fixed time period. But what if market conditions change today? MC's pricing strategy needed to account for that.
So the team developed SmartPricing: discounting products in real time in response.
Turning market conditions into provable decisions
MC's SmartPricing advances the company's objective of optimizing both competitiveness and profitability. Rather than targeting specific customers for discounts, SmartPricing offers discounts in stores and online based on actual market conditions.
The inputs for this model are: (1) the current price; (2) cost and VAT (which combined, produce the margin); and (3) the Recommended Retail Price (PVPR). While this may seem simple enough, MC offers tens of thousands of products, each with their own price, margin, and allowable price differential.
SmartPricing's constraints also appear simple but add complexity in practice. They include:
Price Competition: MC's price should remain within the pricing parameters defined for each product, ensuring an attractive value proposition for customers.
Price Limits: The PVPR acts as a reference price: the optimized price can never exceed the PVPR, which is an effective constraint of the model. Price-index and margin constraints provide per-item minimums and maximums.
"Gurobi has been really easy to integrate into our processes without changing the way we work."
Teresa Henriques Sarmento, Area Coordinator for AI Engineering, MC
In addition, when there is a range of product sizes, smaller sizes should be cheaper than the larger size, even when the larger product is discounted. After the price is calculated, the system flags cases where this size relationship is not respected.
While price optimization is nonlinear, the Data, AI, and Analytics team developed a piecewise linear function. This reduces solution time, and with Gurobi, can enable near real-time SmartPricing. The result isn't just a good tradeoff between competitiveness and profitability—it's the mathematically best possible one, recalculated across tens of thousands of products in real time.
An edge you can prove
In a price-competitive industry, MC's SmartPricing model gives it an edge. By responding to local conditions, the firm increases profits while remaining competitive and delivering additional value to its customers.
In addition, SmartPricing allows MC to expand optimization approaches to non-optimization professionals.
Commercial and product teams can run simulations on the model, equipping them with the insights necessary to make strategic decisions. This lets MC expand SmartPricing across channels and product lines while maintaining a coherent, consistent approach to discounts.
"Gurobi has been really easy to integrate into our processes without changing the way we work and because we use it for different use cases, we share it with teams that may not be as proficient in optimization, like our data science teams—and it's easy for them to get started and have good results in a fast and easy way," says Teresa Henriques Sarmento, Area Coordinator for AI Engineering at MC.
