Transforming Replenishment at Chewy

Published Online:https://doi.org/10.1287/inte.2026.0437

Abstract

Chewy transformed its replenishment function by designing and deploying a fully integrated, science-driven ecosystem tailored to the scale and complexity of its growing supply chain. Rather than optimizing isolated decision points, Chewy rebuilt replenishment as a cohesive operating system with three tightly coupled layers: (i) science models that determine how inventory is replenished; (ii) an analytical monitoring layer that supports diagnosis and continuous improvement; and (iii) a custom engineering platform that enables reliable, large-scale execution. A coordinated set of science models decomposes replenishment into three integrated decision layers: forecast allocation, uncertainty modeling, and purchase order creation. Analytical monitoring serves as a feedback mechanism that informs targeted model enhancements, ensuring that the replenishment suite remains robust as operating conditions change, while a custom-built engineering execution platform ensures reliable operation within fixed production windows. We estimate that this ecosystem generated substantial net financial benefits while simultaneously improving inventory placement, reducing shipping distance, and enhancing customer experience.

History: This paper was refereed.

1. Chewy’s Growth and Scale

Chewy has grown into the largest online pet retailer and pharmacy in the United States in terms of annual revenue. From 2018 to 2025, the company nearly doubled its active customer base, from approximately 11 million to more than 20 million, while daily shipments increased by 178%. Although this rapid growth reflects Chewy’s success in delivering an award-winning customer service experience on a national scale (Shestserau 2024), it also dramatically increased the complexity of operating the supply chain.

Before 2020, Chewy prioritized growth and customer acquisition. Replenishment decisions were supported by fragmented business rules and third-party software that relied on heuristics and manual overrides. These approaches were sufficient to support operations and sustain growth when Chewy had a smaller assortment of products, fewer vendors, and a limited fulfillment footprint.

1.1. Today’s Supply Chain and Central Role of Replenishment

Today, Chewy operates at a significantly larger scale in terms of revenue, fulfillment network, vendor base, and product assortment (Weinstein et al. 2024). Annual revenue grew from $3.5 billion in 2018 to $11.86 billion in 2024, supported by a nationwide network of 21 fulfillment centers (FCs) and more than 5,000 vendors. The assortment now includes hundreds of thousands of stock-keeping units (SKUs) across core retail, pharmacy, and specialty businesses, with new products introduced continuously.

At Chewy’s scale, replenishment is one of the most critical components of the e-commerce supply chain, particularly in the low-margin pet retail industry, where IBISWorld reported an average industry profit margin of approximately 4.0% in 2018 (IBISWorld 2018). Given these low margins, inventory placement decisions can quickly turn a profitable item into a loss when products are shipped over long distances, resulting in increased transportation costs. Replenishment also affects how many packages a customer receives for a single order, because fragmented item placement leads to split shipments, which increase fulfillment costs and degrade the customer experience.

Replenishment decisions further influence vendor relationships. The volume, timing, and variability of purchase orders directly affect vendor capacity planning and fill rates. Poorly structured ordering can strain supplier operations, whereas consistent and optimized replenishment signals help vendors plan more effectively and strengthen long-term partnerships, enabling more favorable contractual terms and a more reliable supply. Small inefficiencies in replenishment decisions can compound rapidly across hundreds of thousands of daily orders, making replenishment a primary driver of both cost control and competitive advantage.

1.2. Chewy’s Replenishment Problem

Replenishment answers four fundamental questions for Chewy’s supply chain: what to buy, when to buy it, how much to buy, and where to buy it. Although replenishment systems vary across industries, they all depend on a small subset of foundational components working together, including demand forecasting, uncertainty modeling for both demand and supply, and purchase order creation.

At Chewy, replenishment cannot be treated as a conventional inventory problem. Rapid growth and operational scale introduce structural complexities that violate the assumptions underlying standard approaches. FC capacity, inbound throughput, and inventory availability increasingly limit replenishment decisions, and these same constraints distort historical demand signals at the FC level. In addition, Chewy maintains varying types of relationships with its vendors, which drive different operating behaviors. Therefore, to secure favorable contractual terms and reliable supply, Chewy must accommodate a wide range of vendor-specific requirements, including vendor days-of-supply targets, minimum order quantities, and shipment characteristics. Balancing these vendor-aligned constraints while optimizing cost, service, and inventory placement makes replenishment one of the most complex and strategically critical problems in Chewy’s supply chain.

1.3. Why Legacy Replenishment Systems Failed at Scale

As Chewy’s network grew, legacy replenishment methods became an increasing constraint, driving inefficient inventory placement, excessive shipping miles, and inconsistent service levels. As mentioned earlier, approaches that once supported a smaller, fast-growing business increasingly limited both profitability and customer experience.

A central limitation was that legacy logic relied on general-purpose assumptions designed to apply across many retailers rather than Chewy’s operating realities. Orders frequently failed to align with vendor-specific constraints, requiring manual rework or resulting in inefficient inbound shipments. Order quantities were also optimized locally using historical fulfillment center outflows instead of a network-wide view, conditioning future decisions on prior suboptimal placement and reinforcing inefficiencies as the network expanded.

The system also lacked the flexibility to support new categories and operating models. Its tightly coupled logic made it difficult to incorporate new fulfillment structures and business requirements, such as the regulatory and service constraints introduced by pharmacy, without manual workarounds. As Chewy continued to add categories and fulfillment channels, this rigidity increased technical risk and slowed adaptation.

