FAILURE MAP
← Case archive

FA-93230 / EV charging session scheduling / Member archive

Contiguous cheap charging blocks: threshold inclusivity · case 05

Slots priced exactly at the threshold are not treated as cheap.

Member previewVariant 5 · 3 implementations · 7 checks per implementation

Case contract

Slots with price <= threshold form runs of consecutive slots; runs shorter than min_len are ignored to avoid contactor cycling. Slots of qualifying runs are taken chronologically until need_slots are chosen. If still short, the remaining cheapest unchosen slots (ties: earlier) are added regardless of runs and fallback is True. Return [sorted slots, fallback].

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 fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression: threshold inclusivity[[2, 4, 5, 9, 11, 12, 14], true][[0, 1, 2, 3, 4, 5, 6], false]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 ↗