Abstract

The mode of production in the modern manufacturing enterprise mainly prefers to MTO (Make-to-Order); how to reasonably arrange the production plan has become a very common and urgent problem for enterprises’ managers to improve inner production reformation in the competitive market environment. In this paper, a mathematical model of production planning is proposed to maximize the profit with capacity constraint. Four kinds of cost factors (material cost, process cost, delay cost, and facility occupy cost) are considered in the proposed model. Different factors not only result in different profit but also result in different satisfaction degrees of customers. Particularly, the delay cost and facility occupy cost cannot reach the minimum at the same time; the two objectives are interactional. This paper presents a mathematical model based on the actual production process of a foundry flow shop. An improved genetic algorithm (IGA) is proposed to solve the biobjective problem of the model. Also, the gene encoding and decoding, the definition of fitness function, and genetic operators have been illustrated. In addition, the proposed algorithm is used to solve the production planning problem of a foundry flow shop in a casting enterprise. And comparisons with other recently published algorithms show the efficiency and effectiveness of the proposed algorithm.

1. Introduction

Casting enterprise is a typical enterprise of MTO production; the requirements of products’ quality and delivery are higher. The demand quantity prefers single and small batch which is not conducive to stock-based production, and time limit of casting enterprise is a long-term problem. Therefore, the timely delivery rate is generally relatively low in many casting enterprises [1]. In order to improve the timely delivery rate, a research of an actual foundry flow shop has been taken; it is a medium-sized manufacturing enterprise and the practical manufacturing process is shown in Figure 1. Casting unit number is automatically created in the commissioning date of order by the single assignment program. At the stage of production preparing, all of the manufacturing tasks can be divided into single piece production by process route. At the stage of production planning, the content of the single piece production will become rich and perfect with the whole ongoing processes (from modeling to finished product storage). If there is a requirement of adding or adjusting the process of a single piece in the following manufacturing process, it should be realized in the way of modifying the corresponding process route or manufacturing processing. At the stage of product sales, the life processing of the single piece is entering end gradually, and it contains two states: one is “complete,” which means that customers have confirmed the order and its manufacturing processing life is completed, and the other one is “waiting for disposal,” which means that there is some repair or rework of the product and the manufacturing processing is not completed.

The production process of foundry enterprise is various and complex, as well as various physical changes and chemical changes at the same time [2]. Therefore, reasonable production planning is the key element of foundry enterprise; it is not only the main component to ensure the stable operation of production but also an effective guarantee to complete production target. The order-driven foundry sector suffers strong competitive pressure at the regional and global levels as well as ecological pressure due to high energy consumption in foundry furnaces [3]. More efficient methods of elaborating production planning can directly influence sector competitiveness and energy expenses through the effective rationing of furnace loads and stock in process levels; it can effectively reduce energy expenses and direct cost. In addition, the reduction of stocking process levels can improve quality and lead time of product. However, the research of production planning in order-driven foundries has been little explored [4].

Based on the actual manufacturing process of foundry flow shop, many factors have to be considered when making the production planning, such as human resource, facility resource, technology resource, and capacity resource [5]. Because the important degrees of these factors are different from each other in different enterprises, in order to summarize the common characteristics of arranging production planning of foundry enterprise, assume that the aim of production planning is maximizing the profit in this paper, which is based on a certain amount of orders with capacity constraint of processing unit. The remainder of this paper is organized as follows. In the next section, the relevant literature related to production planning is reviewed. Problem description and optimization model are developed in Section 3. Section 4 details the proposed improved genetic algorithm. A case analysis and comparison with other algorithms are illustrated in Section 5. Conclusions are given in Section 6.

2. Literature Review

Production planning problem is a typical optimization problem, which is an important theoretical significance and economic interests in foundry industry [68]. The producing iron castings problem is the motivation for present work in foundry enterprise. In recent years, experts and scholars have put many researches’ focus on the scheduling optimization algorithm and proposed some effective methods or models, such as multiobjective evolutionary algorithms [9] (DLP, Deterministic Linear Programming [10], ACO, Ant Colony Optimization [11], ABC, Artificial Bee Colony [12], AIA, Artificial Immune Algorithm [13], UGF, Universal Generation Function [14], and MIP, Mixed-Integer Programming [15]) and decision support optimization and simulation (SLP, System Layout Planning [16], MIND, Method for Analysis of Industrial Energy Systems [17], M&FS, Mass and Fuzzy Sets [18], SDST, Spreadsheet Decision Support Tool [19], SDSM, Scheduling Decision Support Model [20], TOFPS, Two-phase Order Fulfillment Planning Structure [21], and ERP&NN, ERP System including Neural Network [22]).

