Comprehensive optimization design of serpentine nozzle with trapezoidal outlet was studied to improve its aerodynamic and electromagnetic scattering performance. Serpentine nozzles with different center offsets and different ratios of the bases of the trapezoidal outlet were generated based on curvature control regulation. Computational Fluid Dynamics (CFD) simulations have been conducted to obtain the flow field in the nozzle, and Forward-Backward Iterative Physical Optics (FBIPO) method was applied to study the electromagnetic scattering characteristics of the nozzle. Guarantee Convergence Particle Swarm Optimization (GCPSO) algorithm based on Radial Basis Function (RBF) neural network was used to optimize the geometry of the nozzle in consideration of its aerodynamic and electromagnetic scattering characteristics. The results show that the GCPSO method based on RBF can be used to optimize the aerodynamic characteristics of the internal flow and the scattering characteristics of the cavity of the serpentine nozzle with irregular outlet. The optimized model has a higher center offset and a lower ratio of the bases of the trapezoidal outlet after optimization compared to the original model. The optimized model leads to a slight change in aerodynamic performance, with a total pressure recovery coefficient increase of 0.31% and a discharge coefficient increase of 0.41%. In addition, the Radar Cross Section (RCS) decreases also by around 83.33% and the overall performance is significantly improved, with a decrease of the optimized objective function by around 38.74%.