General Planning Horizons for the Production Smoothing Problem with Deterministic Demands. I. All Demand Met from Regular Production.