Gauri [23] demonstrated that the product-mix planning problem for batches of melt can be modeled mathematically. Weighted integer goal programming formulations were developed to determine the optimal product-mix for the immediate next heat in a small scale iron foundry, which could be useful for general iron foundries; however, the presented approach for postoptimality analysis was quite tedious, so development of a useful algorithm and necessary software was needed for easy postoptimality analysis. Teixeira Jr. et al. [24] proposed a binary integer model for production scheduling problems in market-driven foundries. The objective was to minimize the cost of manufactured products based on balancing and synchronizing the molding, pouring, and finishing steps, which aimed at eliminating high stock levels and rationing the use of production resources and foundry furnaces. Synchronization among the three production phases directly reduced production cycle time and indirectly improved the quality of products. Matičević et al. [25] developed a new mathematical model for scheduling foundry operations based on the Manufacturing Resource Planning, Just in Time, and Optimized Production Technology concepts. More recently, Camargo et al. [26] considered the production planning problem in small foundries and proposed the heuristic to solve the problem in a hierarchical way, combined the genetic algorithm with a knapsack problem algorithm to explore a larger set of alloy sequences, but did not consider the multiobjective function which could reduce both waste penalties and costs of setup, inventory, and backlogging. Gravel et al. [27] presented a genetic algorithm for the solution of an industrial scheduling problem in an Alcan aluminum foundry situated in Québec and sought the best processing sequence for n orders on m parallel machines. Gomaa [28] developed a computer aided foundry charge optimization system which could be used to minimize the charge materials and energy costs for operating a foundry melting facility during the intermediate-term and short-term planning periods (yearly, monthly, or weekly production plan). Landmann and Erdmann [29] chose a heuristic approach to find a solution to the problem, and a fuzzy logic technique was used in a higher level of abstraction originating from knowledge and experience identified in a qualitative research.

In these literatures, scholars used different algorithms or hybrid algorithms to realize production planning problems optimization for foundry enterprise, but GA is rarely used. As we know, GA is the most widely used evolutionary algorithm of production planning problem. It has good global search capability based on its self-organization, self-adaption, and self-learning, but it may converge too fast and limit the search to a local optimum prematurely if there was no effective method of population initialization. Recently, more and more papers begin to take research on this topic. Chang et al. [30] proposed a mining gene structure technique integrated with the two-phase subpopulation GA for parallel machine scheduling problem, and the mining problem of elite chromosomes was formulated as a linear assignment problem and a greedy heuristic using threshold to eliminate redundant information. Wang and Tang [31] presented an improved adaptive GA for solving the minimum makespan problem of production planning, which was inspired by hormone modulation mechanism, and then the adaptive crossover probability and adaptive mutation probability were designed. Kurdi [32] proposed a new hybrid island model GA to solve the production planning problem with the objective of makespan minimization, and a new naturally inspired self-adaptation phase strategy was proposed which was capable of striking a better balance between diversification and intensification of the search process; in the proposed self-adaptation phase strategy, the best individuals were recruited to perform a local search using Tabu Search. Huang and Süer [33] proposed a dispatching rule based genetic algorithm with fuzzy satisfaction levels to solve the multiobjective manufacturing production planning problem, and the objective was to develop a decision making platform which appropriately handles conflicts among different performance measures in a manufacturing system. Rahman et al. [34] considered a make-to-stock production system, where three related issues must be considered: the length of a production cycle, the batch size of each product, and the order of the products in each cycle. To deal with these tasks, they proposed a genetic algorithm based lot production planning approach with an objective of minimizing the sum of the setup and holding costs for permutation flow shop problems.

