A fog computing service placement for smart cities based on genetic algorithms