In this paper, a corresponding particle swarm optimization algorithm is presented to solve the optimization problem of integer resource allocation. This algorithm is easy to programming. Especially, when the total number of resource and departments, profit matrix is changed, we only need to adjust the value of limited parameter in the procedure to get the optimal solution. At last, according the stochastic simulation technique, numerical results show the algorithm reported is effective and fast.