While because of the competition environment is becoming more and more fierce, the customers’ demands are becoming more and more personalized in practical foundry flow shop, so the profit space of enterprise is becoming more and more smaller and the production structure is also changing; the traditional approaches of arranging production planning could not be effective. The foundry enterprises have to focus on two aspects: one is on-time delivery date of orders and the other is higher profit rate of orders. So the motivation of this research can be concluded as follows:(1)Usually, the main constraint problems of making production planning for most manufacturing enterprises are human resource, outsourcing resource, manufacturing capacity, and so on. In foundry enterprise, the key constraint problem is the modeling (molding and core making) and melting capacity of melting pot, so one motivation is to propose an arranged production planning model for the order-driven foundry enterprise with modeling and melting capacity constraint of processing unit.(2)Many useful heuristic algorithms were used to solve the multiobjective optimization problems, and different algorithms have different advantages of solving a practical problem. For solving the production planning problem, GA is the most frequently used algorithm. So the other motivation is to introduce an improved GA to solve the proposed production planning model, and the objective function is to reduce the total cost of production.

3. Problem Description and Optimization Model

3.1. Problem Description

Customers randomly submit orders with specific item type, quantity, and alloy. When the production planning manager negotiates with the customers about delivery date, usually it will obtain an unachievable date that will lead to the delay of delivery and very likely to lose future orders. While it is the most important point to achieve the best profit under the condition of satisfying the customers’ demand, the product plan makers have to try their best to cut down the manufacturing cost (material cost, processing cost, delay cost, and so on) in maximum extent.

In order to make a feasible production planning which could meet the resource allocation circumstances at a lowest cost [33, 34], there are two parameters that must be considered. One is resource allocation quantity (Raq), which contains facility resource, human resource, time resource, and so on. The other one is process route (Pr), which contains modeling, melting, cleaning, casting separating, welding, and so on (the details are illustrated in Table 2). They can be expressed in the form of vector:

Also, there are some special problems that exist in the actual manufacturing environment; for example, the production capacity of the processing unit will not be changed in a period of time, a process must be completed in one time, and the quality of product is usually bigger and not convenient to transport once the processing is unqualified and there is little possibility of repair. So, these problems must be taken into consideration when making the production planning.

3.2. Mathematical Model

According to the above analysis, the amount of order is fixed before making production planning, so the profit maximization is often taken as the optimization goal of making production planning, that is, the cost minimization. In the actual manufacturing environment of foundry flow shop, the capacity of processing units is unchanged in its life period, such as the melting pot; its volume is fixed, so it is different from a general manufacturing enterprise which just only considers the human resource, outsourcing resource, and transportation resource when making production planning. In this paper, an optimization model of making production planning is constructed, which is based on the modeling and melting capacity constraint of processing unit; the objective is cost minimization. Before constructing the model, some assumptions are given out as follows:(1)Make the production planning weekly and the object is the orders which were signed last week.(2)The important degrees of customers will not be taken into account when making the production planning, and they are just focusing on the component of product.(3)The capacity constraint of processing unit is the key element which has been taken into consideration in this paper; the human resource constraint will not be considered.(4)The processing units must be checked, making sure that they are good before executing the plan task, and the breakdown of processing units will not happen during the whole life of production plan.(5)Ideally, there is no priority among the orders, and different orders have different delivery dates.(6)The depreciation cost or consumption cost of processing facility during the whole life of production plan will not be taken into account.

Before formulating a mathematical model of the problem, the notations used throughout the remainder of this paper are defined in Notations.

3.2.1. Total Consumption Cost

The goal of resource allocation is to satisfy the acquirement of production task and decrease the total consumption cost () including material cost (), process cost (), delay cost (), and occupy cost () of processing unit, and can be illustrated as follows:

In practical manufacturing environment of foundry enterprises, the demands for raw materials of different order tasks are the same; in order to reduce the mutual influence of each order task when arranging the production planning, the weight value of is introduced when calculating ; in the same way, , , and of , , and are introduced, so (2) can be reformed into the following equation:

As follows, (4) to (8) have illustrated the value of each variable in (3).

(1) . There are different unit prices of different kinds of material, so this paper adopts (4) to summarize different material costs of different production tasks:where and represents containing material ; otherwise it does not, for .

