On the Optimal Management of Energy Storageстатья