This paper is devoted to discussing a method for synthesizing optimal control of motion of material streams in flexible production system (ROS). The problem of calculating optimal pathways of a processing sequence during functioning of an FPS section is formulated, as well as algorithms for solving it, based on the dynamic methods of nonlinear integer programming. Examples are cited for synthesis of pathways for a processing operation for an FPS for assembling radioelectronic equipment.