(2) . There are different unit costs of different kinds of processes, and different production tasks have different processes:where and represents containing procedure c; otherwise it does not, for .

(3) . As the same batch of planning must be completed before entering into next processing unit and the production times of different plans are different from each other, there will be some processing units in the state of waiting which could result in the facility occupy cost:

(4) . Different kinds of factors will be taken into consideration when making the production plan, so it will delay some orders’ delivery date and that will also result in the delay cost:where means obtaining the minimum integer which is greater than .

3.2.2. Profit of Production Planning

Once all sales orders have been signed, the total amount () of all orders is determined which is obtained by (9). In Section 3.2.1, it is assumed that there are only four kinds of costs which have been taken into account in this mathematical model, which are material cost (), process cost (), delay cost (), and occupy cost (), so the profit of all sales orders (, that is, the profit of production planning) is obtained by (10a). According to (2), (10a) can be reformed into (10b) which is shown as follows:

3.2.3. Capacity Constraint

In order to enhance the availability of the optimization model, there are some constrains that must be considered. According to the actual situation of foundry flow shop, the production capacity is determined, so actual production and processing capacity must be considered in the process of task arrangement. The volume of the furnace is certain, so it must be taken into consideration when modeling (molding and core making) and melting. Equation (11) is the sum of modeling quantities () of production tasks which should be less than the production capacity of the processing unit (Cpu-Modeling) when modeling, and (12) is the sum of demand quantity of material of each production task which belongs to the same batch should be less than the production capacity of the processing unit when melting (Cpu-Melting).

4. Solution Approach

4.1. Improved Genetic Algorithm (IGA)

The genetic algorithm is a random global search algorithm which means that the process of biological evolution in nature and simulation of the survival of the fittest and also its scalability and robustness are better than other optimization algorithms, so it is often used to solve the optimization problem [3538]. While traditional genetic algorithm is easy to converge prematurely and falls into the local optimum, one of the reasons is that it will cause many disadvantages by using the roulette method when parent solutions engender offspring solutions; the main disadvantages could be divided into two parts [39]:(1)Some individuals with superior fitness can be evaluated rapidly which will cause the population to mature early and fall into local optimum.(2)There is much randomness in the process of evolution, and the unelected better individuals will cause the degradation of the population.

In production planning problems of foundry industries, different scholars have proposed many different approaches by IGA. Wu et al. [40] tackled the issue by considering a two-machine flow shop problem with a truncated learning consideration, where the objective function is to minimize the makespan, and a branch-and-bound algorithm is first developed for the approximate optimal solution; then four genetic heuristic-based algorithms were proposed for the approximate optimal solution. Bandyopadhyay and Bhattacharya [41] proposed a modified genetic algorithm with a fuzzy variable crossover algorithm to minimize the value of total cost and bullwhip effect of a biobjective supplier selection problem. In comparison with a mixed-integer linear programming solver, genetic algorithm with problem-specific operators was found to provide faster (with a subquadratic computational time complexity) and more reliable solutions to very large (more than 1 million integer variables) casting sequence optimization problems [42]. Production planning problem considers the determination of machine assignment for each operation, which has been proven to a NP-hard problem, so Thammano and Teekeng [43] proposed a novel metaheuristic algorithm which was a modification of the genetic algorithm, and the proposed algorithm introduced two new concepts to the standard genetic algorithm: () fuzzy roulette wheel selection and () the mutation operation with tabu list. Worapradya and Thanakijkasem [44] developed an optimization model by integrating two main planning phases of traditional scheduling, () planning cast sequence and () scheduling of steel-making and timing of all jobs; at the same time a novel procedure was given for genetic algorithm chromosome coding which mapped Gantt chart and hierarchical chromosomes.