Incremental fixes and manual overrides proved insufficient. Chewy required a replenishment system designed explicitly for its scale and dynamics, replacing broad assumptions with data-driven models capable of delivering accurate and scalable decisions across the supply chain.

2. A System-Design Approach to Replenishment

The applied operations research literature includes numerous successful replenishment applications spanning inventory optimization, profit optimization, and supply chain planning. Many well-known industry implementations focus on improving a clearly defined decision step, such as strategic network design (Liu et al. 2022, Lee et al. 2024), production scheduling (Chen and Hall 2022, Ghasemi et al. 2024), or last-mile execution (Giuffrida et al. 2022). More comprehensive approaches attempt to address replenishment end-to-end by casting it as a function-approximation problem and applying deep-learning-based optimization methods (Qi et al. 2023).

We took a fundamentally different approach. Rather than treating replenishment as a single modeling problem, we framed it as a system-design problem. Our solution integrates machine learning where prediction is essential, mathematical programming where satisfying hard constraints is nonnegotiable, empirical distributions where parametric assumptions break down, and custom optimization techniques where solving at scale is critical. This hybrid design was driven by the realization that no single model could address the full complexity of Chewy’s replenishment environment.

Adoption and flexibility were central design considerations. Because Chewy replaced a fully operational third-party replenishment system, the new solution needed to satisfy complex business constraints while remaining explainable, transparent, and trustworthy to planners and leaders from the first day of production deployment. Although more sophisticated formulations could jointly model uncertainty and optimization from end to end, such approaches often sacrifice interpretability, which was an unacceptable trade-off. To support adoption and long-term scalability, the replenishment ecosystem was built around a configuration-driven architecture in which constraints, cost structures, and operating rules are expressed through data inputs rather than hard-coded logic. This design allows new vendors, fulfillment nodes, and business verticals, including regulated businesses such as pharmacy, to be incorporated without redesigning core models, reducing long-term technical risk and avoiding optimization around a single moment in time.

These considerations guided a modular design philosophy. Instead of applying a single “best” replenishment model, Chewy built a coordinated ecosystem of models, each tailored to address a critical component of replenishment and supported by a custom-built execution and monitoring infrastructure engineered to work together at scale. Our goal was not only to improve model performance, but also to build a transparent and trustworthy system that business users would adopt without routinely overriding its recommendations.

By decomposing complex decisions into intuitive components, we ensured that emphasis was placed on transparency and adoption. Importantly, this decomposition did not materially compromise solution quality, because the subproblems align with natural separations in the decision process, such as forecast estimation, demand uncertainty modeling, and network-level inventory placement.

As a result, Chewy’s new replenishment ecosystem represents more than an incremental improvement; it is a transformative change. Our main contribution is not a single breakthrough algorithm, but a blueprint for rebuilding replenishment as a science-driven operating system tailored specifically to the needs of a modern e-commerce supply chain.

2.1. The Replenishment Ecosystem

Chewy’s replenishment ecosystem is designed as an integrated system with three tightly connected components: science models that determine how inventory is replenished, a custom engineering platform that ensures scalability and reliability, and an analytics layer that supports monitoring and continuous improvement. The ecosystem comprises Hopper, Chewy’s Amazon Web Services-based data platform for ingestion, processing, and storage; Maestlin, the central data modeling layer responsible for cost estimation and forecast aggregation; the core science models Kepler, Aristotle, and Socrates; and a suite of dashboards that track both lagging and leading key performance indicators (Figure 1).

Figure 1. (Color online) An End-to-End Architecture of Chewy’s Replenishment Ecosystem

In this paper, we focus primarily on the science models and later describe how the engineering platform and analytics layer enable these models to scale effectively and improve over time.

2.2. Replenishment Science Models

At the core of the ecosystem is a set of science models that collectively address the end-to-end replenishment problem by decomposing it into three interdependent decision layers: forecast allocation, uncertainty modeling, and purchase order creation.

The replenishment process begins with forecast allocation. Although customer demand is forecasted at a geographic regional level, inventory decisions must be made at the FC level. This translation is handled by Kepler, which forms the foundation of Chewy’s replenishment science stack. Kepler uses optimization to allocate regional demand to FCs in a cost-efficient manner while respecting capacity and reducing split shipments. The resulting FC-level demand signals define the ideal fulfillment pattern and serve as key inputs to downstream models.

The second layer addresses demand and supply uncertainty through the safety stock model, Aristotle. Using FC-level forecast signals from Kepler, observed fulfillment behavior, and vendor compliance with lead-time service-level agreements, Aristotle determines optimal safety stock targets for each SKU and FC combination by maximizing free cash flow. These targets define how much inventory should be buffered and where it should be held to protect against forecast error and supply variability.

The final layer is the generation of purchase orders, handled by Socrates. Socrates translates FC-level forecasts and safety stock targets into executable purchase orders, incorporating vendor constraints, order minimums, and capacity considerations. It runs daily to generate orders for immediate execution, as well as forward-looking buying plans, directly driving Chewy’s purchasing and inventory placement decisions.

