Abstract
Fog computing is an emerging technology that can reduce the load on cloud system and decentralize computing resource, thus increasing response speed and reducing time delay. More and More environments in order to achieve intelligence, collect massive amounts of data though IOT devices. Considering deploying fog computing system in these environments can make system faster and more robust. This work creates a simulated factory consisting of a cloud center, gateways, fog devices, edge devices, and different types of sensors. We build an integer programming model and apply metaheuristic method for determining the layout of above devices except of cloud center and all sensors so that can find the cost minimization deployment of the smart factory.