In solving optimal problems, pigeon-inspired optimization algorithm (PIO) is easy to premature convergence and trap in local optimum, so this paper presents a cross pigeon-inspired optimization algorithm with cognitive factors. Firstly, map the compass operator and landmark operator no longer run independently, and them are mixed together and operated crosswise; Second, in the map and compass operator the cognitive factor of nonlinear increment was introduced, and regard as the inertia weight’s trigonometric functions; Finally, in the landmark operator, a compressive factor that was increasing gradually in the form of trigonometric functions was proposed to make path smoother. Simulation results showed that the improved algorithm search success rate had greatly improved, and not only effectively avoid premature convergence, but also jump out of local minima and had better optimization ability.