Together, these three layers form an integrated decision flow that translates customer demand, operational constraints, and vendor behavior into executable replenishment actions. Although each model addresses a distinct component of the replenishment problem, they are designed to work in coordination, with outputs from one layer serving as critical inputs to the next. In the remainder of this paper, we describe each science model in detail, focusing on its objectives, the challenges and complexities it addresses, and the solution approaches we developed.

3. Kepler: Forecast Allocation to Fulfillment Centers

3.1. Objectives

Chewy’s forecasting system generates demand forecasts at the metropolitan statistical area (MSA) level, where each MSA represents a group of ZIP codes. However, all replenishment decisions, including safety stock determination and purchase order execution, must be made at the FC level. To bridge this gap between geographically aggregated forecast signals and FC-level execution, Maestlin estimates fulfillment costs and regionalizes demand forecasts, while Kepler builds on these inputs to determine an ideal FC-level demand fulfillment pattern that minimizes total projected outbound cost.

Given Chewy’s cost structure and fulfillment-center capacity constraints, Kepler prescribes how the forecast should be ideally fulfilled to generate a clean, FC-level forecast signal. Without Kepler, downstream models would have to rely solely on historical FC shipments, which embed distortions caused by prior out-of-stock events, capacity limits, or inbound backlogs, rather than reflecting true cost-optimal fulfillment. By translating regional forecasts into an idealized FC-level demand pattern, Kepler avoids reinforcing historical constraints and produces a stable demand signal that can be reliably used for safety stock optimization and purchase order generation.

3.2. Challenges and Complexities

Allocating regional demand to FCs presents two primary challenges at Chewy’s scale. First, computational tractability limits what can be solved reliably within production time windows. Solving the allocation problem directly at the SKU-FC-MSA level would be computationally intractable for frequent execution, requiring dimensionality reduction techniques that preserve the cost structure driving fulfillment decisions.

Second, naïvely allocating SKU-level demand to the single lowest-cost FC can create downstream inefficiencies that are not apparent at the individual item level. Demand forecasts are generated independently by SKU without accounting for which products customers typically purchase together in the same order, while approximately 45% of customer orders contain multiple items and account for nearly 75% of total demand. Small differences in outbound cost across nearby FCs are often operationally insignificant, yet concentrating demand at a single location increases the likelihood of split shipments once inventory constraints and multi-item orders are introduced. These split shipments increase fulfillment costs and degrade customer experience, ultimately offsetting the apparent savings from marginal cost differences.

3.3. Solution Approach

3.3.1. FC Clustering.

We construct FC clusters for each SKU-region pair by iteratively grouping FCs whose unit outbound costs fall within a small percentage of the cheapest available option. These clusters encode substitutability across locations and provide a structured mechanism for discouraging single-FC solutions when multiple near-equivalent options exist.

Kepler determines how forecasted demand should ideally be fulfilled across the fulfillment network through two sequential linear programs (LPs) solved for each planning period (Figure 2). The first LP allocates regional demand to FCs while minimizing total outbound cost, subject to FC capacity constraints. To avoid a concentrated demand forecast allocation, the second LP redistributes volume across FC clusters. By applying penalties for deviations from cluster-level allocation proportions, the model encourages diversified fulfillment among locations with similar costs. For example, if multiple northeastern FCs have nearly identical costs to serve the Boston region, Kepler promotes splitting demand across them, rather than routing all demand through a single site. This sequential optimization approach yields three key benefits: lower total fulfillment cost, improved customer experience through reduced split shipments, and greater network resilience by avoiding overreliance on individual FCs.

Figure 2. (Color online) Transformation of Geographic Demand Forecasts into Cost-Minimizing, Diversified Fulfillment-Center Allocations Using the Kepler Optimization Model

4. Aristotle: Modeling Demand and Supply Uncertainty

4.1. Overview and Objectives

Forecasts are inherently imperfect, and suppliers frequently deviate from contractual expectations by delivering late, short, or not at all. As a result, replenishment decisions must account not only for expected demand and lead times, but also for the uncertainty surrounding those expectations. In practice, this uncertainty is the most difficult aspect of replenishment to quantify and explain because safety stock quantiles reflect the interaction of multiple sources of uncertainty and, therefore, lack a simple, intuitive interpretation. The goal of Aristotle is not only to accurately protect against variability, but also to translate complex uncertainty into clear and trusted inventory buffers.

4.2. Challenges and Complexities

Modeling uncertainty for Chewy’s replenishment system presents several challenges that limit the effectiveness of traditional safety stock approaches. Chewy manages more than 100,000 SKUs, each potentially stocked in up to 13 fulfillment centers, resulting in over 1 million SKU and FC uncertainty distributions. These distributions exhibit a wide range of behaviors, including skewed, heavy-tailed, and bimodal patterns across the catalog. Although empirical distributions are well suited to capturing this diversity, they are inherently difficult to summarize because they do not conform to familiar distributional shapes, making their behavior challenging to visualize and explain.

Standard cold-start safety stock methods impose only aggregate constraints or summary statistics, which are insufficient to characterize distributional shape, tail risk, or the quantile behavior required for service-level-based optimization. Moreover, because empirical distributions rely entirely on historical demand observations, they are undefined for newly introduced products. As a result, existing safety stock methods provide no reliable mechanism for estimating uncertainty at every quantile for items with little or no demand history, motivating the need for a new approach.

