FAILURE MAP
← Case archive

FA-93340 / EV charging session scheduling / Member archive

Site power profile from charge plans: closing zero point · case 05

Profiles that already end at zero get a duplicate zero change point.

Member previewVariant 5 · 3 implementations · 7 checks per implementation

Case contract

plan holds [start, end, kw] charging intervals ([start, end), zero-length ignored). Build the site profile as change points [[t, total_kw]] over the interval breakpoints, merging equal consecutive levels, and close with [last breakpoint, 0] unless the profile already ends at 0. Also return the start points of segments whose total exceeds site_max. Return [profile, overloads].

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: closing zero point[[[6, 11], [16, 0], [18, 7], [28, 0], [32, 0]], []][[[6, 11], [16, 0], [18, 7], [28, 0]], []]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 ↗