The main functions of modern warehouse include storage, processing, loading and unloading, and circulation. In this paper, the simulation of cold chain logistics warehouse is optimized by using AnyLogic, and the final optimization point is to solve the problem that the cold chain logistics warehouse does not produce inventory after the end of the work cycle, and use subcontracting distribution, so as to ensure the freshness of products and not waste resources, and ultimately achieve cost savings.