Dynamic Programming for Optimal Energy Management in Nanogrids | IEEE Conference Publication | IEEE Xplore