OPTIMAL MODEL PREDICTIVE CONTROL OF ENERGY STORAGE DEVICES FOR