Abstract
The proper positioning of machine tools in flexible manufacturing system is one of the factors that lead to increase in production efficiency. Choosing the optimum position of machine tools curtails the total part handling cost between machine tools within the flexible manufacturing system. In this article, a two-stage approach is presented to investigate the best locations of the machine tools in flexible manufacturing system. The location of each machine tool is selected from the available specific and fixed locations in such a way that it will result in best throughput of the flexible manufacturing system. In the first stage of the two-stage approach, the throughput of randomly selected locations of the machine tool in flexible manufacturing system is computed by proposing a production simulation system. The production simulation system utilizes genetic algorithms to find the locations of the machine tools in flexible manufacturing system that achieve the maximum throughput of the flexible manufacturing system. In the second stage, the generated locations are fed into artificial neural network to find a relation between a machine tool’s location and the throughput that can be used to predict the throughput for any other set of locations. Artificial neural network will result in mitigating the computational time.
Introduction
Flexible manufacturing system (FMS) layout has an impact on material handling. The cost of material handling can be reduced by at least 10%−30% if an efficient layout is considered. This reduction is important and has a significant impact because of the fact that the cost of material handling ranges between 15% and 70% of the total production cost. 1 The variation in the percentage is based on the type of production system. Thus, the layout of machine tools in the FMS can be considered as an imperative factor, which can reduce the production cost by a significant amount. The layout of machine tools problem is NP-complete problem. 2 Various techniques and methods were used to solve the FMS layout problem such as simulated annealing,2–4 ant colony optimization,5,6 genetic algorithms (GAs),7–9 fuzzy heuristic approach,10,11 dynamic programming, 12 tabu algorithm, 13 linear programming, 14 and many other methods and techniques can be found in the review and survey researches such as the studies by Drira et al., 15 Moslemipour et al., 16 and Shirazi et al. 17
On the other hand, many studies solved the layout problem in restricted plant, for example, Lee and Kim 18 considered a rectangular shape department and modified the shapes of departments in a given block layout. Other studies considered single flow line, such as Yang et al. 19 considered departments with fixed shapes and pick-up/drop-off points with single-loop-directed flow path, 20 described a constructive heuristic to solve the single-row facility layout problem, 21 introduced a heuristic procedure to study the single-row facility layout problem, and also, Braglia 7 used a GA to optimize simulated-annealing-based heuristic for single-row layout problem.
Irregular-shaped machines were also considered in other studies, for example, Yamamoto and Qudeiri 22 proposed concurrent engineering system to find the layout design of flexible transfer line components, and also, Bock and Hoberg 23 introduced a layout for irregular-shaped machines with transportation path. On the other hand, fixed shapes and input and output points have been considered to find the layout, such as Kim and Kim 24 focused on the facility that has predetermined shape and input and output points, and also, Qudeiri and Yamamoto 25 introduced a one-by-one layout procedure to find the efficient layout for production line components between a fixed start point and end point of the production line. Other research has focused on the dynamic case, for example, Conway and Venkataramanan 26 introduced genetic search technique to solve dynamic facility layout problem. Also, McKendall and Hakobyan 27 considered unequal area departments and used heuristics to solve dynamic facility layout problem. Furthermore, a heuristic procedure for the quadratic assignment formulation of the facility layout problem with single/multiple objectives was presented, 10 and also, a combination of GA and simulated annealing was proposed for linear ordering of the machine tools to find the minimum of the total backtracking.7,8 Some studies map the area to the rectangular-shaped elements. 28 Many heuristic methods and approaches were developed to solve the layout problem and to find the best possible location of FMS components.9,25,29
However, despite many publications for FMS machine tools layout, further augmentation is still required. Some studies considered machine tools as equal blocks, and others neglected the details between the machine tools. Moreover, most of the literature has no exact target points of the possible locations of the machine tools.
This research work considered specific and fixed locations for the machine tools and searched for the best location of each machine tool among these locations that will result in best throughput of the FMS. To locate the FMS machine tools in the proper locations, a two-stage approach (TSA) is proposed. In the first stage of TSA, the throughput of randomly selected locations of the FMS machine tool for different layouts is found by a proposed production simulation system (PSS). GA is combined with the PSS to search for the optimal locations of all machine tools in FMS. Many groups of locations are generated for different locations of machine tools. The generated sets of locations and their corresponding throughput are then fed into artificial neural network (ANN) to find a relation between a machine tool’s location and the throughput. This relation can be used to predict the throughput of unseen locations of machine tools. The notations used in this article are listed in Appendix 1.
FMS model
The FMS in our model consists of