Even after characterizing uncertainty, determining the appropriate service level introduces additional complexity. Classical newsvendor formulations are often used to select the optimal quantile of the demand distribution when maximizing profit, but they rely on assumptions that do not hold in Chewy’s environment, most notably nonnegative margins and reliable salvage values. Chewy’s catalog includes loss leaders, such as heavy, low-priced items like cat litter, and salvage values are difficult to estimate accurately in e-commerce. As a result, traditional formulations, which are highly sensitive to salvage-value assumptions and are undefined for negative-margin items, become unreliable for generating safety stock targets.

4.3. Solution Approach

4.3.1. Lead-Time Demand Error Decomposition.

Because our orders are based on vendor-agreed lead times and generated forecasts, safety stock must buffer against the lead-time demand (LTD) error, defined as the difference between realized demand over the actual lead time and forecasted demand over the expected lead time. Aristotle does not model total demand over lead time; instead, it explicitly models the error relative to the planning assumptions that lead to stockouts.

Let Ei denote the LTD error for item i. After algebraic simplification, this error can be expressed as

Ei=DifD^ifforecast error over expected lead time+Diddemand accumulated during lead‐time delay,
where Dif is realized demand over the expected lead time, D^if is the corresponding forecast, and Did represents additional demand realized when the actual lead time exceeds its expectation. This decomposition yields an interpretable view of uncertainty, separating the portion of safety stock that protects against forecast error from the portion that buffers supplier delays (Figure 3), thereby allowing planners to understand the drivers of increases in safety stock and identify whether corrective action should focus on demand forecasting accuracy or supplier performance.

Figure 3. (Color online) Illustration of Stockout Risk
Note. Stockout risk driven by demand exceeding forecast during the expected lead time is shown at left; risk driven by longer-than-expected lead times that delay replenishment is shown at right.

4.3.2. Lead-Time Demand Error Characterization.

The true distribution of LTD error is unknown and varies substantially between items and vendors. Rather than impose restrictive parametric assumptions, Aristotle estimates this distribution using a fully nonparametric, data-driven approach.

We decompose LTD error into two distinct components: (i) forecast error over the expected lead time, representing the difference between actual and forecasted demand during that period, and (ii) demand accumulated during lead-time delays, representing additional demand realized beyond the expected lead time. This decomposition ensures that demand accumulated during delays is excluded from the forecast-error component, preventing overlaps between the two sources of uncertainty. We estimate the empirical distributions of these components separately using kernel density estimation (KDE), where f^Eif and f^Eid denote the resulting density estimates.

Because the distribution of the sum of two independent random variables is the convolution of their distributions, the error distribution is defined as

f^Ei(e)=∫−∞∞f^Eif(s) f^Eid(e−s) ds.

Here, s represents a possible realization of forecast error, and e−s is the corresponding realization of delay-induced demand such that their sum equals the total LTD error e. Rather than assuming a single distribution for lead-time uncertainty, Aristotle builds it directly from observed forecast errors and observed delivery delays, combining the two in a way that reflects their joint impact on realized outcomes. This approach preserves item-specific skewness, asymmetry, and heavy-tail behavior, particularly in the upper tail that drives high service-level decisions.

Because KDE estimates are sensitive to the historical window used, Aristotle applies a time-series change-point detection algorithm to identify structural shifts in forecast error or lead-time behavior and restricts estimation to the most relevant historical period for each item-location pair. This allows the model to adapt dynamically to changes in demand patterns or supplier performance.

Although KDE accurately captures uncertainty, its raw form is difficult to interpret and communicate to business stakeholders without technical backgrounds and computationally expensive to incorporate directly into the safety stock optimization, which maximizes expected profit by integrating over the lead-time demand error distribution. To address this, we introduce a targeted normal approximation that preserves the empirical distribution’s behavior around the service-level quantile of interest. Specifically, we use the KDE to identify the target quantile and then construct a normal distribution that locally matches the empirical distribution in this region. Figure 4 illustrates this approximation. Although a traditional normal fit overestimates the target quantile of the empirical distribution (by more than 13% in this example), the targeted normal approximation aligns closely with the KDE near the service-level threshold.

Figure 4. (Color online) Comparison of the KDE Demand Distribution with a Targeted Normal Approximation
Note. Observe the close alignment around the service-level quantile of interest relative to a global normal fit.

4.3.3. Characterizing Lead-Time Demand Error in Cold Starts.

Because safety stock estimation relies on historical data, new and sparsely stocked items present a cold-start challenge. To address this, we developed a cold-start methodology that infers uncertainty distributions for new items using information from comparable products. Specifically, we construct a joint empirical distribution over forecasts and historical forecast errors for items sharing similar attributes, such as product category, vendor, and fulfillment center.

For a new item, its current forecast is used to find the relevant slice of this joint distribution, producing an item-specific probability distribution of LTD error. This approach leverages observed error behavior from similar items while adapting the uncertainty estimate to the new item’s forecast level. By doing so, Aristotle can generate realistic safety stock targets, even in the absence of item-level demand history, enabling scalable and robust uncertainty modeling across continuous catalog expansion.

4.3.4. Profit Optimization.