Production planning based on the resource allocation belongs to discrete optimization problem; in the space of discrete solutions, the approximate optimal solution is not necessary in the range from subapproximate optimal solution to better solution and maybe there is just a little step between approximate optimal solution and worst solution. Therefore, the paper illustrates the IGA from two aspects: one is adopting different evolution modes for the solutions with different fitness to ensure the diversity of population and the other one is selecting different genetic operators in the different phase of algorithm which can improve adaptive ability and better approach the approximate optimal solution in a finite number of iterations. The main differences between the IGA and the parallel genetic algorithm (PGA) are iterative process and genetic operators: () the iterative process of IGA is the same as the traditional GA which is serial; there is only one initial population and the evolution process is continuous from one generation to next generation, while the iterative process of PGA is parallel and there are at least two different initial populations at beginning, which can ensure the populations evolution is in parallel model; () the kind of genetic operators of IGA can be divided into selection operator, crossover operator, and mutation operator, while another kind of operator must be introduced into PGA which is defined as transport operator; it plays a key role in constructing the communication bridge among different initial populations; () the values of genetic operator in IGA are alternative in different evolution phases, while they are always the same in the iterative process of PGA. Moore [45] has proposed an accurate parallel genetic algorithm to schedule tasks on a cluster; the key element is that the parallel scheduler used M-ary encoding and included a shared communication bus constraint. Ku et al. [46] used parallel simulated annealing and genetic algorithms based on a coarse-grained model to derive solutions for solving the static facility layout problem with rectangle shape areas. The parallel implementation of simulated annealing based genetic algorithm enabled a quick search for the approximate optimal solution. Trajkovski [47] presented parallel genetic algorithm that was used for the task of evolving imperative sort programs; the individual programs with simple assembler code were illustrated and the effect of different parameters on quality of the programs and time needed for finding the solution were reported. In conclusion, the flowchart of IGA is shown in Figure 2 and the details are illustrated as follows.

4.2. Chromosome Encoding

Chromosome encoding refers to transforming the feasible solution from its solution space to search space of genetic algorithm; chromosome represents a possible solution and its coding mode usually can be divided into four types: binary coding, real coding, symbol coding, and decimal coding. Taking into consideration the actual model, this paper adopts the decimal coding and an entire chromosome coding which contains production task coding, production task process coding, and material type coding. The detailed coding scheme is shown in Table 1.

For example, the production planning with chromosome (PtpC) is , and according to the capacity constrain of processing unit, the scheduling order is (Ptp-1, Ptp-7: 1), (Ptp-3, Ptp-6: 2), (Ptp-5, Ptp-9: 3), (Ptp-8: 4), (Ptp-2, Ptp-10: 5), (Ptp-4: 6) which can be decoded into (10, 3: 1), (7: 2), (9, 6, 2: 3), (4, 8: 4), (1: 5), (5: 6) which is shown in Figure 3; the meaning of (10, 3: 1) is that the processing order of Ptp-10 and Ptp-3 is first, and (Ptp-7: 2) means processing order of Ptp-7 is second; the remainders can be explained in the same way.

Assume that there are eleven basic processes; that is, the value of is “11.” If Ptp-i contains process (), the decoded corresponding value is “1”; otherwise, the value is “0”; for example, the processes of Ptp-10 are , so the decoded corresponding value of is . The material type of Ptp-10 is , and the decoded corresponding value of material is .

4.3. Initialize Population

Initializing population of genetic algorithm has a great influence on the convergence speed and solution quality, and it is a key step in the process of genetic algorithm.

(1) Diversity of Population. The function Randperm() is cited to initialize population in many cases which can produce unrepeated set, which is a Matlab Function and is presented to describe the diversity as follows:

Namely, randomly generate a set of numbers and the production planning is ranked according to these numbers’ order. For instance, if , while , so the order of production task is (Ptp-10, Ptp-3, Ptp-7, Ptp-9, Ptp-6, Ptp-2, Ptp-4, Ptp-8, Ptp-0, Ptp-5).

Meanwhile, the algorithm will fall into local optimum because of unreasonable initialization, so the richness of population diversity must be taken into account during the chromosomes initialization, and, in order to ensure the diversity of population, the hamming distance, the adequacy coefficient, and the index of maximum and minimum level [48] are proposed to calculate a survival probability for the individuals; while, in this paper, the hamming distance is represented by the fitness value of population to solve the problem of diversity of population, it sets the value into 5% which is the profit rate of total orders, and the lower individual will be substituted with another random approximate optimal individual.

