Sound Coarse-to-Fine Planning for Multi-Source Energy Harvesters

A batteryless sensor that draws power from several sources at once, such as a solar cell and a thermoelectric generator (a device that turns a temperature difference into voltage), has to make many discrete choices. It must decide which source charges which storage buffer, which atomic piece of computation runs when, and how large the capacitors should be. Each choice looks small. Across a day of second-by-second decisions, the number of possible schedules grows exponentially.

The obvious way to cut this down is to plan with average power. That plan often fails because real power converters are strongly non-linear. Below a turn-on threshold they harvest almost nothing: efficiency falls from above 50% at −5 dBm to about 0.4% at −40 dBm, per Wireless Networks with RF Energy Harvesting: A Contemporary Survey. Above a limit they saturate. A plan that is fine "on average" can therefore strand the device in a restart loop, where a task needs more energy than the capacitor holds. We propose to treat this as a search problem in the way recent theorem provers do: sketch a coarse plan, then refine its pieces independently. The change we add is that the coarse check uses provable bounds derived from the non-linear converter curves. A sketch that passes at the coarse level therefore cannot turn out infeasible at the fine level.

Core Claim

Hierarchical provers such as POETRY in Proving Theorems Recursively tame exponential search. They write a high-level proof with holes, then solve each hole by separate best-first search. The authors name the weakness themselves: a sketch can look valid and still contain impossible subgoals, and that compute is wasted before the failure propagates back up. Energy planning has the same trap, since an average-power sketch can hide a dead-zone gap.

Energy planning also has something formal mathematics lacks: a monotone physical model that gives cheap, sound interval bounds on any coarse window. Our claim is that interval bounds of this kind remove the "false sketch" failure. They can reject a coarse plan without refining it, and in many windows they can accept one without refining it. Planning cost then scales with how often the environment sits near a converter threshold, not with horizon length.

Concretely, let $g(p, v)$ be the measured harvested power of a converter given input power $p$ and storage voltage $v$. The dependence on $v$ captures the charger and MPPT (maximum power point tracking) behavior that memoryless models ignore. Over a window $W$ of $|W|$ samples, assume input stays in $[p_{\min}, p_{\max}]$ and storage voltage in $[v_{\min}, v_{\max}]$, and that $g$ is monotone in $p$. Then the harvested energy $E_W$ satisfies

$$ |W|\,\min_{v\in[v_{\min},v_{\max}]} g(p_{\min}, v) \;\le\; E_W \;\le\; |W|\,\max_{v\in[v_{\min},v_{\max}]} g(p_{\max}, v). $$

The non-linearity makes these bounds useful rather than loose. A window whose maximum input lies inside the dead zone has a provable upper bound near zero, so every plan that relies on that source there is pruned immediately. A window above saturation has a flat, tight bound. The planner splits a window only when the gap between its bounds could change a feasibility decision. Refinement is spent where the physics is actually uncertain.

Research Program

The planner searches jointly over three things. The first is routing: which harvester feeds which buffer through which converter, with two or more buffers, following the peak/trickle split in InfiniWolf. The second is the order in which atomic tasks run, in the task model of Alpaca: Intermittent Execution without Checkpoints. The third, in an outer loop, is capacitor sizing.

Search runs backward from goals, borrowing the directional choice of BC-Prover. Each task deadline states a required energy interval in each buffer. The planner derives the storage intervals that must hold at earlier window boundaries. At the top level it proposes a coarse schedule of hour-scale windows, each tagged with routing and task assignments. It checks each window with the bound above, propagating storage-voltage intervals from window to window. Windows whose lower bounds already certify the goal are closed. Windows whose upper bounds violate it cause the sketch to be rejected. The rest are split and solved recursively.

We also reuse the idea of discovering intermediate lemmas, as in Ota et al.'s Self-Supervised Theorem Discovery in a Formal Axiomatic System. Certified sub-plans for recurring environmental windows, such as "office night, TEG only, buffer A in this interval," are cached and reused across days. Storing the certificate avoids re-proving that window each time.

The output is a schedule plus a certificate. The certificate is the chain of interval checks, which can be re-verified independently against the traces and the converter curves. Two things are to be built. The first is a converter-characterization pipeline that fits $g(p, v)$ tables for the PV, thermoelectric and RF front-ends in the benchmarks. The second is the planner itself.

