Luca

Luca: Transforming Grocery Pricing with Real-Time Price Optimization

Luca enables grocery retailers to optimize prices across tens of thousands of products in seconds, with a single click.

Luca
Image
Luca

Title

Gurobi + Luca

Industry

Retail & Consumer Products

Region

Americas

Introduction

In 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.

The Problem

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.


Solution

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.

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.


"Gurobi has been a game changer for us, making it significantly easier and faster to solve complex pricing problems.”

Andrew Rall, Founding Data Scientist, Luca

"Gurobi has been a game changer for us, making it significantly easier and faster to solve complex pricing problems.”

Andrew Rall, Founding Data Scientist, Luca

"Gurobi has been a game changer for us, making it significantly easier and faster to solve complex pricing problems.”

Andrew Rall, Founding Data Scientist, Luca


Results

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.

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.”

Case Studies

Explore more innovative ways our customers are using Gurobi to unlock optimal outcomes.

01 OF 00

Gurobi + ZOZO Research

ZOZO Research: Optimizing Inventory Allocation for Scalable E-Commerce Logistics

As ZOZO expanded its logistics network, inventory imbalances created costly transfer problems. Mathematical optimization provided a data-driven approach to prevent those problems before they start.

Image

Gurobi + Analytics for a Better World

Analytics for a Better World: Maximizing Mission-Driven Impact with Optimization

Analytics for a Better World leverages big data sources to analyze humanitarian facility locations and identify ways to maximize coverage while minimizing costs.

Gurobi + encoord

encoord: Optimizing the Energy Transition

To help the power and utilities sector better prepare for the energy transition, encoord uses integrated modeling and advanced optimization methods powered by Gurobi.

Gurobi + Eneco

Eneco: Harnessing Optimization for Smarter Energy Dispatching

Eneco uses optimization to dispatch its renewable energy portfolio, balancing wind, solar, and storage for smarter distribution.

Gurobi + Kurly

Kurly: Transforming Delivery Logistics with Mathematical Optimization

Kurly uses optimization to guarantee morning deliveries for late-night orders, scaling logistics across South Korea.

Gurobi + Hitit

Hitit: Empowering Airlines to Optimize Annual Crew Leave Planning

Hitit cuts weeks of manual crew leave planning down to hours, boosting airline compliance and crew satisfaction.

Gurobi + Marketing Attribution

Marketing Attribution: Driving Smarter Media Investments

Marketing Attribution optimizes $1.4B+ in annual ad spend for a global consumer health brand across 160 countries.

Gurobi + MyGoals

MyGoals: Personal Financial Planning, Optimized

MyGoals uses optimization to help individuals balance multiple life goals simultaneously, from retirement to home purchase.

Gurobi + Light Up the World

Light Up the World: Bringing Clean Energy and Internet Access to Remote Communities

Light Up the World uses optimization to design off-grid solar systems for remote Peruvian communities with no room for error.

Gurobi + 55ip

55ip: Driving Innovation in Tax-Smart Investment Solutions

55ip, a JP Morgan subsidiary, uses optimization to manage tax-smart portfolios at scale across thousands of client accounts.

Gurobi + Statkraft Croatia

Statkraft Croatia: Cracking the Code on Battery Profitability

Statkraft Croatia (now Resalta) uses optimization to assess BESS profitability and maximize battery storage revenue in Croatia.

Gurobi + Cosentino

Cosentino: Optimizing Sales Routes and Production Lines for Enhanced Efficiency

Cosentino uses optimization to plan commercial visit routes and manage production lines, maximizing efficiency across operations.

Case Studies

Explore more innovative ways our customers are using Gurobi to unlock optimal outcomes.

01 OF 00

Gurobi + ZOZO Research

ZOZO Research: Optimizing Inventory Allocation for Scalable E-Commerce Logistics

As ZOZO expanded its logistics network, inventory imbalances created costly transfer problems. Mathematical optimization provided a data-driven approach to prevent those problems before they start.

Image

Gurobi + Analytics for a Better World

Analytics for a Better World: Maximizing Mission-Driven Impact with Optimization

Analytics for a Better World leverages big data sources to analyze humanitarian facility locations and identify ways to maximize coverage while minimizing costs.

Gurobi + encoord

encoord: Optimizing the Energy Transition

To help the power and utilities sector better prepare for the energy transition, encoord uses integrated modeling and advanced optimization methods powered by Gurobi.

Gurobi + Eneco

Eneco: Harnessing Optimization for Smarter Energy Dispatching

Eneco uses optimization to dispatch its renewable energy portfolio, balancing wind, solar, and storage for smarter distribution.

Gurobi + Kurly

Kurly: Transforming Delivery Logistics with Mathematical Optimization

Kurly uses optimization to guarantee morning deliveries for late-night orders, scaling logistics across South Korea.

Gurobi + Hitit