Aristotle reframes safety stock optimization as a profit-maximization problem that jointly optimizes groups of related items, referred to as subcategories, rather than independent item-level decisions. Safety stock is allocated jointly within each product subcategory, subject to an overall inventory target and reasonable service-level bounds. This pooled optimization reduces sensitivity to salvage value uncertainty and allows loss leaders to be handled naturally by preserving relative economic trade-offs while permitting negative nominal margins.

Let SSi denote the safety stock decision for item i, ni its relative per-unit net margin (defined via a shifted transformation to ensure positivity while preserving relative comparisons), and cihold its per-unit holding cost. The expected net benefit of safety stock for item i is E[Bi(SSi)]=ni E[min (SSi,Ei)]−cihold E[(SSi−Ei)+]. Safety stock levels are determined by solving the following optimization problem independently for each subcategory j:

max {SSi}i∈j∑i∈jE[Bi(SSi)] s.t. ∑i∈jSSi≤Tj, SSimin≤SSi≤SSimax,
where Tj is the subcategory-level safety stock target and SSimin and SSimax enforce service-level bounds. This formulation yields relative safety stock allocations based on each item’s marginal contribution within a subcategory.

Approximating the empirical LTD error distribution locally around the service-level quantile of interest with a normal distribution yields a continuous, concave objective function, allowing the nonlinear stochastic optimization problem to be solved efficiently using a quasi-Newton method. The outcome is a set of safety stock levels that determine the optimal service levels that maximize free cash flow, while remaining accurate in the region that matters most.

5. Socrates: Purchase Order Optimization

5.1. Overview and Objectives

Socrates is Chewy’s purchase order (PO) optimization model for generating PO proposals (Figure 5). Each proposal specifies the order quantity for each SKU-FC-day combination and organizes these quantities into orders that satisfy the applicable vendor requirements. It formulates PO generation as a cost-minimization problem with a composite objective function that includes shipping costs, inventory holding and expiration costs, and penalties associated with soft constraint violations. The model produces SKU-, FC-, truck-, and time-level order recommendations that support both immediate PO execution and forward-looking planning.

Figure 5. (Color online) High-Level View of the Socrates System
Note. The figure illustrates data ingestion, premodel and data-model processing, optimization, and downstream purchase order generation.

Socrates serves as the final decision-making layer in Chewy’s replenishment ecosystem, integrating outputs from upstream systems—Maestlin, Kepler, and Aristotle—to ensure that PO decisions reflect the most current information.

5.2. Challenges and Complexities

Designing an effective PO optimization model for Chewy’s supply chain requires addressing multiple layers of complexity arising from vendor requirements, internal operational constraints, and external factors. Generated POs must comply with vendor-specific contractual terms, including minimum order quantities (MOQs), order multiples, PO release calendars, truck constraints (by weight, cube, or pallets), vendor capacity limits, SKU availability, and days-of-supply targets. These requirements vary widely across vendors and evolve over time, necessitating a flexible and extensible modeling framework.

In addition to vendor constraints, the model must account for FC-level operational limitations, including inbound, outbound, and storage capacity; regional fulfillment preferences; SKU assortment policies; and safety stock reservations. These constraints differ across the network and change as Chewy’s infrastructure and operating strategy evolve.

From an execution perspective, PO recommendations must be generated on a strict daily cadence using the most recent inventory positions and demand forecasts, without missing downstream PO release deadlines. At the same time, PO decisions must be optimized at the network level rather than independently by FC, enabling demand pooling across regional FCs, particularly for items with high MOQs, while still respecting local capacity and service-level constraints.

5.3. Solution Approach

5.3.1. Network-Level Formulation and Problem Decomposition.

Socrates formulates purchase order generation as a multiperiod, network-level optimization problem. Decision variables represent purchase order quantities at the SKU, FC, truck, and time levels, enabling the model to jointly optimize ordering, allocation, and transportation decisions. The objective function minimizes total system cost, while considering soft and hard constraints imposed by Chewy and its vendor.

Because the full problem is large-scale and combinatorial, Socrates applies a structured decomposition strategy at the vendor level. Large vendors are partitioned into independent SKU groups that can be solved in parallel while preserving key coupling constraints. Prior to optimization, upstream inputs are standardized and transformed into time-indexed demand, inventory, and cost series. Heuristic preprocessing steps, such as truck index generation, fulfillment center allocation balancing, and vendor-specific capacity allocation, are applied to reduce problem dimensionality and improve numerical stability.

5.3.2. Network-Level Optimization.

To stabilize the optimization and prevent degenerate solutions, Socrates first solves a linear inventory projection model that assumes no new orders are placed during the planning horizon. This model simulates the depletion of on-hand inventory using projected fulfillment quantities, producing inventory and service trajectories that are used to generate adaptive constraints limiting overconcentration of inventory orders on a small subset of SKUs when we need to fill trucks with future needs.

The core optimization then introduces binary decision variables to represent truck-building decisions and solves a mixed-integer linear program in a rolling-horizon framework. Each iteration determines the number of trucks to build and the set of SKUs to order for each fulfillment center and time period. It also computes baseline order quantities and updates fulfillment projections based on regular order receipt patterns. The iterative structure allows the model to scale to large assortments while incorporating updated inventory states and demand projections.

Because MOQ and order-multiple constraints introduce integrality at the SKU level, final order quantities are adjusted using a structured rounding procedure. A heuristic truck-loading algorithm assigns SKUs to trucks while respecting weight, cube, pallet, and value constraints. The loading logic dynamically adapts to evolving SKU needs across iterations, ensuring that final purchase orders remain feasible while preserving the economic structure of the optimized solution.

