A GENERAL MODEL OF OPTIMAL ENERGY STORAGE OPERATION IN THE X2026