A mathematical model of production planning for a multiproduct, multistage produetionaystom (production equation, transition equation and objective function) was constructed in order to derive the optimal decision rule to be adapted to demand fluctuation. With this model the optimal solution and the computational algorithm were determined by functional space approach. With use of this algorithm, a numerical example of optimal production planning was solved.