An improved particle swarm optimization algorithm is proposed for 0—1 knapsack problem.When the goods scale is increasing,the IPSO algorithm can effectively find the global optimal solution,and to improve the room utilization of knapsack,reducing the vacancy rate of knapsack.The simulation experiments show that improved particle swarm optimization algorithm(IPSO) has better convergence and stability in solving knapsack problem.