As many said, industry 4.0 is an epoch-making revolution which brought the manufacturing market much faster changes and severer competitions. As an important part of the manufacturing system, facility layout has direct impact on business benefit; at the same time, despite the intelligent factory, intelligent production has its own characteristics. However, there is one point on which industry and academia have basically formed a consensus: it is not true that industry 4.0 does not need human beings; on the contrary, human initiative plays an unabated role in the development of industry 4.0. This paper will focus on the dynamic facility layout of the manufacturing unit. Based on the system above and the traditional optimization model, a mathematic model is built to find the best solution combining safety, sustainability, high efficiency, and low cost. And penalty function with adaptive penalty factor and advanced artificial bee colony algorithm is used to solve the constrained model. In the end, by studying few cases, the model is proved to be effective in both efficiency improvement and the implementation of safe and comfort human-machine interaction.