Forecasting energy needs with logistics