Seol mar théacs é seo: Mixed Integer Nonlinear Programming for Energy Storage