Every day, Citi Bike crews drive about 3,400 bikes from stations that are filling up to stations that are running dry. We rebuilt that job in a simulator driven by every real ride from April to August 2026, with vans that take real time to drive and load. Then we searched for the best way to run the vans. The winner plans each van's whole tour in advance, using only what an operator knows at the time.
Citi Bike is run by Lyft under a contract with New York City. Each month it publishes an operating report. June 2026's report gives the scale of the job:
The report names four tools. Box trucks and vans carry bikes between stations. Valets staff a few very busy docks at rush hour and take bikes beyond the dock count. Bike Angels pays members in points to ride from stations that are too full to stations that are too empty, "dependent on predicted need for docks and bikes." Angel trips are ordinary rides in the public data, so their effect is already part of the demand we replay.
The contract sets service levels. Rebalancing: no station may stay empty or full for more than 4 hours, with 10 PM to 6 AM not counted. Never-die stations: at a set of key stations, outages may last at most 3% of the minutes from 6 AM to midnight. Bike availability: enough bikes must be in service from 11 AM to 3 PM. The June report lists the first two as "NA" and the third at 109%.
A completed ride is a fact: its start had a bike and its end had a free dock. Running every station's rides forward, we can compute exactly how many bikes must have been moved for those rides to have happened. For June, that's at least 43,445, or 43% of what Citi Bike reports. The rest is moving bikes early, keeping buffers, and work the rides can't show, such as repairs and battery swaps. Ranking stations by that forced work, in both directions, puts all six of Citi Bike's valet stations in the top nine of 2,320. We never told the model where the valets are.
We don't know how Citi Bike routes its vans, how many it runs, or how often riders find a station empty or full. Those failed rides never appear in the data. So we don't score Citi Bike. We score policies against each other on the same rides, with the same fleet, and use their reported 3,391 bikes a day as a yardstick for how much moving is realistic.
Commuters push bikes into Midtown every morning and out every evening. Docks are finite, so someone has to push them back, in traffic, 20 bikes a van. Every rider who finds a station empty or full is a lost trip. In our simulator, doing nothing loses about 1 ride in 20.
Every ride is public, so the benchmark is 22.9 million real rides, not a synthetic city. There is an exact floor: with perfect timing and teleporting bikes, 1,578 moves a day would serve every ride. Vans can't teleport, so it is a lower bound, not a target. Policies are tuned on June, chosen on July, and scored once on August.
The usual approach sets a target level for each station and sends vans to fix the worst ones. Planning each van's whole tour instead, with every stop valued by the rides it saves at the minute the van gets there, fails 24% fewer rides on 31% fewer van-hours, while moving about as many bikes as Citi Bike does.
Fed July's recorded ride counts instead of its forecast, the planner fails 0.39% of rides instead of 1.33%. That is what perfect knowledge of the next few hours would buy. Better station profiles, live trips, weather forecasts and ballgame schedules don't detectably close the gap. What's left is mostly when single riders show up at single stations, which is close to pure chance. The levers left are fast reaction and more usable docks, and the live feed shows 9% of docks held by disabled bikes or out of service.
This is the average of 106 weekdays with no rebalancing at all. Each circle shows how far a station's bikes have drifted since 3 AM: coral means bikes ridden away, blue means bikes ridden in. By 10 AM about 8,600 bikes are out of place. The biggest sinks are the stations where Citi Bike posts valets: 9 Ave & W 33 St by Penn Station, North Moore St in Tribeca, E 47 St & Park Ave, and 1 Ave & E 68 St by the hospitals. The East Village and the far West Side drain. The evening rush sends most bikes back. By 3 AM about 1,200 are still out of place, and the rest are back at different docks.
"Out of place" adds up every station's drift and halves it. That counts each bike once: it left one station and reached another. Docks aren't capped here, so this is demand, not what could actually happen.
Pick a real July day and a policy. Every ride of that day is drawn as a streak. Stations are colored by how full they are. When a rider finds a station empty or full, a ring flashes. White dots are vans; click one to follow it, or click a station to see its day. Split screen runs two policies side by side on the same rides.
Every 15 minutes, each idle van gets a tour. Here is one real decision from the replay above, step by step. The planner grows eight partial tours at once. At each step it tries every sensible next stop: a nearby station, or one of the 30 stations that most need bikes delivered or taken away. It scores each by the failed rides it expects that stop to save, minus the van's time. It keeps the best eight and extends them again. The best tour that ends with an empty van wins.
Every policy trades van-hours for fewer failed rides. The tour planner sits below and to the left of everything else: fewer failed rides for less van time. August was held out and scored once, after every choice was frozen on June (search) and July (selection).
The planner has eight knobs: vans on duty in four blocks of the day, how far ahead it looks, how much a van-minute costs, how much spread to allow in the forecast, and what a bike lifted costs. CMA-ES tried 15 settings per generation on June's rides. It kept the direction that lowered failed rides plus van-hours (plus bikes moved, in the priced runs). Watch the schedule change: the search found it pays to pull vans out of the rush hours and do the work before the peaks. This is tuned beam search, not reinforcement learning: nothing in the planner learns from experience beyond these eight numbers.
With perfect hindsight, a tour planner on the same van schedule fails only about 0.3% of rides. Fed the recorded ride counts instead of a forecast, the deployable planner gets close: 0.39% against 1.33% on July. That is an oracle result, not something a forecaster can recover, because the recorded counts include pure chance. The ladder below feeds the planner more and more of the truth. Knowing each station's daily total barely helps. What matters is knowing when the next few hours of rides will come.
We tried every source of new information we could get for July: better station profiles, trips already on the road, archived hourly weather forecasts as they were issued, and Yankees and Mets home games. Rain really does cut rides by a third, and night games bring 50% more riders to the 15 stations by Yankee Stadium. Neither moves the planner beyond ±0.03 points (shaded), which is about one standard error; a detectable change would be about 0.07. The rest of the gap is mostly when a few rides happen at each station, which is close to pure chance.
Three random seeds of the search land within 1% of each other, on the same van schedule: a night crew of about 20 vans and a midday crew of about 18, with few vans in the rush hours. The work is done before the peaks.
July, same van-hours. The planner stays ahead when loading takes twice as long or traffic is 30% slower.
A four-borough drive graph from OpenStreetMap (273,000 nodes) replaces straight lines × 1.3. At the median, roads are 1.22× the straight line, with long detours at the rivers. Every policy loses a little. The planner loses least, because it prices each leg when it builds a tour.
Six stations have staff who take bikes beyond the docks at rush hour. The simulator treats them as ordinary docks, and they carry 9% of the planner's failed rides in August. With unlimited room at the six, every policy improves: the planner to 1.07% and the station-target search to 1.39%. The ranking holds.
All 5.6 million station pairs more than 300 m apart.
Since January 2025, a vehicle entering Manhattan at or below 60th Street pays a toll. A box truck like a 20-bike rebalancing van pays $14.40 every entry at peak (05–21 weekdays, 09–21 weekends) and $3.60 overnight; a small van pays $9 / $2.25, at most once a day. We counted every time a van crossed into the zone, then let the planner and the search see the toll. A van-hour is taken to cost $45 for crew and vehicle, an assumption rather than a reported figure.
The headline planner on July, tolls at the truck rate. Tolls are about 8% of the bill, about $345k a year.
| Per day | Amount | Cost |
|---|---|---|
| Van-hours on duty | 247 h | $11,115 |
| Congestion tolls | 90 entries | $945 |
| Fuel (at $0.17 a km) | 2,444 km | $415 |
| Tolls at the small-van rate instead | $172 |
July. The objective is failed rides plus van-hours plus tolls, at $45 a van-hour.
| Truck tolls, per day | van-h | failed | entries | tolls |
|---|---|---|---|---|
| Headline, toll ignored | 247 | 1.383% | 90 | $945 |
| Planner prices each entry | 247 | 1.390% | 69 | $684 |
| Knobs re-searched with tolls | 227 | 1.431% | 64 | $603 |
Letting the planner see the toll saves $261 a day. Failed rides stay well inside the 0.07-point detectable change. Re-searching the knobs drops a few midday vans and saves more on vans and tolls, but loses it back in failed rides: its objective matches the headline's within 0.1%. The toll is worth pricing when tours are planned, but it doesn't change the plan's shape.
The zone edge is modelled as a straight line along 60th Street. A van coming on duty starts outside the zone, from a depot the simulator doesn't place. The small-truck rate is from launch-era reporting. Details in docs/AUDIT.md.
Since September 22 we've archived Citi Bike's live station feed every five minutes. We can't score it against rides until September's trips are published. It already shows something the simulator missed: disabled bikes hold 7.4% of all docks, and another 1.5% of docks are out of service. Disabled includes e-bikes with flat batteries. A rider can use only about 89% of the docks a station has.
Failed rides roughly double to triple for every policy, depending on how much a rerouted return is worth against a lost trip. The planner still wins at every budget. For the headline planner, lost docks cost about 2.2 points, against the 3.5 points rebalancing saves. Taking the disabled bikes out of the fleet too doesn't change that.
A closed fleet over 2,367 stations in Manhattan, Brooklyn, Queens and the Bronx, driven by every recorded ride. A rider who finds a station empty or full is a failed ride. Vans carry 20 bikes and drive at speeds measured from June 2026 taxi trips, by borough and hour. Each stop takes 2 minutes plus 20 seconds per bike. June tunes, July selects, August is scored once.
Every 15 minutes, each idle van runs a beam search over tours: a sequence of lifts and drops, up to 20 bikes aboard, ending empty. A stop is worth the failed rides it is expected to prevent, counted from the minute the van gets there. That uses a forecast of each station's rides over the next 10 hours. Eight numbers were set by CMA-ES on June, charging failed rides, van-hours and bikes moved: vans on duty in four blocks, look-ahead, the forecast's spread, and prices for a van-minute and a bike. It is tuned beam search. Policies trained by reinforcement learning in the same simulator have not beaten it on July and August.
Failure rates count rides that found no bike or no dock. Van-hours are vans on duty. The simulator assumes every dock works and there is one kind of bike. The live feed says that is optimistic, so treat the absolute rates as a lower bound and trust the comparisons between policies.
The recorded rides are the ones Citi Bike's own operations made possible. Other policies are charged for real rides they strand. They get no credit for rides they would have enabled that never happened. That bias works against every policy here, most of all the ones least like Citi Bike's.