Transparent, interrogatable, high-performance BESS optimization