The result is an integrated purchase order plan that aligns ordering, transportation, and allocation decisions, producing cost-efficient outcomes that remain robust under the operational constraints encountered in practice.

6. Replenishment Ecosystem Execution

Kepler, Aristotle, and Socrates form an integrated replenishment ecosystem that translates demand forecasts and safety stock targets into executable purchasing decisions. The underlying optimization minimizes total system cost across the network through four conceptual layers:

  1. Fulfillment and transportation costs, including outbound shipment and processing costs for fulfilling both cycle demand forecasts and safety stock gaps;

  2. Inventory costs, capturing holding costs during the planning horizon, as well as surplus and salvage costs beyond the horizon;

  3. Service penalties, reflecting potential lost sales when demand forecasts or safety stock targets cannot be fully met; and

  4. Operational penalties, pricing deviations from preferred operating conditions such as fulfillment-center capacity overruns, excess weeks-of-supply, shelf-life exposure, and cold-chain storage constraints.

This layered objective structure enables controlled and economically interpretable trade-offs among service levels, cost efficiency, and operational risk.

Fulfillment decisions are constrained by available on-hand inventory at each FC. For each item and period, total fulfillment of cycle demand and safety stock gaps cannot exceed available inventory:

∑k,mFulfilli,FC,k,tm,Cycle+∑k,mFulfilli,FC,k,tm,SSGap≤OnHandi,FC,t.

Cycle demand is balanced at the regional level, with explicit slack variables capturing unmet demand:

∑FC,mFulfilli,FC,k,tm,Cycle=GeoDemandFcsti,k,t−GeoFcstGapi,k,t.

Beyond the representative constraints shown above, the full formulation incorporates additional operational and policy-driven constraints, including FC-cluster allocation limits, vendor distribution center eligibility rules, minimum order quantities, truck and unit caps over rolling time windows, over-ordering guardrails, new-item launch protections, and fresh-and-frozen storage capacity constraints.

Because MOQ and order-multiple constraints introduce integrality at the SKU level, final order quantities are refined using a structured rounding procedure. A heuristic truck-loading algorithm then assigns SKUs to trucks while respecting weight, cube, pallet, and value constraints. This loading logic adapts dynamically to evolving SKU needs across iterations, ensuring that final purchase orders remain operationally feasible, while preserving the economic structure of the optimized solution.

The result is an integrated purchase order plan that jointly aligns ordering, transportation, and allocation decisions, producing cost-efficient outcomes that remain robust under the complex operational constraints encountered in practice.

6.1. Engineering Platform

We created an engineering platform that enables science models to scale from standalone optimizations into a unified, enterprise-wide system. Shared data pipelines, standardized input and output contracts, deterministic validation, and centralized orchestration ensure that multiple large-scale models execute reliably on consistent inputs within fixed production windows.

By partitioning data and computation across vendors, SKUs, and fulfillment centers, the platform supports horizontal scaling as the catalog and network grow, avoiding model-specific infrastructure or duplicated logic. New vendors, SKUs, and facilities are onboarded through configuration and data ingestion rather than code changes, allowing the science models to scale continuously while remaining embedded in daily operations.

6.2. Replenishment Ecosystem Rollout

Successfully deploying a science-driven replenishment suite required overcoming skepticism toward model-generated decisions and aligning teams with diverse operational priorities. We adopted a phased rollout strategy, combining controlled deployments with transparent Key Performance Indicator dashboards that clearly link model recommendations to measurable business outcomes.

Planner trust was further reinforced through targeted training and explainability tools that provided visibility into model behavior and reduced reliance on manual overrides. Close partnership with operations leadership ensured that planner incentives aligned with optimization objectives, and structured feedback forums allowed user input to directly inform ongoing model refinement. Together, these efforts enabled broad adoption of the replenishment system.

6.3. Analytical Monitoring

Analytical monitoring plays a critical role in preventing degradation of solution quality as supply chain dynamics evolve. Rather than treating model outputs as static, the replenishment ecosystem continuously tracks key signals to detect structural shifts that warrant model refinement (Figure 6).

Figure 6. Analytical Monitoring as a Closed-Loop Feedback Process
Note. In this closed-loop feedback process, operational signals identify structural shifts that drive targeted model enhancements and continuous performance improvement.

One example involved a sustained increase in safety stock targets driven by rising lead-time delays. Monitoring revealed that these delays were not caused by vendor transportation variability, but by congestion and capacity constraints within Chewy’s fulfillment centers. In response, we decomposed actual lead time into transportation and inbound components and applied a smoothing procedure to the inbound component, isolating operational noise from safety stock calculations and preventing a feedback loop of escalating inventory. In another case, monitoring identified systematically longer inbound receipt times and increased inbound cost for nonpalletized orders relative to full-pallet orders. This insight motivated the development of SKU-level pallet ordering logic, reducing inbound handling complexity and lowering total system cost.

These examples illustrate how analytical monitoring serves not only as a safeguard, but also as a feedback mechanism that informs targeted model enhancements, ensuring that the replenishment suite remains robust as operating conditions change.

6.4. Benefits of a Modular Replenishment Architecture

