Solve factory planning with genetic algorithms