Preprint
Article

This version is not peer-reviewed.

Bounded Learned Residuals for Predictive Current Control in a Photovoltaic–Battery DC Microgrid: Averaged-to-Switching Transfer, Measurement Noise and Energy Adequacy

Submitted:

30 November 2026

Posted:

02 December 2026

You are already at the latest version

Abstract
Gains credited to learned DC-microgrid controllers often also depend on the plant model, numerical setup or hardware rating. We separate these effects in a 24 V photovoltaic–battery DC microgrid in which a predictive current controller regulates the load converter and a policy trained offline adds at most ±1 A to its current reference every 1 ms. Twin delayed deep deterministic policy gradient (TD3), an adaptive-rate TD3 and a double deep Q-network were trained on a randomized averaged model and deployed unchanged in a switching model with identical hardware. On 30 held-out averaged scenarios, TD3 lowered root-mean-square voltage error from 3.63 to 2.04 mV; about half of this gain came from compensating winding-resistance mismatch. On five randomized switching scenarios it lowered the error from 2.60 to 1.70 mV without reducing the peak deviation. The benefit depended on the integration step and reversed under 5 mV sensor noise unless the policy inputs were averaged. An independent Python re-execution reproduced the archived averaged-model, stability, energy and statistical results to machine precision, and ten fresh training seeds confirmed the ranking. A seven-day energy balance showed that the original 200 W array left 33.9 kWh unserved: supply adequacy required resizing, not better control.
Keywords: 
;  ;  ;  ;  ;  ;  ;  ;  ;  
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.