HYBRID ENERGY STORAGE SYSTEM OPTIMIZING