The modular design of Chewy’s replenishment ecosystem proved critical for aligning analytics with evolving operational constraints and business objectives. This flexibility enables Chewy to address a wide range of business use cases without redesigning core logic. It also allows Chewy to incorporate fulfillment center capacity limits, including cubic space and item-level bin-type constraints, while preventing facility overloads and enabling opportunistic placement of inventory in locations with available capacity.

Modularity also enables specialized modeling for distinct business contexts. Some vendor relationships require differentiated treatment, such as parent vendors operating multiple warehouses with varying cost structures, service characteristics, and proximity to fulfillment centers. The ecosystem allows alternative decision models to be swapped in for these cases. For instance, in Chewy’s equine and specialty feeds vertical, reinforcement learning-based logic is used in place of the optimization model, without disrupting the surrounding replenishment layers. This ability to tailor decision logic by context proved critical as Chewy expanded into new categories and supply chains.

Finally, the modular architecture supports changing business objectives over time. Mature business lines may prioritize cost minimization or free cash flow, whereas newer verticals emphasize growth or service expansion. Because objectives, constraints, and trade-offs are parameterized rather than hard-coded, the replenishment ecosystem can adapt optimization goals without redesigning core models. Together, these capabilities ensure that replenishment remains an enabling capability for growth.

7. Results and Impact

7.1. Causal Attribution and Evaluation Framework

To assess the impact of Chewy’s new replenishment ecosystem, we conducted a causal impact analysis leveraging the system’s staged rollout across vendors. Vendors were onboarded in phases; vendors on the new replenishment suite formed the treatment group, while vendors still operating under the legacy system served as the control group.

A simple before-and-after comparison was insufficient in this setting, because operational performance can be influenced by seasonality, demand shifts, or other operational improvements. To isolate the effect of the new replenishment suite, we employed a difference-in-differences (DiD) framework that compares changes in outcomes for treated vendors relative to control vendors over the same periods. We further strengthened the comparison by matching vendors and SKUs on key characteristics and including SKU-level and day-level fixed effects, which control for time-invariant effects. Together, these design choices allow us to attribute observed changes in performance directly to the rollout of the new replenishment suite, rather than to any internal or external factors.

7.2. Quantitative Operational Impact

To evaluate the operational impact of the new replenishment ecosystem, we track a focused set of replenishment metrics that directly reflect inventory placement and fulfillment efficiency: Optimal Placement measures the percentage of orders fulfilled from the lowest-cost fulfillment center, Box Complete measures the share of customer orders shipped in a single package, and Shipping Distance captures the average miles traveled per package. Together, these metrics quantify how effectively inventory is positioned to minimize cost while maintaining service quality.

Since the initial rollout in May 2023, vendors have been onboarded in phases, with virtually all core vendors migrated by late 2025. When aggregated across all vendors, the replenishment ecosystem delivered meaningful improvements in Optimal Placement and Box Complete, along with a substantial reduction in Shipping Distance. In parallel, the incremental per-package cost associated with unavailable inventory declined by more than half, which is measured by comparing the actual shipping cost against the counterfactual cost of shipping the same package from the lowest-cost FC relative to the customer’s address.

7.3. Financial Impact

To translate these operational improvements into financial outcomes, we estimated the relationship between inventory placement and fulfillment cost using a panel regression framework, linking improvements in Optimal Placement to reductions in cost per order. In addition, we used a DiD analysis to quantify changes in inventory capital costs associated with higher availability and safety stock adjustments.

We estimate that, at full scale, the improvements in inventory placement generated by the new replenishment suite have resulted in several million dollars in annual fulfillment cost savings. Although these savings are partially offset by increased inventory capital costs associated with higher availability, the ecosystem delivers net annual savings.

In pet e-commerce, where profit margins are relatively thin, savings of this magnitude are highly significant. Smarter inventory placement unlocked more than three million additional customer orders per year to ship from the closest FC, reducing average shipping distance by 11 miles and enabling the net annual savings described above.

7.4. Organizational Impact

Beyond direct financial impact, the replenishment suite has delivered meaningful qualitative and organizational benefits. The system provides vendors with longer-range purchasing signals, improving their production planning and reducing order volatility. At the same time, the automation and reliability of the new replenishment workflow enabled Chewy’s in-stock management organization to reduce the number of POs manually touched (edited, canceled, or created manually) by 40%, which allowed for a reallocation of resources to strategic contract negotiations and assortment expansion. The same forward-looking signals are now used by downstream teams for inbound labor and transportation planning, extending the value of the replenishment ecosystem beyond inventory decisions alone.

8. Conclusion

8.1. Transferability

Although developed for Chewy’s e-commerce supply chain, the replenishment ecosystem presented in this paper is broadly transferable to other organizations operating at scale under uncertainty. Many industries, including omnichannel retail, healthcare distribution, spare-parts logistics, and subscription-based businesses, face similar challenges related to nonnormal demand and lead-time variability, distorted historical signals caused by operational constraints, split-shipment trade-offs, frequent new product introductions, heterogeneous supplier behavior, and multinode fulfillment networks where placement decisions directly affect cost and service.

The core transferable contribution is the system-level design of replenishment, which decomposes the problem into coordinated decision layers for demand allocation, uncertainty modeling, and purchase execution, rather than relying on a single monolithic model. Each component can be adapted independently to different business contexts while preserving the overall decision flow. Although specific cost structures, constraints, and objectives will vary across organizations, the replenishment ecosystem described here offers a general blueprint for systematically transforming replenishment.

