BakedBoston

CHOOSE AN EXPERIMENT

Start with a complete saved example

This reproducible five-day study is ready to explore immediately.

ACADEMIC ROUTING LAB

See every recommendation. Then see what the driver selected.

Replay 5 synthetic service days. At every decision time, BakedBoston generates feasible routes, solves simultaneous driver conflicts with Gurobi, builds fair conflict-free menus, and selects the highest-scoring recommendation shown to each driver.

INTERACTIVE REPLAY

Walk through the rolling-horizon solve

Gurobi 13.0.2 · optimal

SOLVE AT 1:24 PM

2 drivers enter together

The model considers every feasible route jointly. Each bakery pickup can appear in only one driver's menu, and every feasible driver gets one option before anyone gets a second.

12candidates
2matches
0.8 mssolve time

DRIVER REQUEST

Driver 2 entered at 1:24 PM

Soft preferences
REQUESTED ROUTE INTERVAL2:39 PM3:39 PM60 minutes signaled
REQUESTED ORIGINZIP 02118 · within 2 milesBakery distance beyond the orange area is normalized across feasible routes
PREFERRED DESTINATIONZIP 02130 · within 2 milesPantry distance beyond the green area is normalized across feasible routes

These preferences guide ranking rather than feasibility. BakedBoston may still recommend a route outside the interval or radii when it is the strongest available option.

ROUTE MAP

All routes shown to this driver

Dashed lines are alternatives. The solid orange line is the highest-scoring route selected by the driver.

ZIP 02118 · requested origin · 2 miZIP 02130 · preferred destination · 2 miZIP 02116ZIP 02113ZIP 02119ZIP 02138ZIP 02143ZIP 02130ZIP 02135ZIP 02129ZIP 02215ZIP 02108ZIP 02122ZIP 02134ZIP 02140ZIP 02128ZIP 02130ZIP 02135ZIP 02129ZIP 02120123🚗🥖🥫Jamaica Plain Pastry CoJamaica Plain Community Fridge🚗🥖🥫🚗🥖🥫

ROUTES RECOMMENDED TO DRIVER 2

Ranked from highest to lowest expected impact

These are alternative choices for one delivery. Selecting one does not count the remaining choices as rejected offers.

Top 3
#1
🚗 Driver 2🥖 Jamaica Plain Pastry Co🥫 Jamaica Plain Community Fridge
Planned departure in 122 min · leave 3:25 PMLogged in 1:24 PM · requested 2:39 PM–3:39 PM
Pickup 3:37 PMPantry 3:45 PMFinish 3:50 PM14.4 drive min11 min outside · 18.3% of 60-min requestStart ZIP miss 1.61 mi · 100.0% normalizedDestination ZIP miss 0.00 mi · 0.0% normalizedSpatial penalty input 50.0%Priority 0.50Net direct benefit 1.97 kg CO₂eFood saved 11.7 kg = bakery food × 83.2% usability × 63.8% pantry distributionBakery-unusable residual 3.7 kg · 0.49 kg CO₂e under the bakery mixPantry-undistributed residual 6.6 kg · 0.38 kg CO₂ePantry-undistributed food: 37% landfill / 63% pig farm / 0% compost
EXPECTED IMPACT23.79SELECTED · HIGHEST
#2
🚗 Driver 2🥖 Jamaica Plain Pastry Co🥫 Mission Hill Open Shelf
Planned departure in 133 min · leave 3:36 PMLogged in 1:24 PM · requested 2:39 PM–3:39 PM
Pickup 3:49 PMPantry 4:00 PMFinish 4:05 PM18.2 drive min26 min outside · 43.3% of 60-min requestStart ZIP miss 1.61 mi · 100.0% normalizedDestination ZIP miss 0.00 mi · 0.0% normalizedSpatial penalty input 50.0%Priority 0.50Net direct benefit 1.88 kg CO₂eFood saved 14.8 kg = bakery food × 83.2% usability × 80.8% pantry distributionBakery-unusable residual 3.7 kg · 0.49 kg CO₂e under the bakery mixPantry-undistributed residual 3.5 kg · 0.46 kg CO₂ePantry-undistributed food: 52% landfill / 48% pig farm / 0% compost
EXPECTED IMPACT14.17
#3
🚗 Driver 2🥖 Jamaica Plain Pastry Co🥫 Downtown Community Shelf
Planned departure in 139 min · leave 3:43 PMLogged in 1:24 PM · requested 2:39 PM–3:39 PM
Pickup 3:55 PMPantry 4:15 PMFinish 4:20 PM26.7 drive min41 min outside · 68.3% of 60-min requestStart ZIP miss 1.61 mi · 100.0% normalizedDestination ZIP miss 2.32 mi · 100.0% normalizedSpatial penalty input 100.0%Priority 0.50Net direct benefit 1.92 kg CO₂eFood saved 13.0 kg = bakery food × 83.2% usability × 70.7% pantry distributionBakery-unusable residual 3.7 kg · 0.49 kg CO₂e under the bakery mixPantry-undistributed residual 5.4 kg · 0.39 kg CO₂ePantry-undistributed food: 40% landfill / 60% pig farm / 0% compost
EXPECTED IMPACT6.47

