Based on the research on the optimization model of production/ordering planning problem, this paper presents a new recursive algorithm, taking the sum of the total production cost and holding cost as the minimization criteria, to get the correct range of the both variables of stage k production and storage, and finally to get the optimal decision. In the contrast, exsiting normal dynamic programming algorithm could in some events result in a wrong range of the both variables and optimal decision would not be reached.