8.2. Summary

This paper demonstrates how Chewy transformed replenishment by rebuilding it from the ground up to address the realities of large-scale e-commerce. Legacy replenishment methods and general-purpose solutions could not accommodate Chewy’s unique challenges and future growth.

We designed a science-driven replenishment ecosystem that integrates demand allocation, uncertainty modeling, and purchase order creation into a coordinated decision framework. By rebuilding replenishment as an integrated ecosystem rather than enhancing individual components, Chewy enabled improvements to compound across the supply chain, translating operational gains into sustained financial impact. This work highlights the importance of system-level design for modern supply chains and provides a blueprint for applying analytics as a core operating capability.

Acknowledgments

We thank the many research scientists, engineers, product managers, and cross-functional partners whose expertise, collaboration, and dedication were instrumental in the development, deployment, and continued evolution of this replenishment ecosystem. We extend special thanks to Tim Foley, our executive sponsor, for his leadership, guidance, and continued support throughout this initiative.

References

  • Chen ZL, Hall NG (2022) Supply Chain Scheduling (Springer, Cham, Switzerland).Google Scholar
  • Ghasemi A, Farajzadeh F, Heavey C, Fowler J, Papadopoulos CT (2024) Simulation optimization applied to production scheduling in the era of Industry 4.0: A review and future roadmap. J. Indust. Inform. Integration 39:100599.Google Scholar
  • Giuffrida N, Fajardo-Calderin J, Masegosa AD, Werner F, Steudter M, Pilla F (2022) Optimization and machine learning applied to last-mile logistics: A review. Sustainability 14(9):5329.Google Scholar
  • IBISWorld (2018) Pet stores in the US. Accessed March 11, 2026, https://www.ibisworld.com/resources/documents/Pet-Stores-in-the-US-iExpert-Report.pdf.Google Scholar
  • Lee J, Ko C, Moon I (2024) E-commerce supply chain network design using on-demand warehousing system under uncertainty. Internat. J. Production Res. 62(5):1901–1927.Google Scholar
  • Liu J, Chen W, Yang J, Xiong H, Chen C (2022) Iterative prediction-and-optimization for e-logistics distribution network design. INFORMS J. Comput. 34(2):769–789.Link, Google Scholar
  • Qi M, Shi Y, Qi Y, Ma C, Yuan R, Wu D, Shen ZJ (2023) A practical end-to-end inventory management model with deep learning. Management Sci. 69(2):759–773.Link, Google Scholar
  • Shestserau A (2024) Enhancing business growth through improvements in customer service quality. Univ. Library Bus. Econom. 1(2):41–47.Google Scholar
  • Weinstein AT, Alegria C, Araujo D, Ramirez Carvallo D, Helena Cubides L, Salinas A (2024) The leader of the pack: How Chewy became the alpha figure. J. Bus. Strategy 45(4):282–291.Google Scholar

Joshua Q. Hale is a Staff Research Scientist in Supply Chain Replenishment at Chewy, specializing in operations research and optimization. He holds a PhD in Industrial and Systems Engineering from Georgia Tech and a BS from Auburn University. His experience spans supply chain planning, analytics strategy, inventory optimization, and manufacturing operations. He has published research on optimization and simulation in engineering journals and conference proceedings.

Erdem Eskigun leads the inventory technology and science organization at Chewy. He has over 20 years of industry experience applying operations research and data-driven technologies to solve complex business problems. Prior to joining Chewy, he held positions at T-Mobile, Amazon, and other leading companies. He received his PhD in industrial engineering from Purdue University.

Ratna Ramani is Director of Partner Fulfillment and Marketplace Technology at Chewy, leading engineering for its dropship platform and third-party marketplace. She built Chewy’s supplier connectivity platform and led technology supporting its transition to in-house replenishment. Previously, she was a Senior Consulting Manager at ToolsGroup, advising Fortune 500 companies on supply chain transformation. She holds an MS in Industrial Engineering from Northeastern University.

Aaron Greene is a director of technical product management at Chewy, where he leads a team of product and analytics professionals responsible for replenishment, forecasting, and inventory optimization technology. He and his team owned the requirements, roadmap, rollout, and business intelligence capabilities for the replenishment initiative described in this paper. He holds a BS in economics from the University of Maryland.

Sudesh Agrawal is a research scientist in inventory science and technology at Chewy. During more than three years at Chewy, he has led or supported the development of several optimization models to support replenishment decisions. He holds a PhD from the Operations Research and Industrial Engineering graduate program at The University of Texas at Austin.

Shiyang Huang is a staff research scientist at Chewy. During his five-year tenure, he has led the development of Socrates, the flagship purchase order planning tool of Chewy’s Inventory Science and Technology organization. He has extensive experience in the retail industry and supply chain optimization and holds a PhD in industrial engineering from Iowa State University.

Victor Estevez is a senior director of software engineering at Chewy. He has over 20 years of experience in software engineering, specializing in distributed systems, inventory management, and e-commerce technology. Prior to joining Chewy, he held engineering leadership positions at Amazon and Blue Apron, where he developed large-scale inventory management and retail technology platforms. He received his BS in computer engineering from the University of Florida.