(2) Size of Population. In order to avoid the premature convergence and decrease the calculation amount, the population size cannot be too small or too large, and according to the actual application, the general population size is set into different value which is usually between 20 and 100.

4.4. Fitness Evaluation

Fitness function of genetic algorithm is transformed from the objective function of problems. The pros and cons of each chromosome quality in genetic algorithm are evaluated by using fitness function. The greater fitness value of chromosome is, the better quality of chromosome is. The minimum value of total cost of production planning is obtained by (14). Because the total amount of all orders () is fixed, in order to standardize calculation process of IGA, the maximum profit rate of all orders (max Pr) is defined as the objective of IGA which is shown as (15):According to the proposed weight values of different factors in Section 3.1, (15) can be reformed into the following equation:

4.5. Two Different Phases

The convergence speed and efficiency of genetic algorithm are affected by the set of genetic operators (selection operator Ps, crossover operator Pc, and mutation operator Pm). The set of selection operator has a great effect on the convergence speed of algorithm, and the set of crossover operator and mutation operator will affect the ability of searching solution of algorithm. Therefore, in order to improve the adjustment ability and performance of algorithm [4951], this paper adopts two different sets of genetic operators for the different phases of algorithm.

In the first phase, Ps is set to a larger value and Pc and Pm are set to a relative smaller value. An approximate optimal solution or a subapproximate optimal solution more easily with larger Ps will be obtained. The value of Pc and Pm in the first phase of algorithm is relatively smaller, and the global search ability of algorithm is mainly affected by Pc and Pm, so when the algorithm is running in a certain phase, it will search the approximate optimal solution, repetitively, in a subspace. So the genetic operators should be adjusted and the genetic algorithm would enter into the second search phase for eliminating the premature convergence of search; namely, Ps is set into a smaller value , and Pc and Pm must be set into a larger value, which can make more effective solutions involved in the crossover operator and mutation operator; it will generate more new solutions.

Based on the changing of approximate optimal solution and judging rules, the two different search phases will be adopted in circulation. In the calculating process of one phase, different operators must satisfy the constraint, which is formulated in (17). It not only can ensure the diversity of population but also could avoid falling into local approximate optimal solution:

4.6. Selection Operator

The stochastic tournament strategy [5254] and elite preservation strategy [5557] are adopted in this paper of selection operator. The stochastic tournament strategy is implemented on the whole individuals, randomly chose a series of individuals, and retained the individual which has highest fitness to next generation. The elite preservation strategy is implemented on the global approximate optimal individuals to replace the worst individual in next generation, and the process can be illustrated as follows:(1)Selecting individuals from a group randomly and comparing their fitness value, the individual with the highest fitness should be retained to the next generation.(2)Repeating the above process times, as a result, there will be individuals from next generation.

4.7. Crossover Operator

The main purpose of crossover operator [58] is to generate better offspring by combining the genetic alleles of two selected parents from the population with probability Pc; the crossover position is generated randomly and the crossover progress can be shown in Figure 4 and it can be illustrated as follows.

Firstly, randomly generate the crossover position (here are two intersections: 7-9-6-2-4, 2-1-8-9-3) for PtpC-1 and PtpC-2 and keep the middle serial number sequence unchanged.

Secondly, record the serial number sequence of PtpC-2 which is starting from the second intersection (10-5-7); when arriving at the end of the gene, return to the initial position (4-6-2-1-8-9-3) of a chromosome, and continue to record the serial number sequence of PtpC-2 until reaching the second intersection which is called PtpC-2-1 (10-5-7-4-6-2-1-8-9-3); and in the same way, we can obtain PtpC-1-1 (8-1-5-10-3-7-9-6-2-4).

Thirdly, switch the sequence of PtpC-1-1 and PtpC-2-1, and obtain PtpC-1-1 (10-5-7-4-6-2-1-8-9-3) and PtpC-2-1 (8-1-5-10-3-7-9-6-2-4);

Fourthly, according to the remained middle serial number sequence of PtpC-1 (7-9-6-2-4), remove the same serial numbers from PtpC-1-1 (10-5-7-4-6-2-1-8-9-3) and the rest sequence of PtpC-1-1 is (10-5-1-8-3).

