Generation and load forecasting for optimization of battery energy management in the context of a nanogrid - João Pedro de Bastos Ferreira (2023)