OPTIMIZED ENERGY STORAGE CONFIGURATION FOR ENHANCED FLEXIBILITY IN