To further explore new ideas and explore the applications of Flexsim that is a logistics simulation software in deeper levels and wider dimensions, the author of this article has established a corresponding simulation model, based on a simple integer linear programming example. The model can simulate the problem set forth in the example by modifying the code. Using the experimental device, it has eventually realized the simulation of enumeration method. The optimal solution obtained by the simulation model is consistent with the result calculated by the traditional method. It can be seen that, when the integer linear programming problem is relatively simple, a corresponding simulation model set up by Flexsim can solve the problem with the help of the experimental device.