Luca logo

INDUSTRY: Retail and Consumer Products

REGION: Americas

 

Challenges

In their quest to develop a sophisticated optimization tool for grocery pricing operators, Luca found that various time-consuming approaches were impractical for real-time decision-making and scenario planning.

Outcomes

With Gurobi’s solver, Luca’s platform can now solve complex optimization problems that once took over 30 minutes in just a few seconds, enabling retailers to create on-demand pricing strategies, improve decision-making speed, and enhance operational efficiency.

Zero waste concept. Eco bag with fruits and vegetables, glass jars with beans, pasta. Eco-friendly shopping and cooking concept, flat layIn the highly competitive grocery industry, retailers must navigate complex pricing decisions across a wide range of products to meet business objectives while also maintaining customer satisfaction.

Luca, a retail price optimization company, understands the pivotal role pricing plays in this space. That’s why they developed a sophisticated price optimization solution that puts the power of price optimization directly in the hands of grocery pricing operators. 

With help from Gurobi’s solver, Luca built an advanced model that can handle tens of thousands of products and configurable constraints tailored to each retailer’s unique objectives and strategies—and that can be solved in seconds, with just the click of a button.

Navigating the Complexities of Grocery Pricing

The complexity of grocery pricing cannot be overstated. Retailers often manage tens of thousands of products across multiple stores, resulting in a massive number of variables in any pricing model. Each retailer has a wide range of objectives (like profit maximization, revenue growth, or market share expansion) and constraints (including price bounds, margin requirements, and promotional strategies).

At the heart of the pricing model is a nonlinear objective function of profit and revenue. Profit and revenue depend on both the price and the demand of each product, with demand itself being a function of price, modeled through price elasticity. This creates a nonlinear relationship in the objective function, as changing the price impacts demand, which in turn influences the profit and revenue. This interdependence adds significant computational complexity to the optimization problem.

Moreover, some of the constraints—such as average margin constraints—are quadratic in nature, creating additional layers of complexity. The most intricate models Luca deals with are mixed-integer quadratically constrained quadratic programs (MIQCQP). These models are hard to solve efficiently due to their nonlinear and non-convex characteristics.

Despite the inherent complexity of the models, retailers must rapidly generate price plans to experiment with different responses to market changes, promotions, or competitor actions. Previous solutions that took over 30 minutes to process were impractical for this type of real-time decision-making and hindered the ability to scenario-plan different pricing strategies.

Fast and Efficient Optimization at Scale

To address these challenges, Luca integrated Gurobi’s solver into their price optimization platform. Gurobi can be called by most modeling languages. In Luca’s case, they chose Pyomo,  an open-source Python-based optimization modeling language. 

Efficient Handling of Large-Scale Nonlinear Problems

Gurobi was able to solve the large-scale MIQCQP problem efficiently with:

  • Advanced Heuristics and Presolve Techniques: By increasing heuristic efforts and utilizing presolve strategies, Gurobi quickly reduces problem size and complexity. These techniques enable the solver to rapidly find high-quality solutions.
  • Focused Search for Feasible Solutions: Gurobi’s ability to identify feasible solutions quickly and accept a relaxed optimality gap ensures that practical and implementable solutions are found within tight time frames. This focus is critical for real-time decision-making and scenario planning.
  • Robust Nonlinear and Numeric Handling: With parameters set to maintain numeric precision and handle nonlinear functions directly, Gurobi provides stable and accurate solutions to complex nonlinear problems. This numerical stability and robust handling of nonlinearities are essential for dealing with the intricate profit and revenue calculations in Luca’s models.

Speed and Performance

The integration of Gurobi led to a dramatic improvement in solution times:

  • From Minutes to Seconds: Optimization problems that previously took over 30 minutes are now solved in seconds.
  • Real-Time Decision Making: Retailers can generate on-demand price plans within Luca’s product, enabling swift experimentation of different pricing strategies.
  • Enhanced User Experience: The speed improvement enhances the usability of Luca’s platform, making it a more valuable tool for retailers.

Real-Time Pricing Decisions Made with Confidence

The integration of Gurobi into Luca’s price optimization platform brought significant benefits to both Luca’s product and their retail customers. Retailers can now configure a wide range of objectives and constraints, tailoring the optimization to their specific needs without sacrificing speed or performance. Gurobi’s ability to efficiently process models with tens of thousands of products and constraints, including quadratic constraints, has enabled Luca to handle complexity with ease.

One of the most remarkable outcomes is the dramatic improvement in solution times. Optimization problems that previously took over 30 minutes are now solved in seconds. This speed improvement allows retailers to generate price plans on demand within Luca’s product, placing the power to execute sophisticated price optimization strategies in the hands of the pricing operator. 

“Gurobi has been a game changer for us, making it significantly easier and faster to solve complex pricing problems,” says Andrew Rall, Founding Data Scientist at Luca. “The speed and efficiency we’ve gained ultimately benefit our customers, enabling them to implement real-time, data-driven pricing strategies with confidence.”

Guidance for Your Journey

30 Day Free Trial for Commercial Users

Start solving your most complex challenges, with the world's fastest, most feature-rich solver.

Always Free for Academics

We make it easy for students, faculty, and researchers to work with mathematical optimization.

Try Gurobi for Free

Choose the evaluation license that fits you best, and start working with our Expert Team for technical guidance and support.

Evaluation License
Get a free, full-featured license of the Gurobi Optimizer to experience the performance, support, benchmarking and tuning services we provide as part of our product offering.
Academic License
Gurobi supports the teaching and use of optimization within academic institutions. We offer free, full-featured copies of Gurobi for use in class, and for research.
Cloud Trial

Request free trial hours, so you can see how quickly and easily a model can be solved on the cloud.

Search

Gurobi Optimization