Fifthly, insert the remained middle serial number sequence of PtpC-1 (7-9-6-2-4) into the rest sequence (10-5-1-8-3) of PtpC-1-1 and the position of (7-9-6-2-4) is unchanged, and then we can obtain the PtpC-2 offspring (8-3-7-9-6-2-4-10-5-1).

Sixthly, in the same way, PtpC-2 offspring (6-4-2-1-8-9-3-5-10-7) is obtained.

4.8. Mutation Operator

While the selection operator and crossover operator are the main operators of genetic algorithm, the mutation operator can change the diversity of the population and generate some useful offspring which will improve the local search ability of population. This paper adopts the position variation of the mutation operator in probability, randomly generating the mutation genes sequence and then selecting new genes from the related gene domain [5961]. In addition, the value of Pm is usually set value in [0.001, 0.005].

4.9. Stopping Rule

The maximum value of the objective function is difficult to be determined; in order to avoid infinite loop of algorithm, the appropriate number of iterations needs to be set as the termination of algorithm, which means that when the number of iterations () is reaching the set value (), the algorithm stops calculating.

5. Illustrative Example and Performance Analysis

In order to demonstrate the application of the proposed model and algorithm, the authors investigate the actual production process of a foundry company in Anhui province of China. The products of the company are mainly casting productions according to customers’ demand for the production, and it is a typical small- and medium-sized enterprise of sand casting production; there are about 400 employees; its annual output is about 10000 tons and quarterly production capacity is about 3000 tons. As usual, a completed product will undergo many different processes like modeling, melting, cleaning, dividing, and so on, and as production capacity of the processing units is different, making a flexible production plan is very important. During the process of the algorithm’s implementation, the integer encoding type is adopted for gene encoding in Tables 2 and 3, and different processes of different orders are shown in Table 4; from Process-1 to Process-11 is consistent with the details of process which are illustrated in Table 2. While the molding and coring making are different processes, the processing times of them may be different, but, in the case, the molding and core making are continuous processes and are done by the same team, so in order to better achieve the approximate optimal results, we combined them as one process “modeling.”

5.1. Computational Outcomes

The parameters of proposed IGA are population size, generation number, selection ratio, crossover ratio, and mutation ratio, which are shown in Table 5 after running some pilot tests. There are two conditions of switching two phases of genetic algorithm and one of them must be satisfied:(1)There are successive same five generation approximate optimal solutions for the genetic algorithm.(2)The profit rate of order is less than 5%.

The IGA has been coded in Matlab R2013a and runs on a 2.6 GHz Intel(R) Core(TM) i5-3230M CPU with 4 G RAM in Windows 7 platform. After executing the Matlab codes with input parameters, an approximate optimal solution set is (Ptp-1, Ptp-7: 1), (Ptp-3, Ptp-6: 2), (Ptp-5, Ptp-9: 3), (Ptp-8: 4), (Ptp-2, Ptp-10: 5), (Ptp-4: 6) which is shown in Figure 5; the meaning of (Ptp-1, Ptp-7: 1) is that the processing order of Ptp-1 and Ptp-7 is first, and (Ptp-3, Ptp-6: 2) means that processing order of Ptp-3 and Ptp-6 is second; the remainders can be explained in the same way. The profit rate of this approximate optimal solution is 15.05% and the convergence curve is shown in Figure 6; the comparison of signed delivery date and actual delivery date is illustrated in Table 6.

5.2. Comparison Experiment

To demonstrate the effectiveness of IGA, the comparison experiment has been carried out with comparing the obtained results with traditional genetic algorithm (Matičević et al., 2008 [25]), memetic algorithm (MA) (Gao et al. 2011 [62]), PGA (Ku et al. 2011 [46]), Iterative Backward List Scheduling Algorithm (IBLSA) (Jiang et al. 2015 [63]), and Tabu Search (TS) (Costa et al. 2015 [64]). The results of calculation based on the IGA in 30 calculation times are shown in Table 7 and the best profit rate is 15.05%. Table 8 presents the compared results which refer to the average profit rate and best profit rate. It can be observed from Table 8 that the proposed genetic algorithm is significantly better than the other four compared algorithms. The algorithm exhibiting the next best performance is TS algorithm, which clearly performs better than the other three algorithms. At the same time, the real result from company manager has been obtained and the value of best profit rate is 9.15%, which is lower than the results of five optimization algorithms.