DRIVER SELECTION

Jamaica Plain Pastry CoJamaica Plain Community Fridge

Rank #1 was selected because its acceptance-adjusted expected-impact score of 23.79 is the highest among this driver's conflict-free recommendations. Pantry destinations may repeat across drivers, but bakery pickups cannot. The other recommendations remain unselected alternatives—not four additional trips that the driver rejected.

MODEL COMPARISON

One illustrative scenario, four different formulations

All four models receive the same 5-day surplus, pantry, driver, timing, and daily food draws.

Shared events and feasibility; different decision inputs.

BakedBoston balances participation, food, fairness, environment, and driver fit. Nair is distance-first. Xue–Zou is direct-emissions-first. Horner optimizes personalized menus under stochastic driver willingness before making a recourse assignment. Every selected route is then measured by one shared evaluator.

Models compared4Seed 2033 · identical events

SIX NON-DUPLICATED OUTCOME PILLARS

Balanced Total Impact

A post-hoc communication index that gives equal weight to six non-duplicated outcome pillars. Each pillar is scored from 0 to 100 relative to the best policy in this exact scenario.

Highest balanced impactBakedBoston Gurobi MIP95.7 / 100 in this scenario
BEST BALANCED RESULT

BakedBoston Gurobi MIP

95.7/100
Completed service100.0
Food recovery100.0
Environmental benefit90.3
Distribution equity100.0
Volunteer fit100.0
Route efficiency83.8
TOTAL IMPACT

Nair et al. distance-first adaptation

92.7/100
Completed service100.0
Food recovery97.1
Environmental benefit82.7
Distribution equity81.2
Volunteer fit95.3
Route efficiency100.0
TOTAL IMPACT

Xue–Zou Total-Curb adaptation

83.1/100
Completed service100.0
Food recovery95.8
Environmental benefit100.0
Distribution equity63.5
Volunteer fit80.8
Route efficiency58.2
TOTAL IMPACT

Horner et al. stochastic-menu adaptation

90.5/100
Completed service100.0
Food recovery97.3
Environmental benefit80.9
Distribution equity85.5
Volunteer fit93.0
Route efficiency86.6

This scenario-relative index is not used by any optimizer, is not an externally validated social-impact measure, and can change when the scenario or comparison set changes. The underlying physical and fairness metrics remain the auditable result.

OPTIMIZATION POLICY

BakedBoston Gurobi MIP

Maximizes one acceptance-adjusted expected-impact objective across simultaneous drivers, balancing food, fairness, environment, pantry priority, and driver fit.

Objective: Maximize the normalized food, fairness, environmental, pantry-priority, and driver-fit score after weighting route contributions by modeled acceptance.

Driver selection: The driver chooses recommendation rank 1, the highest-scoring route in the conflict-free menu produced after the joint assignment.

COMPARISON POLICY

Nair et al. distance-first adaptation

A minimal volunteer-route adaptation of the 2018 periodic unpaired pickup-and-delivery model: protect service first, then minimize miles.

