FA-93120 / EV charging session scheduling / Member archive
Depot least-laxity-first charging: equal-laxity tie-break · case 05
Which of two equally urgent vehicles charges depends on list order.
Case contract
fleet is [[id, need_units, depart_slot, max_units_per_slot]]. A vehicle is present in slots t < depart_slot. Each slot the site capacity site_units is granted in order of laxity (depart_slot - t - ceil(remaining/max_units)) ascending, ties by id; each vehicle gets min(max, remaining, capacity left). Return [[[id, remaining]] sorted by id, sorted ids with remaining > 0].
Why this case matters
Depot, workplace and public EV chargers schedule sessions against prices, circuit limits and departure deadlines; a wrong decision silently strands a driver or overloads a feeder.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: equal-laxity tie-break | [[["B0", 6], ["B1", 1], ["B2", 8], ["B3", 10], ["B4", 3]], ["B0", "B1", "B2", "B3", "B4"]] | [[["B0", 6], ["B1", 1], ["B2", 8], ["B3", 9], ["B4", 4]], ["B0", "B1", "B2", "B3", "B4"]] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