Solving dynamic programming with supremum terms in the objective and application to optimal battery scheduling for electricity consumers subject to demand charges | IEEE Conference Publication | IEEE Xplore