OPTIMIZED THERMAL MANAGEMENT OF A BATTERY ENERGY STORAGE SYSTEM X2026