Instant Pet Supplies Delivery: Cost Models and Scheduling in Practice

    Instant delivery of pet supplies is quickly becoming a high-frequency urban category, but profitability does not come from simply adding more vehicles or riders. It depends on making costs calculable, matching vehicles to the load, keeping dispatch under control, and validating results with data. This article lays out a per-order cost model, a quantitative framework for vehicle selection, time-window-constrained routing, energy and charging management for electric vehicles, and a closed-loop data approach. Operations teams can use these methods to turn "running more trips" into "stable margins."

    Why Instant Pet Supplies Delivery Is Hard

    Pet supplies are becoming a high-frequency category in urban instant delivery. Products like cat litter, staple food, freeze-dried treats, and pet medication need to be restocked quickly, carry tight delivery-time expectations, and come in complex SKUs. Orders tend to cluster into two windows: mornings, driven by rigid needs such as feeding and cat-litter restocking, and evenings, driven by after-work impulse purchases. These orders test not only the flexibility of capacity but also the ability to control cost.

    Pet-supplies delivery usually has three characteristics:

    • Heavy goods: A single bag of bentonite cat litter can weigh 5 to 10 kilograms, and the payload limit is reached quickly when loading consecutively.
    • Bulky volume: Staple food and cat litter are often sold by the case and easily fill up cargo space.
    • Tight time windows: Some products, such as pet medication, prescription food, or chilled items, have stricter requirements for delivery time and transport conditions.

    Delivery teams have traditionally relied on two rules of thumb. One is “bigger vehicles are always better,” trying to fill up a vehicle and deliver everything in one trip, which raises vehicle purchase cost, parking difficulty, and empty mileage. The other is “more people are always better,” adding couriers to shorten delivery time, but the marginal labor cost quickly erodes profit.

    Both approaches share the same problem: decisions rest on intuition, with no quantitative analysis of cost structure or operational data. In fact, this scenario is essentially a resource-allocation problem for instant delivery with time windows and capacity constraints, involving at least four types of variables:

    • Orders: category, volume, weight, and time-window requirements.
    • Vehicles: cargo volume, effective payload, energy consumption, range, and charging conditions.
    • Routes: stop sequence, mileage, and travel time.
    • Riders or drivers: online hours, available time, and service duration per order.

    These variables are coupled. A local optimum in any single link can create waste across the whole system, so a unified modeling and optimization approach is required.

    Cost Breakdown: Calculating the Real Cost per Order

    Operators most often focus on fuel or electricity cost per kilometer, but what truly determines profitability is the full cost allocated to each completed order.

    The per-order delivery cost can be broken down as:

    1. Per-order delivery cost = (daily vehicle amortization + daily driver cost + daily energy cost + daily maintenance overhead) / daily effective completed orders

    Where:

    1. Daily energy cost ≈ daily mileage × energy consumption per 100 km / 100 × energy unit price

    Daily maintenance overhead includes tires, servicing, insurance, and other expenses that fall under a vehicle’s day-to-day operation.

    This formula reveals the key point: cost is ultimately spread across “effectively completed orders.” An empty run or a repeated trip increases mileage without increasing order count, directly pushing up the per-order cost. Conversely, if a trip can carry more orders and fill the cargo space more fully, the per-order cost drops significantly. So the core of cost reduction is not blindly cutting mileage, but raising the “effective output per unit of mileage.”

    For optimization priority, a sensitivity analysis is useful:

    • Loading rate: If the loading rate rises from 60% to 85%, then, assuming homogeneous orders loaded by volume with no change in trips and no violation of additional mileage or time-window constraints, the theoretical upper limit of orders per trip increases by about 42%. This is a theoretical ceiling estimate; in practice it must still be checked against weight, loading and unloading time, route feasibility, and promised delivery times.
    • Daily effective orders: For every 10% decline, fixed costs such as vehicle amortization and driver cost are spread across fewer orders, and the per-order cost rises noticeably.
    • Energy consumption per unit distance: A 15% increase in consumption usually accounts for only part of total cost, so the impact is relatively limited, but it still needs to be included in the correction model.
    • Energy cost per unit distance: If energy cost per kilometer differs by 0.1 yuan, then at 120 km per day the daily difference is 12 yuan, and at 26 operating days per month the monthly difference exceeds 300 yuan. Energy unit price and consumption level are therefore variables worth prioritizing in high-frequency operations.

    In real-world use of electric vehicles, high-energy-density batteries can support longer range and reduce the interruption time caused by mid-route charging; combined with energy-recovery strategies, they may also lower energy consumption per unit distance in stop-and-go city traffic. But consumption and charging effectiveness are affected by many factors, including vehicle model, payload, temperature, and road conditions, so they cannot be generalized and still need to be calibrated with real operational data.

    Loading rate and empty-run rate are two frequently underestimated metrics:

    1. Loading rate (volume) = actual loaded volume / available cargo volume × 100%
    2. Loading rate (weight) = actual loaded weight / effective payload × 100%
    3. Empty-run rate = empty mileage / total mileage × 100%

    Heavy goods like cat litter often “hit the weight limit before the vehicle is full,” while light, bulky goods like staple food easily “run out of space before reaching the weight limit.” Loading rate should therefore be monitored by both volume and weight, and dispatch should follow whichever constraint reaches its limit first.

    Ideally, delivery routes should form a “multi-stop chain” loop: one vehicle serves multiple orders within the same area in sequence, rather than a “one trip, one delivery, back to the warehouse to reload” pattern. The latter not only means high empty mileage but also wastes large amounts of driver time on the road.

    Vehicle Selection: Replacing Intuition with Quantitative Evaluation

    Vehicle selection directly affects loading rate, range, and charging efficiency. It is an input to the cost model, not merely a procurement decision.

    When evaluating vehicles, consider at least the following dimensions:

    • Cargo volume and opening size: Determines how many cases can fit and whether long items can be accommodated.
    • Effective payload: Sets the weight limit per trip.
    • Energy consumption: Consumption per 100 km, plus the extra draw from refrigeration units and heating when switched on.
    • Range and charging: Full-charge range, charging time, and whether charging supports “opportunistic top-ups” between operational gaps.
    • Urban adaptability: Body size, turning radius, traffic restrictions, and parking convenience.
    • Acquisition and usage cost: Purchase price, energy cost, maintenance cost, insurance, and other total-cost-of-ownership factors.

    To reduce subjective judgment, build an evaluation matrix. The example below scores on a 1-to-5 scale, where 1 means clearly inadequate and 5 means excellent; weights can be adjusted to the business stage:

    Dimension Weight Candidate A Candidate B Candidate C
    Cargo volume & opening 20% 4 3 5
    Effective payload 15% 3 4 3
    Energy consumption 15% 5 3 4
    Range & charging 15% 4 3 4
    Urban adaptability 15% 4 5 3
    Total cost of ownership 20% 3 4 4
    Weighted total 100% 3.80 3.65 3.90

    Taking Candidate A as an example, its weighted total is calculated as:

    1. 4 × 20% + 3 × 15% + 5 × 15% + 4 × 15% + 4 × 15% + 3 × 20% = 3.80

    Similarly, Candidate B scores 3.65 and Candidate C scores 3.90. The scores in this table only demonstrate the scoring method; real selection should replace them with actual test results, pilot-operation data, and cost estimates.

    Looking only at purchase price leads to one-sided conclusions. A more reasonable approach is to combine all expenditures over the usage period:

    1. Total cost of ownership = acquisition cost + Σ(energy cost) + Σ(maintenance cost) + residual value loss

    Because electric vehicles usually have a lower energy cost than comparable fuel vehicles, the greater the mileage, the more the energy-cost gap is amplified, and the more pronounced the total-cost-of-ownership advantage. Conversely, if daily mileage is very low, this advantage is heavily diluted. Vehicle selection must therefore match actual operational intensity; it is not safe to assume an electric vehicle is always the better choice.

    Dispatch Optimization: Making Every Kilometer Count

    Vehicle selection and the cost model answer “what vehicle to use,” while the dispatch algorithm answers “how to run it.” The former sets the ceiling; the latter determines whether that ceiling can actually be reached.

    A delivery task can be abstracted as an extended form of the vehicle routing problem, layering three types of constraints onto the base model:

    • Capacity constraint: A vehicle’s load does not exceed cargo volume or effective payload.
    • Time-window constraint: Every order has an acceptable delivery window; being late not only hurts customer experience but can also leave a pet without food or delay medication.
    • Range constraint: Electric vehicles need charging stops planned into the route, and charging time must be counted in the total duration.

    The mathematical model can be abstracted as:

    1. Minimize: travel cost + vehicle usage cost + lateness penalty
    2. Subject to:
    3. 1. Each order is visited exactly once
    4. 2. Per-vehicle load ≤ cargo volume, and ≤ effective payload
    5. 3. Each order completed within [earliest deliverable time, latest deliverable time]
    6. 4. Remaining battery ≥ safety threshold when the vehicle returns to its origin
    7. 5. Energy consumption between any two adjacent nodes ≤ current remaining charge

    This is a classic NP-hard problem. When the order volume is small, an exact solution can be obtained with a general-purpose solver; but in scenarios with large order volumes requiring real-time response, a more practical approach is a combination of “heuristics + local search.” The following provides the algorithmic idea and a pseudocode framework; functions such as clustering, savings-based merging, and local search need to be implemented according to actual business needs:

    1. def plan_delivery(orders, vehicles, depot, params):
    2. # Example input data structures:
    3. # orders: List[dict] with fields order_id, volume, weight, earliest, latest, service_time
    4. # vehicles: Dict[vehicle_id, dict] with fields volume_capacity, weight_capacity,
    5. # battery_capacity, energy_consumption, safety_soc
    6. # params: speed, energy correction factors, lateness penalty, max iterations, etc.
    7. # 1. Geographic clustering: partition orders into zones based on order density and time windows
    8. clusters = cluster_by_density_and_timewindow(orders, params)
    9. # 2. Initial solution: progressively merge routes using a savings approach.
    10. # The smaller the mileage increase from merging, the higher the merge priority.
    11. routes = savings_merge(clusters, vehicles, depot)
    12. for route in routes:
    13. # 3. Local improvement: swap or move orders to reduce travel cost or lateness penalty
    14. route = local_search(
    15. route,
    16. operators=['swap', 'relocate'],
    17. max_iter=params['max_iter']
    18. )
    19. # 4. Range check: insert charging nodes into the route when the battery is insufficient
    20. route = ensure_energy(
    21. route,
    22. vehicles[route.vehicle_id],
    23. params['safety_soc']
    24. )
    25. return routes

    In terms of complexity, if the order volume is N, clustering can be treated as roughly O(N log N), while local search may need to evaluate a large number of neighborhood solutions per iteration, approaching O(N²) under naive enumeration. With K iterations, the whole process can be approximated as O(K × N²). In practice, limit the number of candidate orders, control the iteration count, and introduce pruning rules to avoid computation delays during peak hours.

    On top of this, two further optimizations are possible:

    • Zone pre-allocation: For fixed zones and fixed drivers, routes can be pre-assigned in advance to reduce on-site decision time, but care must be taken to avoid uneven hot and cold zones that cause large order-count disparities between areas.
    • Dynamic insertion: When a new order arrives, first try to insert it into an existing route rather than opening a new trip. Choose insertion only when the resulting cost increase is minimal. The cost increase may include extra mileage, energy, lateness penalty, driver waiting time, and charging cost.

    Instant-delivery orders show clear time-of-day fluctuation. The dispatch system needs to monitor in real time:

    • The number of orders awaiting assignment;
    • The remaining capacity and remaining range of each vehicle;
    • The lateness risk currently incurred.

    When capacity is predicted to fall short, the system can proactively trigger “staggered dispatch” or “appointment-slot guidance,” steering non-urgent orders to off-peak windows to avoid capacity being overwhelmed at peak times.

    Energy and Charging Management: Fine-Grained Operations for Electric Vehicles

    Electric vehicles add one dimension to dispatch compared with fuel vehicles: energy management. Ignoring it turns range anxiety directly into lost delivery time.

    Charging does not need to wait until the battery is nearly depleted. A more reasonable approach is “opportunistic charging” aligned with order valleys:

    • Midday off-peak: Charge at the warehouse or a centralized parking point.
    • Below the safety threshold: The system automatically alerts the driver and prioritizes routes near charging facilities.
    • During charging: The dispatch system automatically reassigns waiting orders to other vehicles to prevent a vehicle from sitting idle.

    Energy consumption is not a fixed value. Real operations should consider at least three correction factors:

    • Temperature: In cold environments, battery activity drops and heating draws more power, so actual consumption is noticeably higher than the rated value.
    • Payload: Higher loading rates raise energy consumption per unit distance.
    • Road conditions: Congested, stop-and-go segments typically consume more energy than free-flowing ones.

    A correction model can be built as:

    1. Actual consumption per 100 km = nominal consumption × (1 + α × temperature correction + β × payload correction + γ × road-condition correction)

    The three coefficients α, β, and γ must be derived by regressing historical operational data. Values can differ greatly across cities and seasons and cannot be copied directly.

    Battery health and capacity-degradation management also need to be designed in advance. Batteries kept in prolonged high-frequency charge-discharge or deep-discharge states degrade faster. Recommended practices:

    • Keep the state of charge within a reasonable band, such as 20% to 90%, avoiding sustained full charge and full discharge.
    • Periodically record battery health to build a degradation trend curve.
    • Set capacity-degradation alert thresholds, for example triggering an alert when capacity falls below 80% of rated capacity, or when degradation exceeds 5% for two consecutive months.
    • Factor battery health into vehicle evaluation and replacement decisions, rather than looking only at acquisition cost.

    Data Closed Loop: From Intuition to Verification

    Every model above ultimately has to be validated and iterated through a data closed loop.

    The data to collect should include at least:

    • Order side: order time, category, volume, weight, and promised delivery time.
    • Trajectory side: vehicle location, mileage, energy records, and stops.
    • Vehicle side: battery status, charging records, and maintenance records.
    • Settlement side: per-order revenue, driver cost, and energy cost.

    In the cloud, a data foundation can be built using general cloud services offered by mainstream public cloud providers:

    • Object storage: Store order snapshots, trajectory files, and archived reports.
    • Message queue: Buffer order surges and asynchronously decouple dispatch requests.
    • Container platform: Host dispatch services and route computation, scaling elastically on demand.
    • Logging service: Centrally collect dispatch decision logs for post-incident review.
    • Monitoring and alerting: Set threshold alerts on metrics such as lateness rate, empty-run rate, and low-battery vehicles.

    Key metrics should be turned into visual dashboards and tracked daily and weekly:

    • Per-order delivery cost;
    • On-time rate;
    • Average loading rate;
    • Empty-run rate;
    • Average effective orders per vehicle per day;
    • Timely charging rate for low-battery vehicles.

    For adjustments to dispatch strategy, such as whether to enable dynamic insertion, whether to change zone boundaries, or whether to alter the charging strategy, adopt a controlled experiment with small-scale canary rollouts. Confirm the effect with data before full-scale rollout, avoiding a one-size-fits-all change that causes short-term volatility.

    Implementation Roadmap and Key Risks: How to Roll Out in Stages

    Phase Goal Key Actions
    Phase 1: Build the foundation Establish the cost baseline Unify data-collection definitions and get the per-order cost model running
    Phase 2: Optimize Improve loading and timeliness Launch the dispatch algorithm, promote multi-stop chains, and reduce empty runs
    Phase 3: Refine Continuous optimization Dynamic insertion, charging coordination, controlled experiments, and metric iteration

    Common risks also need to be identified early:

    • Model distortion: A large gap between rated and actual energy consumption can invalidate scheduling and charging plans.
    • Missing constraints: Ignoring time-window or range constraints during dispatch produces plans that cannot be executed.
    • Fragmented metrics: Looking only at order count or only at mileage causes local optima but overall losses.
    • Compliance issues: When pet medication or special prescription food is involved, the transport stage may need to meet stricter requirements for temperature control, delivery acceptance, and compliance, which must be confirmed in advance.

    For high-frequency, time-sensitive instant delivery of pet supplies, improved profitability does not depend on any single breakthrough. It comes from the systematized capability of “calculable cost, matched vehicles, controllable dispatch, and verifiable data.” First use the per-order cost model to get the numbers clear and identify cost-reduction directions; then use quantitative evaluation to select vehicles that match operational intensity; then use dispatch algorithms to maximize loading rate and route efficiency; and finally use the data closed loop to continuously calibrate models and iterate strategy. Once this system is truly running, the delivery team no longer compromises between “running a few more trips” and “earning a little less.” Instead, with the same capacity, it can steadily serve more orders and create more profit.