Energy storage cost and thermal power peak regulation