Aiming at the optimization problem of maximizing the sum of bandwidth of spectrum resource and minimizing the number of used spectrum resource in cognitive wireless networks, a multi-object optimization spectrum allocation algorithm based on particles swarm optimization algorithm (PSOSA) was proposed. The PSOSA not only takes the difference of different spectrum into account, but also redefines the particle of the PSO and the operation of particle. Simulation results show that our algorithm not only maximizes the sum of bandwidth of spect...