The best result of traditional genetic algorithm is 14.45% and the convergence curve is shown in Figure 7, and the actual profit rate is 9.15%, which is offered by the company manager in actual manufacturing environment. Although the quality of the final solution obtained for both approaches is approximately equivalent for profit rate of production planning which is shown in Table 8, there is a slight difference among the approximate optimal value returned by them. In a more precise way, the proposed IGA can find a better solution set compared to traditional genetic algorithm and the real result of company manager in terms of statistical significance.

According to the results of proposed mathematical model, the approximate optimal solutions might be varied to decrease the production cost and the enterprise manager can select it to arrange production planning in a practice situation. Furthermore, if the required data is gathered, the proposed model could be easily coded and applied by industrial/computer engineer who is familiar with operations research and optimization software like Matlab. Also, an expert system with user-friendly interface could be also designed to facilitate the proposed model by the nonexpert personnel of the enterprise managers.

6. Conclusion and Future Work

With the changing of product mode of foundry enterprise, the personalized demands of customers are more and more obvious and the status of customers is becoming higher. Almost the whole foundry enterprises are reconstructing the production structure, so how to reasonably and effectively arrange the production plan is the key problem. Combined with analysis of former researches and literatures, based on the practical manufacturing environment of foundry enterprise, an optimization mathematical model of production planning is proposed and the objective is to promote the profit rate of a certain amount of orders. In order to obtain the approximate optimal solution, a modification of traditional genetic algorithm is introduced. The IGA is mainly illustrated in two aspects: one is adopting two different phases of the process of algorithm with the different genetic operators being set separately for different phases and the other one is using two different converting rules for two different phases of algorithm; one rule is that according to the actual requirement of foundry enterprise the profit rate of orders must be higher than 5% and the other rule is that five times approximate optimal solutions are continuously appearing. Finally, an example and comparison with other algorithms are given to illustrate the proposed model and IGA. The experimental results have shown that the proposed approach is able to achieve better profit rate of orders in actual foundry industry more effectively.

In the aspect concerning the limitations of this research, it is important to notice that the constraints of this mathematical model are not the same as the actual situation of foundry enterprise, whereas there are human resource limitations, facility limitations, and transportation cost, so more factors could be taken into account in the model of production planning. A simple algorithm is often used to solve the approximate optimal solution of the mathematical problem; when more factors are introduced into the model which will increase the complexity, a hybrid algorithm should be used to solve it. Concerning the limitations of this research proposed in previous section, the suggestions for further research are listed as follows:(1)More different factors could be introduced into the mathematical model of production planning, such as the human cost and transportation cost.(2)A hybrid algorithm could be used to solve the production planning problem, for example, combining the advantage of Tabu Search algorithm for the higher local optimal solution with genetic algorithm, which could avoid fast convergence and promote the efficiency of algorithm.

Notations

:The number of processing units
:The number of production orders
:The number of procedures
:The number of types of materials
The production task , for
where represents containing procedure ; otherwise it does not, for
:The resource number of processing units
:The process route of production task , for
:The corresponding weight value of
:The corresponding weight value of
:The corresponding weight value of
:The corresponding weight value of
:The total cost of material of , for
:The cost of material of , for
:The demand quantity of material of , for
:The unit price of material , for
:The yield of casting of , for
:The unit cost of procedure in , for
:The occupy cost of processing unit , for
:The unit occupy cost of processing unit , for
:The occupy time of processing unit , for
The cost time of processing unit of for
:The delay cost of , for
:The delay time (in days) of , for
:The unit cost of delay time (in days) of , for
:The maximum time cost of procedure , for
:The time cost of procedure of , for
:The total amount of the order , for .

Competing Interests

The authors declare that there are no competing interests regarding the publication of this paper.

Acknowledgments

This research was financially supported by the Science and Technology Support Program of Hubei Province in China (2015BAA063 and 2014BAA032) and the Fundamental Research Funds for the Central Universities (2016III024 and 2016-YB-020).