Objective: Maximize assigned food-ready pickups, then minimize total route distance.

Driver selection: The model assigns one route to a driver; that assigned route is recorded as the driver's selection.

Not used to choose its routes: soft requested-time and ZIP preferences, acceptance probability, pantry fairness and priority, food-distribution fraction, CO2e.

COMPARISON POLICY

Xue–Zou Total-Curb adaptation

A minimal volunteer-route adaptation of the 2025 Total-Curb model: protect service first, then minimize total direct system CO2e.

Objective: Maximize assigned food-ready pickups, then minimize uncollected waste, selected-route residual waste, and transportation CO2e.

Driver selection: The model assigns one route to a driver; that assigned route is recorded as the driver's selection.

Not used to choose its routes: soft requested-time and ZIP preferences, acceptance probability, pantry fairness, priority, and coverage, avoided production, meal preparation and packaging emissions, unobserved driver familiarity.

COMPARISON POLICY

Horner et al. stochastic-menu adaptation

A minimal adaptation of the 2021 SLSF-noZ model: optimize short personalized menus over seeded stochastic willingness scenarios, then assign among routes drivers are willing to fulfill.

Objective: Maximize expected completed food-ready pickups over 100 seeded willingness scenarios, then minimize expected route distance as a tie-break.

Driver selection: The driver signals willingness for any acceptable menu options; the platform's recourse solve assigns one willing route, which is recorded as the driver's selection.

Observed menu trace: 2.93 options per driver on average · 88 total menu options · 1 willing drivers without a final assignment.

Not used to choose its routes: food quantity and pantry distribution as objectives, pantry fairness, priority, and coverage, CO2e as an objective, fare, compensation, and wage assumptions, unobserved unhappy-driver penalty history.

Audit the detailed outcome metricsFood, waste, emissions, fairness, distance, and driver diagnostics

These measurements remain separate for auditability. Related rows should not be counted as independent model victories: food recovery and waste are complements, while several emissions and travel rows are components of the same underlying outcome.

Pickup service and pantry reach

The same realized food-ready pickups, open pantries, and driver events are evaluated for all four models.

MeasureBakedBoston Gurobi MIPNair et al. distance-first adaptationXue–Zou Total-Curb adaptationHorner et al. stochastic-menu adaptation
Bakery pickup coverageEligible food-ready pickup occurrences completed.
85%best85%best85%best85%best
Completed deliveriesSuccessful bakery-to-pantry deliveries.
29best29best29best29best
Unserved pickupsFood-ready bakery windows that expired without assignment.
5best5best5best5best
Pantry coverageUnique pantries served, with the share of available pantries in parentheses.
8 (100%)best7 (88%)5 (63%)7 (88%)
Distribution fairness (Gini)Zero is perfectly even; lower is fairer.
0.188best0.3630.4820.330

Food recovery and waste

Recovered food always uses qᵣ × bakery usability × pantry distribution. Completed-route residual is split into bakery-unusable food and pantry-undistributed food.

MeasureBakedBoston Gurobi MIPNair et al. distance-first adaptationXue–Zou Total-Curb adaptationHorner et al. stochastic-menu adaptation
Food recoveredSelected route food × bakery usability × pantry distribution fraction.
316.8 kgbest307.6 kg303.6 kg308.4 kg
Food wastedUncollected bakery food plus both completed-route residual streams.
314.3 kgbest323.6 kg327.5 kg322.8 kg
Not picked upFood at available bakery occurrences with no completed delivery.
103.8 kg109.6 kg91.5 kgbest103.5 kg
Completed-route residualBakery-unusable food plus pantry-undistributed food on completed deliveries.
210.5 kgbest213.9 kg236.1 kg219.3 kg

Environmental result

These values use one shared ledger. Xue–Zou minimizes direct CO₂e, BakedBoston balances net benefit with other goals, and neither Nair nor Horner receives CO₂e as a decision input.

