1. A method for energy management, comprising: receiving parameters from energy management system components; generating a stochastic model for electric vehicle (EV) operation as mobile energy storage (MES) for optimal planning, operation, and control purposes; solving an optimization problem for optimal planning, operation, and control purposes; controlling operation of EVs according to the optimization model to lower operating cost and emissions; and controlling operation of EVs according to the optimization model to ensure a predetermined level of reliability.