The membership function and weight coefficient are used to transform the model into a single objective programming model, and the improved single objective bat algorithm and discrete (or continuous) particle swarm optimization algorithm are designed to solve the problem.