MeasureBakedBoston Gurobi MIPNair et al. distance-first adaptationXue–Zou Total-Curb adaptationHorner et al. stochastic-menu adaptation
Total direct CO₂eTransport plus the fixed waste-pathway results for both uncollected and residual food.
30.29 kg CO₂e34.47 kg CO₂e24.88 kg CO₂ebest35.47 kg CO₂e
Transportation CO₂eRoute cargo mass × route kilometres × the fixed transport coefficient.
0.89 kg CO₂e0.74 kg CO₂ebest1.30 kg CO₂e0.85 kg CO₂e
Waste-pathway CO₂eNet landfill, pig-farm, and compost pathway result; a negative value represents a modeled credit.
29.39 kg CO₂e33.72 kg CO₂e23.57 kg CO₂ebest34.61 kg CO₂e
Net environmental benefitAvoided waste result minus tonne-kilometre transport emissions.
50.1 kg CO₂e46.0 kg CO₂e55.5 kg CO₂ebest45.0 kg CO₂e

Driver burden and projected selection

All final routes use the same transparent sigmoid. It scales BakedBoston's expected-impact objective and informs Horner's stochastic menus, but it is not an input to the Nair or Xue–Zou selectors.

MeasureBakedBoston Gurobi MIPNair et al. distance-first adaptationXue–Zou Total-Curb adaptationHorner et al. stochastic-menu adaptation
Mean driving timeAverage driving minutes per selected route.
10.5 min8.8 minbest15.1 min10.2 min
Mean distanceApproximate average miles per selected route.
3.08 mi2.58 mibest4.43 mi2.98 mi
Mean total trip durationDriving, waiting at facilities, pickup, and drop-off time combined.
20.5 min18.8 minbest25.1 min20.2 min
Mean sigmoid acceptanceMean predicted probability based on drive burden and requested time/location fit.
71.6%best68.3%57.8%66.6%
Likely accepted routesCount and percentage with sigmoid probability at least 50%.
24 (82.8%)best22 (75.9%)19 (65.5%)22 (75.9%)
Likely rejected routesCount and percentage with sigmoid probability below 50%.
5 (17.2%)best7 (24.1%)10 (34.5%)7 (24.1%)

How to interpret the comparison

BakedBoston allocation: The joint Gurobi solve maximizes one normalized acceptance-adjusted expected-impact score: expected pantry coverage (10), raw donation volume (10), raw donation evenness (10), ultimately saved food volume (10), saved-food evenness (10), historical pantry opportunity priority (10), net direct CO2 benefit (20), and driver fit (20). Route contributions and pantry food totals are weighted by the transparent modeled acceptance probability; there is no 99%-of-best filter.

A driver receives no recommendation only when there are fewer distinct feasible bakery pickups than simultaneous drivers or that driver has no time-feasible route.

For BakedBoston's route-choice menu, the simulated driver selects rank 1, the highest-scoring route. The Horner adaptation instead follows its source formulation: drivers signal willingness for menu options and the platform makes the final recourse assignment. For other direct-assignment models, the assigned route is recorded as the driver's selection.

Expected acceptance and likely-rejection measures are prediction-based diagnostics; they do not override the deterministic recorded selection used in this demonstration.

All models share the exact same seeded surplus, daily food and usability draws, pantry openings and distribution fractions, waste allocations, driver events, facility windows, and feasible route geometry. Each selector reads only the inputs represented in its formulation; every result is then evaluated through the same food, environmental, travel, and acceptance ledger.

Balanced Total Impact: This scenario-relative index is not used by any optimizer, is not an externally validated social-impact measure, and can change when the scenario or comparison set changes. The underlying physical and fairness metrics remain the auditable result.

Seed 2033 is an illustrative balanced-tradeoff walkthrough in which all four policies complete the same number of deliveries. It is not presented as proof of average performance; multi-seed sensitivity analysis is the appropriate general comparison.

9bakeries
9pantries
38actual driver requests
1–3drivers sampled per window

THE EXACT OPTIMIZATION OBJECTIVE

Balance modeled participation and real-world impact in one objective.

Simultaneous network objectivemaximize Φ(x) = ωᵀψ(x; π),  x ∈ 𝒳

