Adaptive large neighborhood search for a production planning problem arising in pig farming
Abstract
EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.
Full text
Nat Praseeratasang; Rapeepan Pitakaso; Kanchana Sethanan; Sasitorn Kaewman; Golinska-Dawson, Paulina Article Adaptive large neighborhood search for a production planning problem arising in pig farming Journal of Open Innovation: Technology, Market, and Complexity Provided in Cooperation with: Society of Open Innovation: Technology, Market, and Complexity (SOItmC) Suggested Citation: Nat Praseeratasang; Rapeepan Pitakaso; Kanchana Sethanan; Sasitorn Kaewman; Golinska-Dawson, Paulina (2019) : Adaptive large neighborhood search for a production planning problem arising in pig farming, Journal of Open Innovation: Technology, Market, and Complexity, ISSN 2199-8531, MDPI, Basel, Vol. 5, Iss. 2, pp. 1-21, https://doi.org/10.3390/joitmc5020026 This Version is available at: https://hdl.handle.net/10419/241317 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by/4.0/
Journal of Open Innovation: Technology, Market, and Complexity Article Adaptive Large Neighborhood Search for a Production Planning Problem Arising in Pig Farming Nat Praseeratasang 1, Rapeepan Pitakaso 1,*, Kanchana Sethanan 2, Sasitorn Kaewman 3and Paulina Golinska-Dawson 4 1Faculty of Engineering, Ubon Ratchathani University, Ubon Ratchathani 34190, Thailand; nat.pr[email protected] 2Research Unit on System Modeling for Industry, Deparment of Industrial Engineering, Faculty of Engineering, Khon Kaen University, Khon Kaen 40002, Thailand; [email protected] 3Faculty of Informatics, Mahasarakham University, Maha Sarakham 44150, Thailand; [email protected] 4Faculty of Engineering Management, Poznan University of Technology, 60-965 Poznan, Poland; [email protected] *Correspondence: [email protected]; Tel.: +6685-921-0826 Received: 9 April 2019; Accepted: 2 May 2019; Published: 7 May 2019 Abstract: This article aims to resolve a particular production planning and workforce assignment problem. Many production lines may have different production capacities while producing the same product. Each production line is composed of three production stages, and each stage requires different periods of times and numbers of workers. Moreover, the workers will have different skill levels which can affect the number of workers required for production line. The number of workers required in each farm also depends on the amount of pigs that it is producing. Production planning must fulfill all the demands and can only make use of the workers available. A production plan aims to generate maximal profit for the company. A mathematical model has been developed to solve the proposed problem, when the size of problem increases, the model is unable to resolve large issues within a reasonable timeframe. A metaheuristic method called adaptive large-scale neighborhood search (ALNS) has been developed to solve the case study. Eight destroy and four repair operators (including ant colony optimization based destroy and repair methods) have been presented. Moreover, three formulas which are used to make decisions for acceptance of the newly generated solution have been proposed. The present study tested 16 data sets, including the case study. From the computational results of the small size of test instances, ALNS should be able to find optimal solutions for all the random data sets in much less computational time compared to commercial optimization software. For medium and larger test instance sizes, the findings of the heuristics were 0.48% to 0.92% away from the upper bound and generated within 480–620 h, in comparison to the 1 h required for the proposed method. The Ant Colony Optimization-based destroy and repair method found solutions that were 0.98 to 1.03% better than the original ALNS. Keywords: ant colony optimization; adaptive large neighborhood search; assignment problems; scheduling problems 1. Introduction Open innovation is a hot issue for firms that wish to stay up to date. Firm operating in an environment of open innovation will have better chances to track the changing of new world social movements. Product producing companies must always maintain their technological planning and develop new methods so that they can adjust their operations to minimize costs as far as possible. Good planning serves to reduce costs and increase profits for the firm, especially in the Thai agricultural J. Open Innov. Technol. Mark. Complex. 2019,5, 26; doi:10.3390/joitmc5020026 www.mdpi.com/journal/joitmc
J. Open Innov. Technol. Mark. Complex. 2019,5, 26 2 of 21 industry. Thai agricultural firms are often not interested in highly productive technologies and effective planning methods, which reduces their profitability. Agricultural products are one of Thailand’s main exports, particularly in terms of meat exports. Thailand annually (2018) produces 14.54 million tons of pig meat, a 7.2% increase from last year. The average annual growth rate of pig production is currently 3.2%, and is therefore very high. Increasing pig production in Thailand is due to higher sales prices motivating farmers to expand their farms or establish new farms, thereby dramatically increasing pig production. Buriram province has a large number of pig farms because of the favorable climate and the basic farming knowledge that is passed between family generations. Research Motivation: Pornprasert Farm Co., Ltd. has been operating pig farms for more than 40 years. It is considered a large company and produces more than 1000 pigs monthly and it has 37 pig farms, each with different capacities. Pig production is divided into three stages: new born (ages 0 to 2 weeks); growing stage (ages 2 to 6 weeks); and mature (ages 6 to 8 weeks). The three pig production stages require different numbers of workers to care of them. There are a limited number of workers able to work on the farms, and each worker has a different level of experience. More experienced workers can be used to compensate a few unexperienced workers, but experienced workers demand higher daily wages. Decisions must be made regarding the design and size of each farm to be opened, and which workers have to be assigned to each farm to satisfy customer demands. Planning must consider the maximum profit that can be generated, product prices, and labor costs. Contribution of the article: Srivarapongse and Pijitbanjong (2019) [ 1 ] presents a differential evolution algorithm to discover the solution of the special case of the assignment problem. The driver of the harvester has been assigned to the sugarcane harvest set. Then the harvest set has been assigned to the sugarcane field whereas the daily maximum profit is generated. Worker skills and experiences and machine capacity and type are considered in our algorithm. In the present article, the pig production stages (which require different numbers of workers) is added and the farms’ mature pig production schedules have also been added, while multiple periods have been considered. Moreover, the limited number of workers in each period is presented and the research considers how highly skilled workers may compensate unexperienced worker, something which is mentioned in previous study. With regards to the proposed method, ant colony optimization (ACO) is combined with Adaptive Large Neighborhood Search (ALNS) to improve the effectiveness of the original ALSN. Finally, three new formulas, which are used to accept or reject the newly generated solution, have been proposed and presented. Paper Organization: This research consists of five sections: literature review; mathematical model formulation and the problem definition; and the proposed methods. Section 5then shows the computational framework and results, Section 6points out the conclusions and recommendations. 2. Literature Review This research is concerned with production planning where the farming production schedule has been decided and the worker assignments to assign the workers to work in the farms has been determined. The problem can be divided into two groups: (1) assign workers to begin production of some amount of pigs in a particular period so that the farm will have enough pigs to supply customer demands; and (2) for each period, the available workers will be assigned to the operating farms. Determining what period each farm should begin production affects the number of pigs that can be produced in each period as well as the required number of workers and amount of resources. All of these factors affect the company’s costs and profits. The literature review has focused on two closely related keywords: assignment problem, and generalized assignment problem. The worker assignment problem has been intensively studied. Al-Yakoob et al. [ 2 ] propose the teaching assistant assignment to school courses method. A weekly planning method for the teaching of some courses has been determined in order to minimize the working hours of the teaching
J. Open Innov. Technol. Mark. Complex. 2019,5, 26 3 of 21 assistant. This type of problem is sometimes called the ‘timetabling problem’ which is proven as the non-polynomial hard problem (NP-hard problem) [3–5]. In the present study, the workers have different skills levels and costs. Therefore, assigning different workers to different farms and periods will generate costs differences. Moreover, the workers must be constantly circulated due to the changing worker requirements for each production stage, further compounding the problems beyond timetabling issues. The next section of the literature review will focus on the assignment problem (AP). There are variances to the assignment problem, such as quadratic assignment problems and generalized assignment problems. Srivarapongse and Pijitbanjong [ 1 ] recently proposed a methodology to resolve the generalized assignment problems (GAP). In that study, the proposed methodology was applied to the sugarcane harvesting system, and considered driver skill and experience, and the machine types and capacities. The generalized assignment problem (GAP) is an extension version of the assignment problem in which multiple tasks are able to be assigned to one agent. The different assignments may consume a different volume of resources. Ross and Soland [ 6 ] first proposed GAP and proved that it was an NP-hard problem [ 7 ]. After that, it was proved to be NP-complete by Chu and Beasley et al. [ 8 ]. The exact methods are presented and tested with a generated data set that has no additional constraints. GAP has been widely studied by many researchers who try to solve real-world applications, such as Osorio and Laguna [ 9 ], who solve the GAP where worker availability and job rotation is considered. The days worked are also considered by Alfares [ 10 ] and Elshafei [ 11 ]. Other extension of the GAP is to consider more than one assignment, this is called a multi-level GAP. Recently, finding the location and allocation of tasks have been considered while solving GAP [12]. From thereview oftheproblemand themethodology, theproposedproblemrefersto acombination between assignment and scheduling problems. These problems aim to maximize profit generated from pig production for the whole planning horizon, as limited by the workers and customer demands. A new class of problem is therefore proposed in the present article. The problem has the following attributes: (1) lead time is required in one assignment, therefore when the assignment has been done in certain period, it needs to keep the server free for some time; (2) during the production time, the resources required can change to serve the different stages of pig production; and (3) the assignment in the current period is used to serve demand in later periods due to the production time and each assignment generating different production rates according to farm capacities. The proposed problem combines the assignment and scheduling problems which is an NP-hard problem, as explained above. A heuristics approach is therefore required to solve the problem. Well-known metaheuristics such as the variable neighborhood search [ 13 , 14 ], ant colony optimization [ 15 ], differential evolution algorithm (DE) [16,17] genetic algorithm (GA) [18], and the adaptive large neighborhood search [19]. The ant colony optimization (ACO) has been used in many research areas such as vehicle routing problem [ 20 ] and network problems [ 21 , 22 ]. ACO is a nature inspired heuristic, inspired by the ant behavior when searching for food. It is comprised of two main steps which are (1) construction of the initial solution using heuristics information; (2) update of the heuristic information. There are many ways to improve the efficiency of the ant colony optimization. The most effective choice that has often been used is the addition of strong local searches for the performance increase of the ACO [ 23 ]. An excellent review of the ACO was proposed by Blum et al. (2011) [ 24 ]. The ACO is one of the stochastic search heuristics. One of the most powerful stochastic searches found in the literature is the adaptive large neighborhood search (ALNS). This method will be used in our research since it is a fast and effective algorithm which is widely used to solve many combinatorial optimizations. Ropke and Pisinger [ 25 ] first proposed ALNS, which has four general steps: (1) construct the initial result; (2) pick the randomly selected destroy operator; (3) choose the randomly selected repair operator; and (4) accept or reject the new solution and the renew heuristic information. Steps (2) to (4) are then executed again once the heuristic’s information is updated [26].
J. Open Innov. Technol. Mark. Complex. 2019,5, 26 4 of 21 Various researchers have applied the ALNS in many research areas, for example in the resource-constrained project scheduling problem [ 27 ], the selective and periodic inventory routing problem [14], and the rural postman problem with time windows [28]. ALNS not only has been used individually, with some researchers having used it as a tool to improve the efficiency of other heuristics, such as using ALNS in the shaking phase of the variable neighborhood search (VNS) [ 29 , 30 ] and as the diversification strategy of VNS [ 31 ]. Besides, ALNS is incorporated with other heuristics and is also used as a hybrid with the well-known methods such as the Tabu Search [ 32 ] and greedy randomized adaptive search procedure (GRASP) [ 33 ], which have been applied successfully to solve the order batching problem and the pickup and delivery problems with transshipment, respectively. From the methodologies review on the solution approaches to solve the proposed problem, ALNS will be used in connection with the ant colony optimization. The ant colony optimization is used in the present study in combination with ALNS due to many researchers having proved that the ACO is good for path planning problems, scheduling problems, and assignment problems [ 34 – 43 ]. In the present study, the destroy and repair methods were used to determine and select a sequence of the farms which were assigned for pig production. Therefore, the ACO was applied in the destroy and repair operators for the ALNS efficiency improvement. There are some articles in the literature about pig production farms. Nadal-Roig and Pl à (2014) [ 44 ] present linear programming (LP) that was used to solve the multisite systems and to transfer the pigs from different stages (new born, growing and mature stage). In this research, the pigs in different stages need to feed in different farms. The objective in this research is to maximize the total gross margin, which was calculated from the income of sales of mature pigs and the production costs, which included feeding, veterinary expenses and transportation costs. This research did not include the worker detail such as the number of workers required, level of experience, and cost of labor, therefore in our proposed method these attributes have been added. Later on, Nadal-Roig [ 45 ] extended the previous work by formulating the mathematical model for the whole Pig Supply Chain (PSC). The new trend in research with regard to pig production is to improve the efficiency of the PSC by integrating the production and distribution process in order getthe optimal production and distribution planning [ 46 , 47 ], and to improve the transferring method from farm to farm to reduce the transferring cost and effectiveness [ 48 , 49 ]. The techniques that have been widely used in pig production planning are linear programming (LP), dynamics programming (DP) and hierarchic Markov models (HMM), because these methods can add different constraints to the main model therefore the LP can adapt to the real world problem [ 50 – 54 ]. In our proposed model, the efficiency and experience level of the pigs have been added into the model in which other models previously proposed have not yet mentioned. Because pig production is a hard problem, the techniques that have been proposed can solve the problems that are small. The problem that has a great number of farms or workers it is not possible to solve to optimality using these exact methods. Therefore, we have developed adaptive large neighborhood search (ALNS) to solve the large size of test instances. 3. Definitions of the Problem and Mathematical Construction 3.1. Problem Definitions From Figure 1, the demand for pigs in Periods 5, 6 and 7 is 400, 400, and 200 pigs, respectively. The pig farms’ capacities are as follows A (400), B (200), C (250), D (500), and E (300). The production lead time of the pigs is four periods (month). Therefore, to meet demand in period 5, production must be started in period 1. Farms B and D will be assigned to produce 200 and 200 pigs. The new born pigs are assigned to be grown in Farms B and D, and they will remain new born pigs for two periods. One worker is required to care for 100 new born pigs. Workers with an experience level of 0.6, 0.5, 1.7, and 1.5 have been selected to work in the first period. Farm B produces 200 pigs, and therefore workers 1 (0.6) and 3 (0.5) who have a total sum experience equal to 2.3 were selected, while workers 2 and
J. Open Innov. Technol. Mark. Complex. 2019,5, 26 5 of 21 4 were selected to take care of farm D which has a demand of 200 (two workers are needed and the sum of workers’ experience is 2.0). Each pig production stage requires different numbers of workers, with 100 new born pigs requiring one worker, the growing stage needs 0.8 workers per 100 pigs, and the maturity stage needs 0.5 workers per 100 pigs. The duration of each stage of pig production is also different. J. Open Innov. Technol. Mark. Complex. 2019, 5, 26 5 of 20 workers, with 100 new born pigs requiring one worker, the growing stage needs 0.8 workers per 100 pigs, and the maturity stage needs 0.5 workers per 100 pigs. The duration of each stage of pig production is also different. Figure 1. Pig production plan. 3.2. Mathematical Construction This section presents the mathematical model formulation used to compute the assignment problems in our case study. Index i illustrates the number of pig farms i = 1, 2, …, I t illustrates the time taken to feed pigs t = 1, 2, …, T k illustrates the workers which is used k = 1, 2, …, K Parameters Pi The income from matured pigs of farm i (baht/pigs) C Cost of producing mature pigs (baht/pig) Fi Fixed cost of farm i (baht) 𝐹 Number of new born pigs that can feed on the farm i 𝐸 Worker experience level k 𝐷 Daily worker wages k M big-M coefficient Dt Demand for pigs in period t L Lead time to produce pigs 𝐿 Duration of pigs in new born stage 𝐿 Duration of pigs in growing stage 𝐿 Duration of pigs in mature stage 𝑂 Minimum workers required for pigs in new born stage 𝑂 Minimum workers required for pigs in growing stage 𝑂 Minimum workers required for pigs in mature stage 𝑆 Size of farm i Decision Variables Yit 1 i f farm i starts to produce pig at time 𝑡 0 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒 Figure 1. Pig production plan. 3.2. Mathematical Construction This section presents the mathematical model formulation used to compute the assignment problems in our case study. Index iillustrates the number of pig farms i=1, 2, . . . ,I tillustrates the time taken to feed pigs t=1, 2, . . . ,T killustrates the workers which is used k=1, 2, . . . ,K Parameters PiThe income from matured pigs of farm i (baht/pigs) CCost of producing mature pigs (baht/pig) FiFixed cost of farm i (baht) FC iNumber of new born pigs that can feed on the farm i Ew kWorker experience level k Dw kDaily worker wages k Mbig-M coefficient DtDemand for pigs in period t LLead time to produce pigs LNDuration of pigs in new born stage LGDuration of pigs in growing stage LUDuration of pigs in mature stage ONMinimum workers required for pigs in new born stage OGMinimum workers required for pigs in growing stage OUMinimum workers required for pigs in mature stage SiSize of farm i
J. Open Innov. Technol. Mark. Complex. 2019,5, 26 6 of 21 Decision Variables Yit (1 if farm istarts to produce pig at time t 0otherwise Xit number of mature pigs produced from farm i at timet Oi(1 if farm iis open in time t 0otherwise Nkit (1 if worker kis working in farm iat time t 0otherwise Bit (1 if farm iis in production stage new born at time t 0otherwise Git (1 if farm iis in production stage growing at time t 0otherwise Hit (1 if farm iis in production stage mature at time t 0otherwise Objective function Max Z = T X t=1 I X i=1 (Pi−Ci)Xit − I X i=1 OiYit − K X k=1 T X t=1 Dw kNkt (1) Constraints T X t=1 Yit ≤1, ∀i=1. . . I (2) Xit ≤MYit,∀i=1. . . I, ∀t=1. . . T (3) T X t=1 Xit ≤Si,∀i=1. . . I (4) I X i=1 Xit =Dt+L,∀i+L≤T (5) BiQ =(1if Yit =1 0otherwise ,∀i=1. . . I (6) when Q =t. . . t+LN GiQ =(1if Yit =1 0otherwise ,∀i=1. . . I (7) when Q ≥t+LN+1 to t +LN+LG HiQ =(1if Yit =1 0otherwise ,∀i=1. . . I (8) when Q ≥t+LN+LGto t +LN+LG+LU K X k=1 Ew kNkit ≥ONBit,∀i=1. . . I; ∀t=1. . . T (9) K X k=1 Ew kNkit ≥OGGit,∀i=1. . . I; ∀t=1. . . T (10)
J. Open Innov. Technol. Mark. Complex. 2019,5, 26 7 of 21 K X k=1 Ew kNkit ≥OGHit,∀i=1. . . I; ∀t=1. . . T (11) I X i=1 Nkit ≤1, ∀k=1. . . K; ∀t=1. . . T (12) Objective function Z, which is shown in Formula (1), is purposed to obtain the highest profit, calculated by subtracting the profit generated by selling the mature pigs from the fixed opening cost of the farms and the labor costs. Constraint (2) determines that the farm can be opened at most one time during the planning horizon. Constraint (3) controls the number of pigs that can be produced only when the farms are in use. Constraint (4) shows that the farm cannot produce more pigs than its capacity. Constraint (5) determines that the total number of pigs produced by all the farms must fill the end-customer demands. Constraints (6) to (8) represent the controlled decision variable of all pig production stages. Constraints (9) to (11) requires that there must be enough workers to care for the pigs in all stages. Finally, Constraint (12) requires that each worker is assigned to at most one farm for each period. The mathematical model shown above is coded in optimization software, and lingo v.11 has been used in our research. An example of the solution that was generated by Lingo v.11 is shown in Table 1. Table 1. Solution of the mathematical model generated by Lingo v.11. Farm Period 1 2 3 4 5 6 7 A (400) 6 (400) 6 (400) 4 (400) 2 (400) B (200) 3 (200) 3 (200) 2 (200) 1 (200) C (250) 3 (200) 3 (200) 2 (200) 1 D (500) 3 (200) 3 (300) 2 (300) 1 (300) E (300) #of workers 8 11 13 12 7 3 1 Demand (400) (400) (200) An example of the number shown in Table 1, such as 3 (200), means at that period the farm has to produce 200 pigs and it needs three workers. When a farm starts to produce 200 at the new born stage it needs to execute other two stages which are the growing and mature stages. The new born, growing, and mature stages need three, two and one periods respectively. The number of periods in each stage is controlled by Formulas (6)–(8). For each period needs to produce enough number of pigs to supply the demand at period t+L. From Table 1, farm B and D has to produce 200 and 200 pigs, respectively, due to the amount needed to fulfill the demand of Period 5. This requirement is controlled by Formula (5). In our planning, a particular farm can start the production only one time during the planning horizon and it is controlled by Formula (2) while the amount of production is controlled by Formulas (3) and (4) , which should not exceed its capacity (Formula (3)). The number of workers used in each period is calculated from the new born stage. In this example, experiences of workers are assumed to be equal to the value of 1.00. Three, two and one workers are needed for 200 new born pigs, and the growing and mature stages of pig production. 4. The Proposed Methods As addressed above, ALNS comprises four steps: (1) creating the initial solution; (2) choosing the destroy operator and performing the destroy operator; (3) picking the repair operator and performing the repair operator; and (4) renewing the parameters and the current solution. Steps (2) to (4) are iteratively simulated until the maximum number of iterations have been reached, upon which the algorithm is then ended. The ALNS steps will now be further explained.
J. Open Innov. Technol. Mark. Complex. 2019,5, 26 8 of 21 4.1. Construct Initial Solution The first solution is created from a string of real values. Step 1: Generate two random vectors. The first vector has a dimension of 1*N where N is the number of farms and the second vector has a dimension of 1*W where W is the number of workers. Step 2: Sort each vector according to the value in each vector position. Step 3: For each period, assign the farms step-by-step (using vector 1) to operate according to the order given in Step 2. The assignment of the farm to be operated is determined from the demand of period t+L where tis current period and L is the lead time to produce mature pigs. Step 4: Continue assigning farms to produce mature pigs until all customer demand has been satisfied. Step 5: For each period, assign workers to the operated farm according to the order of workers in vector 2 and the number of workers required in each period based on the pig stages in that period. Table 2shows the random vector before and after being sorted. The value in the vector position is randomly generated. Table 3shows the vector shown in Table 2after being sorted. If customer demand in Periods 4 to 6 is 1000, 750, and 750, respectively, the capacity of Farms 1 to 8 will be 400, 500, 500, 400, 600, 620, 550, and 450, respectively. Each period has 12 workers to work. Each worker has daily wages of 300, 350, 500, 400, 450, 450, 400, 300, 450, 450, 500, and 350 baht, respectively. The daily wages are based on worker experience, which are 1.0, 1.3, 1.4, 1.4, 1.4, 1.35, 1.2, 1.45, 1.25, 1.45, 1.3, and 1.35, respectively. If Stages 1, 2, and 3 of pig production have two, one, and one workers required per 500 pigs, respectively and if a certain farm has 1000 new born pigs, it will need four workers for the first stage. If Workers 2, 3, and 4 are selected to work, it is sufficient due to their combined experience of 1.3, 1.4, and 1.4 (total 4.1). The production lead time of the pigs is divided into three periods. The new born pig stage lasts two periods, while the growing and mature stages last for one period each. Therefore, the results of using vectors #1 and #2 to schedule the farm and assign workers are shown in Table 4. From Table 4, in Period 1, Farms 1, 2, and 3 start production to have 1000 pigs delivered in Period 4. Four workers are needed to produce 1000 pigs in Stage 1. In Period 2, Farms 5 and 8 produce 750 pigs, and three more workers are needed to produce them. In total, Period 2 requires seven workers (including four workers for the Stage 1 production at Farms 1, 2, and 3). The initial solution procedure can be concluded in Algorithm 1. Table 2. Vector values used to generate the initial solution. Vector #1 Farm’s Vector 1 2 3 4 5 6 7 8 0.16 0.26 0.26 0.90 0.35 0.78 0.94 0.74 Vector #2 Worker’s Vector 1 2 3 4 5 6 7 8 9 10 11 12 0.59 0.61 0.98 0.25 0.14 0.64 0.15 0.85 0.34 0.91 0.42 0.18 Table 3. The vectors in Table 1after being sorted. Vector #1 Farm’s Vector 1 2 3 5 8 6 4 7 0.16 0.26 0.26 0.35 0.74 0.78 0.9 0.94 Vector #2 Worker’s Vector 5 7 12 4 9 11 1 2 6 8 10 3 0.14 0.15 0.18 0.25 0.34 0.42 0.59 0.61 0.64 0.85 0.91 0.98
J. Open Innov. Technol. Mark. Complex. 2019,5, 26 15 of 21 % diffOpt. can be calculated from Formula (31). %dif f OPt =[Z(XU)−Z(XD)] Z(XU)×100 (31) where Z(X U ) is the time that Lingo v.11 took to find the best solution and Z(X D ) is the time which the proposed algorithm takes to find the best solution. Table 9shows that the proposed algorithms used 61.3–64.7% of the computational time than the proposed heuristics when all the proposed algorithms were able to find the exact same optimal solution. For medium and large test instance sizes, the comparison between made with the upper bound created by Lingo v.11 that was found in 480 h for medium size, and 620 h for the large test instance sizes. The computational time of the proposed heuristics was 60 min (this comes from the pretest run of the algorithm, the algorithm converts to maturity stage between 45–50 min). The computational results are revealed in Table 10. Table 10. Computational consequence of the medium and large data set and the case study. #No Lingo V.11 Computational Time ALNS-1 ALNS-2 ALNS-3 ALNS-4 Profit 60 m 60 60 60 Upper Bound Profit Profit Profit Profit M-1 10,807,920 480 10,789,954 10,807,920 10,798,920 10,798,920 M-2 10,987,275 480 10,807,920 10,880,920 10,825,920 10,864,920 M-3 10,934,581 480 10,825,920 10,898,984 10,869,945 10,899,683 M-4 10,944,129 480 10,807,920 10,838,989 10,876,953 10,884,931 M-5 10,925,920 480 10,825,976 108,479,56 10,865,978 10,875,999 L-1 33,239,045 620 32,720,760 32,765,902 32,893,458 32,994,514 L-2 33,182,125 620 32,809,450 32,923,891 32,991,768 33,018,913 L-3 32,998,282 620 32,873,768 32,883,778 32,890,123 32,993,459 L-4 33,289,197 620 32,998,192 33,001,209 33,098,412 33,198,138 L-5 33,208,592 620 32,988,123 32,998,156 33,009,134 33,114,595 Case study 32,887,185 620 32,693,760 32,676,748 32,779,093 32,810,945 % diffUB 0.92 0.72 0.67 0.48 % different from UB can be calculated from Formula (32). %dif f UB =[Z(XU)−Z(XD) Z(XU)×100 (32) where Z(X U ) is the upper bound of profit generated by Lingo v.11 in 480 or 620 h, and Z(X D )=is the objective function of the proposed algorithm generated in 60 min. From the computational results shown in Table 10, the proposed algorithms were very effective since they can find results that are only 0.48–0.92 away from the upper bound solution while using much less computational time (the terminated condition of the medium and large size test instances of the proposed method is just one hour in comparison to the 480 and 620 used by Lingo for the medium and large sizes, respectively. A statistical test was undertaken to compare all the proposed heuristics, with the results displayed in Table 11. Remark: The name of method has been discussed in Table 7. From the statistical test in Table 11, the Wilcoxon sign rank test, the new worse solution acceptance formulas (ALNS-2 and ALNS03) were found to outperform the original formula (ALNS-1), but if comparing the two, the new proposed formula did not perform differently. The combination of the new and old formula (ANLS-4) outperforms all the other formulae, meaning that the heuristics
J. Open Innov. Technol. Mark. Complex. 2019,5, 26 16 of 21 information which is used in the worse solution formula should integrate both current iterations and the solution quality. Table 11. Statistical test of the proposed heuristics. ALNS-1 ALNS-2 ALNS-3 ALNS-4 Obj.bound 0.0004 0.00064 0.00044 0.00194 ALNS-1 0.0134 0.0028 0.00112 ALNS-2 0.0784 0.0096 ALNS-3 0.0037 Other contribution of the proposed heuristics is that it adds the destroy and repair method from ant colony optimization (ACO), as explained in Sections 4.2.7,4.2.8,4.3.3 and 4.3.4. Table 12 shows the computational results if P 1 is the defender algorithm, P 2 is the challenger algorithm, and % diffis calculated using Formula (32). % diffP=P1−P2 P1 ×100 (33) Table 12. Profit percentage difference between the defender and challenger algorithms. #No % diffP ALNS-1 vs. ALNS-5 ALNS-2 vs. ALNS-6 ALNS-3 vs. ALNS-7 ALNS-4 vs. ALNS-8 M-1 0.00 0.00 0.00 0.00 M-2 0.00 0.00 0.00 0.00 M-3 0.00 0.00 0.00 0.00 M-4 0.00 0.00 0.00 0.00 M-5 0.00 0.00 0.00 0.00 L-1 1.08 1.01 1.20 1.01 L-2 2.02 2.60 2.09 2.34 L-3 2.10 2.53 2.12 2.33 L-4 2.04 1.29 1.27 1.25 L-5 2.00 2.16 2.09 2.09 Case study 1.60 1.82 1.81 2.32 average 0.985455 1.037273 0.961818 1.030909 From Table 12, the basic idea of ACO, as we have explained in Sections 4.2 and 4.3, is adding to the original ALNS and it can be seen to have beneficial effects in terms of increasing the ANLS solution quality. This is because the ACO allows the selection of the removed and inserted tasks by systematically using data from the historical search. Table 13 shows the statistical test comparison. Table 13. pvalue of comparison the ALNS with ACO-without ACO. Type of Method Proposed Method defender ALNS-1 ALNS-2 ALNS-3 ALNS-4 Challenger ALNS-5 ALNS-6 ALNS-7 ALNS-8 p-value 0.00388 0.00388 0.00388 0.00388 Remark: The name of method has been discussed in Table 7. Table 13 shows that all the proposed heuristics that contain the ACO behaviors (ALNS-5 to 8) were found to outperform the ALNS without the ACO.
J. Open Innov. Technol. Mark. Complex. 2019,5, 26 17 of 21 The case study proposed in the present study has been executed and the production plan is shown in Table 14. Table 14. Case study production plan. #Farm Period 1 2 3 4 5 6 7 8 Q Cap 1 500 500 500 2 1500 1500 1500 3 500 500 500 4 1500 1500 1500 5 1400 1400 1400 6 1000 1000 1000 7 900 900 900 8 0 1500 9 1400 1400 1500 10 1000 1000 1000 11 1000 1000 1000 12 1300 1300 1400 13 1200 1200 1300 14 1000 1000 1200 15 500 500 500 16 1000 1000 1200 17 650 650 650 18 0 1500 19 1000 1000 1000 20 1100 1100 1100 21 1300 1300 1300 22 1000 1000 1000 23 1000 1000 1000 24 1300 1300 1500 25 500 500 500 26 500 500 500 27 650 650 650 28 1300 1300 1500 29 800 800 1000 30 1500 1500 1500 31 1200 1200 1350 32 1400 1400 1400 33 800 800 1000 34 0 500 35 500 500 500 36 0 1000 37 800 800 1500 QQ 5200 5000 3950 3300 4400 3250 4500 3500 From Table 14, the production is the total number of pigs produced in that period We can conclude that the total profit is 32,910,945 baht and there were four farms that were not operating during the planning horizon. 6. Conclusions and Future Research This paper has presented eight ALNS heuristics-based algorithms to solve production planning problems in pig farming. The production planning comprised of two stages, which were: (1) the starting period and the pig farm production, and (2) assigning workers with different skill levels to the farms to maximize the total profit. Once a farm begins pig production it must execute three different production stages, with each production stage requiring a different number of workers. Furthermore, the skill differences between the workers changed the number of workers required at each production stage.
J. Open Innov. Technol. Mark. Complex. 2019,5, 26 18 of 21 We have created a mathematical model to represent the problem to solve this case study and 15 randomly generated data sets of the best solution or the upper bound generated by Lingo v.11 have been compared with the proposed method. In the small dataset size test instances, the optimization software was able to optimally solve the problems. Meanwhile, the adaptive large-scale neighborhood search (ALNS) was developed to figure out the medium and large size dataset test instance problems. The researchers modified the traditional destroy and repair operators to be applicable to solve the proposed problem and have presented four different ant colony optimization based destroy and repair methods to raise the efficiency of the proposed method. Two new acceptances of the worse solution formulas are presented in our algorithm. The combined use of both new worse solution acceptance formula was also tested. The computational result shows that ALNS-4 is the best proposed method since it outperforms all the other heuristics when finding the optimal solution, meaning that mixing the two new formulae and the original acceptance formula is the best combination. The original acceptance formula focuses on using information about the new solution quality compared with the current iteratively solution. Of the two new formulae, the first focuses on the current iteration counter, while the second new formula converts the traditional formula and adds the information of the current iteration counter to the formula as well. From the computational results, the best acceptance formula is found to be using the traditional and new proposed formulae. Therefore, the researchers can conclude that the number of iterations plays an important part in setting or designing of the worse-case acceptance probability. The computational result shows that the destroy and repair method of the proposed ALNS has an important role in the finding of better solutions, as can be seen in Tables 6and 7. ACO therefore is beneficial for combining with the original ALNS. ACO is one out of the most effective algorithm, therefore it would be effective to use the ACO also in the selection of the destroy and repair method not only for selecting the removed or repaired strategies which is in used in this article. The case study results show that the new proposed method is able to increase profits by 23.5% compared to company’s original production plan. For future research, the firm’s yearly plan can be under assessed with regards to the proposed method, the researchers suggest that other factors should be considered to cover all potential problems such as transport routing, road conditions, and forecasting the price of raw materials. Author Contributions: N.P. gathers data, design the experiment, design the algorithm; R.P. codes the algorithm, K.S write the draft article, S.K. perform the experiment and test the algorithm, P.G.D inspect the final version of the article. Funding: This research grants by Department of Industrial Engineering, Ubonratchathani University, Thailand. Acknowledgments: Thank you very much for technical support from all Ph.d students in Metaheuristics Laboratory (MLO-lab) that providing the computer to executes the experiment. Conflicts of Interest: There is no conflict of interest. References 1. Srivarapongse, T.; Pijitbanjong, P. Solving a special case of the generalized assignment problem using the modified differential evolution algorithms: A case study in sugarcane harvesting. J. Open Innov. Technol. Mark. Complex. 2019,5, 5. [CrossRef] 2. Al-Yakoob, S.; Sherali, H. A column generation mathematical model for a teaching assistant workload assignment problem. Informatica 2017,28, 583–608. [CrossRef] 3. De Werra, D.; Asratian, A.S.; Durand, S. Complexity of some special types of timetabling problems. J. Sched. 2002,5, 171–183. [CrossRef] 4. Eikelder, H.M.; Willemen, R.J. Some complexity aspects of secondary school timetabling problems. In Practice and Theory of Automated Timetabling III; Springer: Berlin/Heidelberg, Germany, 2001; Volume 2079, pp. 18–27.
J. Open Innov. Technol. Mark. Complex. 2019,5, 26 19 of 21 5. Even, S.; Itai, A.; Shamir, A. On the complexity of timetable and multi-commodity flow problems. Siam J. Sci. Comput. 1976,4, 691–703. [CrossRef] 6. Ross, G.T.; Soland, R.M. A branch and bound algorithm for the generalized Assignment problem. Math. Program 1975,8, 91–103. [CrossRef] 7. Fisher, M.L.; Jaikumar, R. A generalized assignment heuristic for vehicle routing. Networks 1981 ,11, 109–124. [CrossRef] 8. Chu, P.C.; Beasley, J.E. A genetic algorithm for the generalized assignment problem. Comput. Oper. Res. 1997 , 24, 17–23. [CrossRef] 9. Osorio, M.A.; Laguna, M. Logic cuts for multi-level generalized assignment problems. Eur. J. Oper. Res. 2003,151, 238–246. [CrossRef] 10. Alfares, H.K. Optimum work force scheduling under the (14,21) days-offtimetable. Adv. Decis. Sci. 2002 ,6, 191–199. 11. Elshafei, M.; Alfares, H.K. A dynamic programming algorithm for days-offscheduling with sequence dependent labor costs. J. Sched. 2008,11, 85–93. [CrossRef] 12. Laguna, M.; Kelly, J.P.; Gonzalez Velarde, J.L.; Glover, F. Tabu search for the multilevel generalized assignment problem. Eur. J. Oper. Res. 1995,82, 176–189. [CrossRef] 13. Maenhout, B.; Vanhoucke, M. A perturbation metaheuristic for the integrated personnel shift and task re-scheduling problem. Eur. J. Oper. Res. 2018,3, 806–823. [CrossRef] 14. Aksen, D.; Kaya, O.; Salman, F.S.; Tüncel, Ö. An adaptive large neighborhood search algorithm for a selective and periodic inventory routing problem. Eur. J. Oper. Res. 2014,239, 413–426. [CrossRef] 15. Gutjahr, W.J.; Rauner, M.S. An ACO algorithm for a dynamic regional nurse scheduling problem in Austria. Comput. Oper. Res. 2007,3, 66–642. [CrossRef] 16. Storn, R.; Price, K. Differential evolution—A simple and efficient heuristic for global optimization over continuous spaces. J. Glob. Optim. 1997,4, 341–359. [CrossRef] 17. ¸Sahin, C.; Kuvvetli, Y. Differential evolution based meta-heuristic algorithm for dynamic continuous berth allocation problem. Appl. Math. Model. 2016,40, 10679–10688. [CrossRef] 18. Holland, J.H. Adaptation in Natural and Artificial Systems; MIT Press: Cambridge, MA, USA, 1975. 19. Shaw, P. Using constraint programming and local search methods to solve vehicle routing problems. Princ. Pract. Constraint Program. 1998,1520, 417–431. 20. Toklu, N.E.; Gambardella, L.M.; Montemanni, R. A multiple ant colony system for a vehicle routing problem with time windows and uncertain travel times. J. Traff. Logis. Eng. 2014,2, 52–58. [CrossRef] 21. D’Andreagiovanni, F.; Mett, F.; Nardin, A.; Pulaj, J. Integrating LP-guided variable fixing with MIP heuristics in the robust design of hybrid wired-wireless FTTx access networks. Appl. Soft Comput. 2017 ,61, 1074–1087. [CrossRef] 22. D’Andreagiovanni, F.; Nardin, A. Towards the fast and robust optimal design of wireless body area networks. Appl. Soft Comput. 2015,37, 971–982. [CrossRef] 23. Gambardella, L.M.; Montemanni, R.; Weyland, D. Coupling ant colony systems with strong local searches. Eur. J. Oper. Res. 2012,220, 831–843. [CrossRef] 24. Blum, C.; Puchinger, J.; Raidl, G.R.; Roli, A. Hybrid metaheuristics in combinatorial optimization: A survey. Appl. Soft Comput. 2011,11, 4135–4151. [CrossRef] 25. Ropke, S.; Pisinger, D. An adaptive large neighborhood search heuristic for the pickup and delivery problem with time windows. Transp. Sci. 2006,4, 455–472. [CrossRef] 26. Mancini, S. A real-life multi depot multi period vehicle routing problem with a heterogeneous fleet: Formulation and adaptive large neighborhood search based matheuristic. Transp. Res. Part. C Emerg. Technol. 2006,70, 100–112. [CrossRef] 27. Muller, L.F. An adaptive large neighborhood search algorithm for the multi-mode RCPSP. DTU Manag. Eng. 2011,3, 25. 28. Monroy-Licht, M.; Amaya, C.A.; Langevin, A. Adaptive large neighborhood search algorithm for the rural postman problem with time windows. Networks 2017,1, 44–59. [CrossRef] 29. Stenger, A.; Vigo, D.; Enz, S.; Schwind, M. An adaptive variable neighborhood search algorithm for a vehicle routing problem arising in small package shipping. Transp. Sci. 2013,1, 64–80. [CrossRef]
J. Open Innov. Technol. Mark. Complex. 2019,5, 26 20 of 21 30. Li, J.; Pardalos, P.M.; Sun, H.; Pei, J.; Zhang, Y. Iterated local search embedded adaptive neighborhood selection approach for the multi-depot vehicle routing problem with simultaneous deliveries and pickups. Expert Syst. Appl. 2015,7, 3551–3561. [CrossRef] 31. Sze, J.F.; Salhi, S.; Wassan, N. A hybridisation of adaptive variable neighbourhood search and large neighbourhood search: Application to the vehicle routing problem. Expert Syst. Appl. 2016 ,65, 383–397. [CrossRef] 32. Žulj, I.; Kramer, S.; Schneider, M. A hybrid of adaptive large neighborhood search and tabu search for the order-batching problem. Eur. J. Oper. Res. 2018,2, 653–664. [CrossRef] 33. Qu, Y.; Bard, J.F. A GRASP with adaptive large neighborhood search for pickup and delivery problems with transshipment. Comput. Oper. Res. 2012,10, 2439–2456. [CrossRef] 34. Yang, H.; Qi, J.; Miao, Y.C.; Sun, H.X.; Li, J.H. A new robot navigation algorithm based on a double-layer ant algorithm and trajectory optimization. IEEE Trans. Ind. Electron. 2018. [CrossRef] 35. Ma, Y.; Gong, Y.; Xiao, C.; Gao, Y.; Zhang, J. Path Planning for Autonomous Underwater Vehicles: An Ant Colony Algorithm Incorporating Alarm Pheromone. IEEE Trans. Veh. Technol. 2019 ,68, 141–154. [CrossRef] 36. Yang, J.; Xu, M.; Zhao, W.; Xu, B. A Multipath Routing Protocol Based on Clustering and Ant Colony Optimization for Wireless Sensor Networks. Sensors 2010,10, 4521–4540. [CrossRef] [PubMed] 37. Stutzle, T.; Hoos, H. Max-min ant system and local search for the travelling salesman problem. In Proceedings of the 1997 IEEE International Conference on Evolutionary Computation (ICEC ’97), Indianapolis, IN, USA, 13–16 April 1997; pp. 309–314. 38. Lee, M.G.; Yu, K.M. Dynamic Path Planning Based on an Improved Ant Colony Optimization with Genetic Algorithm. In Proceedings of the 2018 IEEE Asia-Pacific Conference on Antennas and Propagation (APCAP 2018), Auckland, New Zealand, 5–8 August 2018. 39. Zhou, Z.; Nie, Y.; Gao, M. Enhanced Ant Colony Optimization Algorithm for Global Path Planning of Mobile Robots. In Proceedings of the 2013 International Conference on Computational and Information Sciences (ICCIS 2013), Shiyan, China, 21–23 June 2013; pp. 698–701. 40. Mao, L.; Liu, S.; Yu, J. An improved ant colony algorithm for mobile robot path planning. J. East. China Univ. Sci. Technol. 2006,32, 997–1001. 41. Zhao, M.; Dai, Y. Robot Three Dimensional Space Path-planning Applying the Improved Ant Colony Optimization. Telkomnika Indones. J. Electr. Eng. Comput. Sci. 2015,14, 304–310. [CrossRef] 42. Wang, L.; Kan, J.; Guo, J.; Wang, C. Improved Ant Colony Optimization for Ground Robot 3D Path Planning. In Proceedings of the 2018 International Conference on Network-based Distributed Computing and Knowledge Discovery (Cyberc 2018), Zhengzhou, China, 18–20 October 2018. 43. Zhang, Y.; Niu, X. Simulation Research on Mobile Robot Path Planning Based on Ant Colony Optimization. Comput. Simul. 2011,28, 231–234. 44. Nadal-Roig, E.; Pl à , L. Multiperiod planning tool for multisite pig production systems. J. Anim. Sci. 2014 ,92, 4154–4160. [CrossRef] 45. Nadal-Roig, E.; Pl à -Aragon è s, L.M.; Alonso-Ayuso, A. Production planning of supply chains in the pig industry. Comput. Electron. Agric. 2018. [CrossRef] 46. Van der Vorst, J.G.; Da Silva, C.; Trienekens, J.H. Agro-Industrial Supply Chain Management: Concepts and Applications; FAO: Rome, Italy, 2007. 47. Rodr í guez-S á nchez, S.V.; Pl à -Aragon é s, L.M.; Albornoz, V.M. Modeling tactical planning decisions through a linear optimization model in sow farms. Livest. Sci. 2012,143, 162–171. [CrossRef] 48. Taylor, D.H. Strategic considerations in the development of lean agri-food supply chains: A case study of the UK pork sector. Supply Chain Manage. Int. J. 2006,3, 271–280. [CrossRef] 49. Perez, C.; Castro, R.D.; Simons, D.; Gimenez, G. Development of lean supply chains: A case study of the Catalan pork sector. Supply Chain Manag. Int. J. 2010,15, 55–68. [CrossRef] 50. Pl à , L.M.; Sandars, D.L.; Higgins, A.J. A perspective on operational research prospects for agriculture. J. Oper. Res. Soc. 2014,65, 1078–1089. [CrossRef] 51. Pl à , L.M. Review of mathematical models for sow herd management. Livest. Sci. 2007 ,106, 107–119. [CrossRef] 52. Rodr í guez, S.V.; Pl à , L.M.; Faulin, J. New opportunities in operations research to improve pork supply chain efficiency. Ann. Oper. Res. 2014,219, 5–23. [CrossRef]
J. Open Innov. Technol. Mark. Complex. 2019,5, 26 21 of 21 53. Pl à , L.M.; Faul í n, J.; Rodr í guez, S.V. A linear programming formulation of a semi-Markov model to design pig facilities. J. Oper. Res. Soc. 2009,60, 619–625. [CrossRef] 54. Huirne, R.B.M.; Dijkhuizen, A.A.; van Beek, P.; Hendriks, T.H.B. Stochastic dynamic programming to support sow replacement decisions. Eur. J. Oper Res. 1993,67, 161–171. [CrossRef] © 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).