FAILURE MAP
← Case archive

FA-93330 / EV charging session scheduling / Member archive

Site power profile from charge plans: merge equal levels · case 05

The profile repeats the same power level at every breakpoint.

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: merge equal levels[[[11, 11], [13, 22], [19, 33], [23, 22], [24, 11], [26, 11], [36, 0]], [13, 19, 23]][[[11, 11], [13, 22], [19, 33], [23, 22], [24, 11], [36, 0]], [13, 19, 23]]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 ↗