We describe the mathematical modeling and the numerical resolution of the optimal management of the electricity consumption of a building equipped with solar panels and battery. The storage facilities help to smooth the load on the large grid. The optimal battery control is related to solving a McKean FBSDE. Some numerical experiments are supporting the study.
Bienvenue à tous!