Optimal energy trading with battery energy storage under dynamic pricing | IEEE Conference Publication | IEEE Xplore