The feasible assignment x maximizes one acceptance-adjusted network feature vector ψ containing the food, fairness, environmental, pantry-priority, and driver-fit terms.

Single-driver interpretationr★ = arg max { πᵣ · (ωᵀφᵣ) | r ∈ ℛ(d) }

Among driver d's feasible routes, completion likelihood πᵣ multiplies completed-impact value ωᵀφᵣ. An 80% route therefore does not automatically eliminate a 78% route with materially greater food or environmental value.

Why one objective?

The sigmoid remains consequential, but its synthetic precision cannot veto almost every alternative. The optimizer chooses the feasible plan with the strongest overall expected result.

Synthetic completion-likelihood estimateπᵣ = σ(2.2 − 0.045mᵣ − 1.8wᵣ − 1.1sᵣ)

mᵣ is drive time; wᵣ and sᵣ are normalized requested-time and requested-area misses. This is an academic scenario assumption—not a trained prediction.

Food saved:hᵣ = qᵣ · ηᵦ · δₚBakery-side waste:wᵣᴮ = qᵣ(1 − ηᵦ)eᵦPantry-side waste:wᵣᴾ = qᵣηᵦ(1 − δₚ)eₚ

What every symbol contributes

xᵣ
A binary decision: 1 when complete timed route r is selected; otherwise 0.
πᵣ · completion likelihood
A transparent synthetic probability based on driving burden and the share of requested time and location preferences missed. It scales impact and can later be recalibrated with observed pilot choices.
κᵣ · pantry coverage
10 points. Acceptance-adjusted coverage credit divided by available pantry identities and capped once per pantry.
νᵣʳᵃʷ and εᵣʳᵃʷ · raw donations
10 + 10 points. Acceptance-weighted bakery-food volume and evenness calculated from cumulative expected raw donations.
νᵣˢᵃᵛᵉᵈ and εᵣˢᵃᵛᵉᵈ · food saved
10 + 10 points. Acceptance-weighted ultimate food saved and cumulative expected saved-food evenness. hᵣ = qᵣ · ηᵦ · δₚ.
ρᵣ · pantry priority
10 points. Acceptance-weighted opportunity-history priority, normalized by the epoch's maximum feasible assignment count.
γᵣ · net direct CO₂ benefit
20 points. Acceptance-weighted route net benefits are min–max normalized within the epoch and normalized by maximum assignments. Primary avoided-production substitution is 0%.
χᵣ · driver fit
20 points. Acceptance-weighted fit based on normalized drive-time, requested-window, and requested-area burdens.
qᵣ, ηᵦ, and δₚ
qᵣ and ηᵦ are reproducible daily draws from each bakery's fixed triangular distributions. δₚ is a fixed pantry distribution fraction.
eᵦ and eₚ
eᵦ combines that bakery's landfill/pig-farm/compost shares. eₚ combines that pantry's unique landfill/pig-farm shares; pantry compost is always 0%.

The optimizer maximizes all eight normalized components together after acceptance-adjusting route contributions; it does not impose a 99%-of-best-acceptance constraint. Food-evenness terms use cumulative expected pantry totals and encourage balance without claiming envy-free allocation. Login time is the decision epoch—not a forced departure. The scheduler chooses a just-in-time departure while confirmed bakery and pantry windows, pickup deadlines, latest permitted pantry arrival, one route per driver, and one assignment per bakery pickup remain hard constraints. Requested time and ZIP areas are soft preferences. An uncollected food-available bakery contributes all qᵣ under the bakery waste mix. On a completed route, qᵣ(1−ηᵦ) follows that bakery's landfill/pig-farm/compost mix, while qᵣηᵦ(1−δₚ) follows the destination pantry's unique landfill/pig-farm mix. Pantry compost is 0%, and transport uses 0.41947 kg CO₂e per tonne-km of usable cargo. These are academic assumptions adapted from Guo et al. (2026) ↗, not a Boston-calibrated inventory.

The complete fixed bakery, pantry, distribution, waste-allocation, and environmental-coefficient tables are maintained with the model source in the optimizer GitHub documentation ↗.