Hitit: Empowering Airlines to Optimize Annual Crew Leave Planning

Hitit cuts weeks of manual crew leave planning down to hours, boosting airline compliance and crew satisfaction.

Gurobi + Marketing Attribution

Marketing Attribution: Driving Smarter Media Investments

Marketing Attribution optimizes $1.4B+ in annual ad spend for a global consumer health brand across 160 countries.

Gurobi + MyGoals

MyGoals: Personal Financial Planning, Optimized

MyGoals uses optimization to help individuals balance multiple life goals simultaneously, from retirement to home purchase.

Gurobi + Light Up the World

Light Up the World: Bringing Clean Energy and Internet Access to Remote Communities

Light Up the World uses optimization to design off-grid solar systems for remote Peruvian communities with no room for error.

Gurobi + 55ip

55ip: Driving Innovation in Tax-Smart Investment Solutions

55ip, a JP Morgan subsidiary, uses optimization to manage tax-smart portfolios at scale across thousands of client accounts.

Gurobi + Statkraft Croatia

Statkraft Croatia: Cracking the Code on Battery Profitability

Statkraft Croatia (now Resalta) uses optimization to assess BESS profitability and maximize battery storage revenue in Croatia.

Gurobi + Cosentino

Cosentino: Optimizing Sales Routes and Production Lines for Enhanced Efficiency

Cosentino uses optimization to plan commercial visit routes and manage production lines, maximizing efficiency across operations.

Case Studies

Explore more innovative ways our customers are using Gurobi to unlock optimal outcomes.

01 OF 00

Gurobi + ZOZO Research

ZOZO Research: Optimizing Inventory Allocation for Scalable E-Commerce Logistics

As ZOZO expanded its logistics network, inventory imbalances created costly transfer problems. Mathematical optimization provided a data-driven approach to prevent those problems before they start.

Image

Gurobi + Analytics for a Better World

Analytics for a Better World: Maximizing Mission-Driven Impact with Optimization

Analytics for a Better World leverages big data sources to analyze humanitarian facility locations and identify ways to maximize coverage while minimizing costs.

Gurobi + encoord

encoord: Optimizing the Energy Transition

To help the power and utilities sector better prepare for the energy transition, encoord uses integrated modeling and advanced optimization methods powered by Gurobi.

Gurobi + Eneco

Eneco: Harnessing Optimization for Smarter Energy Dispatching

Eneco uses optimization to dispatch its renewable energy portfolio, balancing wind, solar, and storage for smarter distribution.

Gurobi + Kurly

Kurly: Transforming Delivery Logistics with Mathematical Optimization

Kurly uses optimization to guarantee morning deliveries for late-night orders, scaling logistics across South Korea.

Gurobi + Hitit

Hitit: Empowering Airlines to Optimize Annual Crew Leave Planning

Hitit cuts weeks of manual crew leave planning down to hours, boosting airline compliance and crew satisfaction.

Gurobi + Marketing Attribution

Marketing Attribution: Driving Smarter Media Investments

Marketing Attribution optimizes $1.4B+ in annual ad spend for a global consumer health brand across 160 countries.

Gurobi + MyGoals

MyGoals: Personal Financial Planning, Optimized

MyGoals uses optimization to help individuals balance multiple life goals simultaneously, from retirement to home purchase.

Gurobi + Light Up the World

Light Up the World: Bringing Clean Energy and Internet Access to Remote Communities

Light Up the World uses optimization to design off-grid solar systems for remote Peruvian communities with no room for error.

Gurobi + 55ip

55ip: Driving Innovation in Tax-Smart Investment Solutions

55ip, a JP Morgan subsidiary, uses optimization to manage tax-smart portfolios at scale across thousands of client accounts.

Gurobi + Statkraft Croatia

Statkraft Croatia: Cracking the Code on Battery Profitability

Statkraft Croatia (now Resalta) uses optimization to assess BESS profitability and maximize battery storage revenue in Croatia.

Gurobi + Cosentino

Cosentino: Optimizing Sales Routes and Production Lines for Enhanced Efficiency

Cosentino uses optimization to plan commercial visit routes and manage production lines, maximizing efficiency across operations.

Start solving with Gurobi

Ready to discover the Gurobi difference? Contact us today to learn more about what mathematical optimization can do for your organization.

Start solving with Gurobi

Ready to discover the Gurobi difference? Contact us today to learn more about what mathematical optimization can do for your organization.

Start solving with Gurobi

Ready to discover the Gurobi difference? Contact us today to learn more about what mathematical optimization can do for your organization.

Join our newsletter to stay up to date on features releases and more.

By subscribing you agree to with our Privacy Policy

© Gurobi Optimization, LLC. All Rights Reserved.

Join our newsletter to stay up to date on features releases and more.

By subscribing you agree to with our Privacy Policy

© Gurobi Optimization, LLC. All Rights Reserved.