Stochastic search for a parametric cost function approximation: Energy storage with rolling forecasts