The harmony search algorithm is applied to optimum designs of a functionally graded (FG)-carbon nanotubes (CNTs)-reinforced pipes conveying fluid subjected to moving load. The structure is modelled by Reddy cylindrical shell theory and the final equations are obtained by principal of Hamilton. Based on differential quadrature method (DQM), the dynamic displacement of system is derived.