Optimization of multistage cyclic and braching systems by serial procedures