Baselines

The naive reference is the static policy of InfiniWolf: the solar cell powers active compute directly and the thermoelectric generator trickles into storage for standby. That paper reports 21.44 J/day under 700 lx and 6 hours of wear, which sustains up to 24 stress classifications per minute. We will re-implement this policy in our simulator with its reported per-classification energy (1.2 µJ on the RISC-V cluster) and run it on the same traces. Beating it means a higher sustained classification rate with zero brownouts on held-out days, or the same rate with smaller storage.

A second simple reference is linear-efficiency planning with a fixed 20–30% back-off margin. It uses the same search but replaces $g$ with a constant, so it tests whether modeling the non-linearity matters at all.

The strongest competitors are exact solvers. The first is a mixed-integer linear program. It encodes each converter curve as a piecewise-linear function with binary routing and task variables, and it is run with a commercial-grade solver under the same wall-clock budget. The second is dynamic programming over discretized buffer energies and task-graph progress, with bin resolution tuned on validation days under the same compute. Neither has a reported result on these benchmarks: no reported result found on Lacuna for MILP or dynamic-programming schedulers on multi-source intermittent workloads.

Beating them means one of two things. Either we match their objective within a stated tolerance while using an order of magnitude less planning time at day-scale horizons, or we find feasible certified plans where they time out.

The key ablation keeps the hierarchy but checks sketches with average-power estimates instead of sound bounds. This is POETRY's recipe transplanted directly. It isolates whether the bounds, rather than the decomposition, produce the gain. A second ablation removes certificate reuse.

Why not just…?

Why not just solve it as a mixed-integer program? This is the most serious threat. Piecewise-linear efficiency curves fit naturally into integer programming, and for short horizons with a single buffer we expect the MILP to win outright. The open question is scaling. At the 2 Hz sampling of Enspect, one day is 172,800 steps per source, and joint sizing multiplies the instances. The horizon-scaling experiment below decides the matter. If a time-aggregated MILP matches our planner's quality and time at day scale, we will reframe the contribution as sound time-aggregation for the MILP rather than as a separate search method.

Why not just use dynamic programming over stored energy? With one buffer and a chain of tasks, the exponential count of schedules is illusory. Dynamic programming is polynomial in steps × energy bins × modes and is essentially exact, and we will not claim to beat it there. The explosion is real only when the state is a product: several buffers, each with voltage-dependent converter efficiency, plus progress through a task graph. We report exactly where along this state-dimension axis dynamic programming stops being tractable.

Why not just size with surplus-versus-deficit rules and a safety margin? The Enspect poster itself presents its rule as a diagnostic guideline validated on a single 24-hour trace for duty-cycled solar nodes. A constant margin cannot follow the roughly 100× efficiency swing documented by Lu et al. Mixed-Timescale Beamforming and Power Splitting ( Mixed-Timescale Beamforming and Power Splitting for Massive MIMO Aided SWIPT IoT Network) shows that ignoring saturation distorts the resulting allocations. The linear back-off baseline measures this cost directly as brownouts on replay.

Proposed Experiments

Workloads come from the WISP5 intermittent benchmarks used by Alpaca (activity recognition, Blowfish, RSA) and from the PhysioNet driver-stress classifier used by InfiniWolf. The file lists no public multi-source energy trace benchmark. We will therefore collect multi-day solar, thermoelectric and light traces with an Enspect-style four-channel logger at 2 Hz, and add RF input traces run through rectifier curves matching the Lu et al. efficiency points. Planning and sizing use the early days; the remaining days are held out.

Every schedule is replayed in a fine-grained circuit simulation that uses the fitted $g(p,v)$ at the full 2 Hz resolution. Metrics are restart-loop and brownout events, sustained task throughput, required storage, planning time as a function of horizon and number of buffers, and the fraction of search compute spent on sketches later rejected.

Two checks settle the proposal. The first is soundness: across all held-out replays, no certified plan may brown out. A single violation means the bounds or the voltage-interval propagation are wrong. The second is where the gain comes from. The sound-bound planner must spend markedly less compute on rejected sketches than the average-power ablation. Its planning time must grow with the number of near-threshold windows rather than with horizon length, which we test by varying the fraction of the trace that sits near converter thresholds while holding total length fixed. If the average-power ablation performs as well, the physics-derived bounds are not the active ingredient and the central claim fails.