The Finite Horizon Trended Inventory Replenishment Problem With Shortages