Optimal Production Inputs with Varying Quality and Yield Components: Irrigation Termination of Upland