FMS model.
The assumptions to define the FMS of this research are summarized in the following points:
The products enter and leave the production system through load/unload station.
The times including processing setup, loading, uploading, and so on for all parts are defined and well known.
The machine tool can perform one operation at a time.
Tool changing time is included in the processing time.
Once the operation is started, it cannot be divided.
The machine tool stops after producing specific number of parts to check the quality.
Problem formulation
The FMS considered in this article can produce
Product type route for a set of part types
TH (
Methodology
TSA finds the best locations of machine tools by utilizing two stages. The first stage is the optimization stage and the second stage is the prediction stage. The flow chart of TSA is given in Figure 2.

Flow chart of TSA.
Stage 1: optimization stage
In this stage, the FMS is evaluated at randomly selected locations for a set of machine tools. The PSS deterministic discrete event production simulation model is developed using a MATLAB 7.0 editor. The PSS simulates many production hours and finds the throughput of the FMS based on the locations of the machine tools in FMS. The throughput of the FMS can be calculated. To find the throughput in a given time, the total time,
The PSS is combined with GA to search the best sets of locations among the many evaluated sets of locations. The GA-based simulation runs until the fitness (throughput) of the FMS reaches its maximum value. The set of locations of machine tools that achieves the maximum fitness is considered as the optimal location.
Next, the above procedure is repeated with new locations of all machine tools and another optimal solution is generated; this procedure is repeated until the data required to train the ANN are generated.
The algorithm of this stage is carried out using the following steps.
Algorithm 1: PSS
Stage 2: prediction stage
To reduce the computational time that is needed when using simulation, ANN approach is proposed. ANN can learn a relationship between the input (locations of machine tools in our case) and the output (throughput). ANN is trained and introduced to predict the locations of the machine tools of FMS. The algorithm of this stage is carried out using the following steps.
Algorithm 2: ANN procedure
GA for locations of machine tools in FMS
GA has been successfully utilized in diverse optimization problems to search the best solutions. GA starts with an initial randomly selected population. The population consists of a set of solution called individual. Each solution in the population is encoded, and all solutions are evaluated to measure their fitness. Each element of the individual is called
Encoding
To express the individual, each machine tool location is represented by one gene. For example, the first gene represents the machine tool that will be located in the first station . Thus, the individual can be defined as given below
In this optimization problem, the size of the individuals is not limited, which means that FMS with any number of machine tools can be dealt with.
Crossover
In this article, the greedy crossover method 30 is applied because each machine tool should not appear more than one time in each individual. In this crossover method, the first gene of each offspring is selected randomly; then, the other genes leaving the first gene in the two individuals are compared and the gene that requires less time to reach from the first gene will be selected and encoded; if any of the leaving genes has already appeared in the individual, the other gene will be selected. The greedy crossover operation is illustrated in Figure 3.

Greedy crossover steps.
Mutation
The GA mutation is applied by swapping the values of two genes in a given individual. Figure 4 shows the mutation operation.

Swap mutation.
Application example
To demonstrate the efficacy of the proposed approach, the following simulation examples are accomplished. In each simulation, the production system is simulated for long production hours to produce a specific number of products. The number of machine tools, variety of products, the production ratio, and the route of each part type are given in each simulation. The algorithm described in stage 1 of the “Methodology” section is applied to find the locations of the machine tools that achieve the best efficiency of the FMS. The GA is utilized to search the FMS layout design (locations of machine tools). The GA in this example has the following characteristics: the population size is 100. The crossover and mutation rates are 0.8 and 0.05, respectively. And 15% of the individuals of the next populations are selected based on an elitist strategy.
Simulation conditions
Simulation 1: FMS with six machines
In this simulation, the FMS with six workstations is considered. Six machine tools are available and will be located through the workstations, one machine tool in each station. The FMS has the capability of producing five different types of products with the following production ratios: P1:P2:P3:P4:P5 = 8:6:4:3:1. Each of the five types requires six operations. The processing times and the setup times for each part on each machine tool are randomly selected between 5 and 10 min and between 1 and 4 min, respectively.
Simulation 2: FMS with 10 machines
In Simulation 2, 10 machine tools will be located through the well-defined workstations. The FMS will be used to produce 10 different product types. Each of these products required eight operations. The production ratio is given by P1:P2:P3:P4:P5:P6:P7:P8:P9:P10 = 40:20:80:50:40:30:70:12:15:5. The other conditions of this simulation are similar to Simulation 1.
In this research, all simulation examples used the same GA parameters to control the evaluation process. The following GA parameters were selected: The population size is 100; crossover and mutation rates are 0.9 and 0.05, respectively. These parameters were decided based on the experience and after several trial and error methods. Next, after finding the optimal solution for the machine tools’ locations problem, the Neural Network Toolbox in MATLAB 7.0 is used to build the prediction model. The input layer consists of 6 and 10 neurons for Examples 1 and 2, respectively. By trial and error, the number of neurons in the hidden layer for the two examples is selected and used which minimized the training error. The output layer consists of one neuron (FMS fitness) with a learning rate of 0.9. A total of 100 sets of results were obtained from PSS as the training group and 15 sets as the testing group.
Results and discussions
Based on the PSS results, the locations of machine tools are found. Tables 1 and 2 show some individuals acquired in the two simulations and their corresponding fitness. The comparison between some solutions of the layout problem and its corresponding fitness for ANN approach and PSS resulted in the two examples given in Tables 3 and 4. The regression analyses of outputs from the PSS and ANN approach for the two simulation examples are shown in Figure 5(a) and (b). The locations of the machine tools through the workstations achieve the best fitness optimized by the two simulations given in Table 5.
Some locations and their corresponding fitness acquired by PSS in Example 1.
PSS: production simulation system.
Some locations and their corresponding fitness acquired by PSS in Example 2.
PSS: production simulation system.
Comparison of some fitness predicted by ANN and those obtained from PSS for Simulation 1.
ANN: artificial neural network; PSS: production simulation system.
Comparison of some fitness predicted by ANN and those obtained from PSS for Simulation 2.
ANN: artificial neural network; PSS: production simulation system.
The layout achieves the best fitness for the two simulations.

Regression analyses of outputs from the two examples: (a) Example 1 and (b) Example 2.
Based on the presented results, the maximum fitness values corresponding to the two simulations are 1.4706E4 and 5.6006E4, respectively.
The results show that the ANN results are close to the PSS results, and the errors between the two approaches in the two simulation examples are relatively small as shown in Tables 3 and 4. The results of this research can be used to improve the production plan, and production engineers can utilize these results when making decisions regarding the layout design; furthermore, it can be applied to evaluate the working production line layout.
Conclusion
In this article, TSA for FMS optimal layout design is presented. TSA utilized a PSS to evaluate a set of machine tools’ location groups and to find a corresponding fitness for each group. The PSS is combined with GA to find the group of locations that achieves the maximum throughput. Unique genetic operations were applied for the efficient use of GA. Finally, the generated location groups and their fitness were used to train ANN. The well-trained ANN was then used instead of simulation system to evaluate the layout design. Through this method, a long simulation run time required by the simulation can be eliminated. Numerical simulations for different production cases showed that the results of the simulation and the trained ANN approach are close to each other, and prediction approach can be used efficiently instead of using the simulation each time.
The results of this research can be used to improve the production engineers’ decisions regarding the layout design. In addition, they can apply the proposed methodology to evaluate the working production line layout. Future work includes carrying out validation experiments by modeling the real systems and comparing the results with simulation modeling.
Footnotes
Appendix 1
Academic Editor: Jiin Y Jang
Declaration of conflicting interests
The authors declare that there is no conflict of interest.
Funding
This project was financially supported by King Saud University, Vice Deanship of Research Chairs.
