Text this: Combined optimization of heat and space for industrial and commercial energy storage pack