Guanglei Jiao, Zuhua Jiang*, Jianmin Niu and Wenjuan Yu
(1. Department of Industrial Engineering and Management, Shanghai Jiao Tong University, Shanghai 200240, China; 2. Shanghai Ship Technology Research Institute, Shanghai 200032, China)
Abstract:This paper focuses on the optimization method for multi-skilled painting personnel scheduling.The budget working time analysis is carried out considering the influence of operating area, difficulty of spraying area, multi-skilled workers, and worker’s efficiency, then a mathematical model is established to minimize the completion time.The constraints of task priority, paint preparation, pump management, and neighbor avoidance in the ship block painting production are considered.Based on this model, an improved scatter search (ISS) algorithm is designed, and the hybrid approximate dynamic programming (ADP) algorithm is used to improve search efficiency.In addition, the two solution combination methods of path-relinking and task sequence combination are used to enhance the search breadth and depth.The numerical experimental results show that ISS has a significant advantage in solving efficiency compared with the solver in small scale instances; Compared with the scatter search algorithm and genetic algorithm, ISS can stably improve the solution quality.Verified by the production example, ISS effectively shortens the total completion time of the production, which is suitable for scheduling problems in the actual painting production of the shipyard.
Keywords:ship painting; personnel scheduling; multi-skilled workers; scatter search; task constraints
Ship painting operation plays a very important role in shipbuilding.According to statistics, in the whole ship construction process, the working hours of the painting operation account for about 12%-18% of the total ship hours[1].The level of ship painting management is largely reflected in the consumption of paint materials for ship painting and the consumption of working time per unit area of painting[2].Due to factors such as space restrictions and raw material supply, the previous process of ship block painting is often delayed.Due to the change in the dock loading plan, the delivery time of the subsequent process often needs to be advanced.These two factors make the processing time requirements of the painting operation very strict, so the project completion time becomes the key to the painting schedule.
In the field of scheduling of ship painting, Cho et al.[3]and Kwon et al.[4]proposed heuristic multi-stage methods combined with a mixed integer programming model and priority rules to solve the block painting scheduling problem.Zhang et al.[5]researched the block painting scheduling problem with time and space constraints, but it is difficult to meet the actual scheduling requirements assuming that all blocks are re-entrant only once and the waiting time is the same.Liu and Yao[6]established a hierarchical network planning model for ship block painting production, and used a hybrid genetic algorithm base on a simulated annealing hierarchy to optimize the underlying network planning.
Some researchers regard ship painting as a part of the shipbuilding schedule.Basan et al.[7]introduced a heuristic simulation-based approach to address the scheduling problem for shipbuilding in a real-world multi-stage production system.They explored different types of heuristic rules to reduce the overall production and assembly time of shipbuilding.Liu et al.[8]based on the organizing of the various logistical processes for blocks and the circulation process in the shipyard, established a model that takes the task time window and other factors as constraints to minimize the sum of delay time and no-load time of flat transporters while satisfying the punctuality of scheduling tasks.Finally, the load efficiency can be improved, and the delivery time can be reduced by the optimization model.Tao et al.[9]focused on assembly blocks in shipyards considering precedence and cooperating constraints, and they proposed a metaheuristic algorithm based on the hybrid topological graph and genetic algorithm with tabu search.
In general, the studies on scheduling for ship painting mostly aimed at reducing time or cost.On the other hand, the research on ship block painting operation scheduling always focuses on scheduling each process at the planning level.However, there are few scheduling studies considering the assignment of painting team workers.Although some studies take ship painting as a project scheduling problem considering human resource constraints and propose an effective scheduling method with priority rules[10].Unfortunately, the study only regards human resources as resource constraints, and fails to consider that painting workers are multi-skilled workers with different efficiency.
For labor-intensive production systems, worker allocation plays a pivotal role in operating efficiency.The skill level of the ship painting workers is uneven, so it is unrealistic to ignore worker heterogeneity.In the analysis of human factors in the field of shipbuilding, operational safety[11], human-computer interaction[12], and the influence of environmental factors[13]are often considered.But in the field of scheduling research, goals such as working hours, total costs, and workload balancing are often focused on[14-15].Zhu et al.and Zhou et al.aimed at the resource constrained project scheduling problem by considering human resources[16-17].They allocated the number of workers to maximize profit and used improved meta-heuristic algorithms to solve problems.
For the problem of fine-grained consideration of personnel scheduling, the human factor makes scheduling a particularly difficult optimization problem.Considering the problem scenario of the retail industry[18], Hassani et al.proposed a heuristic staff rescheduling algorithm, which can quickly obtain a Pareto optimal solution between a set of costs and the number of shift changes.For a potash mine scheduling problem, Seifi et al.[19]designed a mixed integer linear program considering the assignment of people and machines under work shifts.They conducted numerical experiments on examples derived from real data.Fang et al.[20]proposed an improved non-dominated sorting genetic algorithm to shorten the production cycle for the problem of worker allocation and balance on the aircraft assembly line.In addition, based on a common management model in actual management, there are also teams considering a multi-agent project staffing problem involving a single project which has to be scheduled under resource constraints[21].Finally, a bi-evel optimization model is proposed to manage human resources.
After reviewing the above research, it is found that the personnel scheduling problem is limited by the character of the specific problem itself, and mathematical models are often established based on specific production scenarios.As a non-deterministic polynomial difficult problem, its exact solution scale is limited.Therefore, much literature focuses on metaheuristic algorithms.However, due to the previous imperfect information system and extensive management method of the shipyard, few scholars have carried out research on personnel scheduling of ship block painting.
In this paper, a mathematical model is proposed based on the painting production of a shipyard in Shanghai.Based on the model, a path relinking strategy is designed for the painting personnel scheduling model, and an improved scatter search algorithm based on hybrid approximate dynamic programming is proposed.Through the comparison with the GUROBI solver and other algorithms in numerical experiments, the effectiveness of the hybrid algorithm proposed in this paper is verified, which can provide decision support for the process of ship painting production from extensive management to fine management.
The tasks of block painting of ships in the spraying workshop can be divided into pre-spraying, spraying, Touch-up, and pump management tasks.The spraying task is the core of the painting operation, and every ship block needs to be further decomposed into more than a dozen working areas.An example of the block working areas is shown in Fig.1.
Fig.1 Diagram of work areas in a ship block
Considering the elements involved in the painting process, the constraints between painting tasks include task priority constraints, paint preparation constraints, pump management constraints, and neighbor avoidance constraints.
1.1.1Taskpriorityconstraints
For the spraying tasks in the work area on the same block, the workers follow the task priority relationship of the space rules: first inside and then outside, first up and then down.In the mathematical model, the task setM={1,2,…,m},i,j∈Mrecorded as the task number; the worker setN={1,2,…,n},k∈Nrecorded as the worker number; the 0-1 variablexijindicates that there is a priority relationship constraint between tasks, and whenxijis 1, it indicates that the taskiis the previous priority task of the taskj,xijis 0 indicates that the taskiis not the previous priority task of the taskj.
1.1.2Paintpreparationconstraints
The paint needs to be prepared before it is used in the painting task, and the prepared paint needs to be used up within a certain period, known as the effective service periodTES.If the paint required for the task has not been prepared before the task starts, it will takeTPPminutes to prepare unified paint according to the sum of the paint task requirements in the next effective service period.In the mathematical model, the value ofTPPis 10; the value ofTESis 240;pirepresents the number of paint required for taski; the 0-1 variablelirepresents whether paint needs to be prepared at the beginning of taski,liis 1 when the required paint is not prepared at the beginning of taski, andliis 0 indicates that the required paint has been prepared.
1.1.3Pumpmanagementconstraints
Since the high-pressure air pump used in the spraying task has safety risks, when a block has a spraying task, there must be a person responsible for checking and monitoring the equipment status, which is called pump management.DenoteM′ as the set of pump management tasks, andqirepresents the number of the pumping task to which spraying taskibelongs.
1.1.4Neighboravoidanceconstraints
To avoid the interaction of workers spraying on a block simultaneously, spraying tasks in adjacent areas need to be staggered.In the mathematical model, a 0-1 variablezijof 1 indicates that taskiand taskjare adjacent spraying tasks and cannot be performed at the same time, and azijof 0 indicates that taskiand taskjare not adjacent spraying tasks.
The shipyard mainly determines the budget working time of various tasks through the base unit time.For the ship painting task, it is necessary to further consider the influence of the difficulty of spraying area, the workers’ multi-skills, and the workers’ proficiency level.
1) Difficulty of spraying area: according to the functions of ships, ships are usually divided into various areas such as the flat bottom, straight bottom, open deck, freeboard, fore and aft peak tanks, ballast tanks, etc.According to the functions of ships, the regional difficulty coefficient of spraying taskiis recorded asDi.
2) Multi-skilled workers: The types of painting tasks in the spraying workshop include 6 different types of spraying tasks, which are deck and hull, ship cabin, bow and stern, ship piping, superstructure, and other settings according to the spray area.After additionally considering pre-spraying, Touch-up, and pump management, there are 9 types of tasks.In the mathematical model, when the 0-1 variablerkiis 1, it means that workerkcan undertake taski, and whenrkiis 0, it means that workerkcannot undertake taski.
3) Worker proficiency level: The worker’s efficiency coefficient corresponding to the proficiency level will affect the working time.In the mathematical model, the skills mastered by workers are summarized into 5 different proficiency levels, and the proficiency levels 1 to 5 correspond to efficiency coefficients ranging from 1 to 0.6.DenoteRkias the efficiency coefficient of workerkon taski.
To sum it up, calculate the budget working time.For the ship painting task, the operating areaAiof taskiis an indicator of the amount of workload completed by the worker, which directly determines the time required for the task.Considering the influence of the painting area’s difficulty, the workers’ multi-skills, and the workers’ efficiency coefficient.The calculation formula of the budget working time in minutes is:
(1)
In Eq.(1),Tkirepresents the time required for workerkto complete taski.Hrepresents the basic unit time, which is set as 0.76 min/m2according to the production experience in the practice of the shipyard.Before modeling the block painting problem, the budget working time of each worker for each task is obtained by pre-calculation.
Based on the known block painting tasks that the team needs to undertake in today’s plan and the information on the team’s attendance today, the spraying task of each block is divided into the smallest unit tasks.The minimum completion time is the target to complete the scheduling of personnel and tasks.Scheduling decisions focus on intraday planning.While shipyards employ a long-term worker team, the model does not need to consider the cost impact of hiring and firing workers in long-term planning.
In the model,dis used to represent the discrete-time in minutes, and the decision variables are introduced as follows:tirepresents the actual time required to complete taskiin a specific plan; 0-1 decision variableykiis 1 indicating that workerkundertakes taski, which is 0 means that workerkdoes not undertake taski; the start time of taskiissiand the end time isci; the completion time of workerkisuk.By reasonably arranging the task allocation and scheduling of workers, the target is to minimize the total completion timeU.
The constraints in the mathematical model are as follows:
Obj: MinU=max(u1,u2,…,un)
(2)
(3)
yki≤rki,∀k∈N,i∈M
(4)
(5)
si≥0,∀i∈M
(6)
ci≥si+ti+TPP·li,∀i∈M/M'
(7)
sj≥xij·ci,∀i,j∈M/M'
(8)
(9)
si≤sj,∀i∈M',qj=i
(10)
ci≥cj,∀i∈M',qj=i
(11)
(12)
(13)
uk=max(yk1·c1,…,ykn·cn),∀k∈N
(14)
∀d∈{1,…,Dmax},zij=1
(15)
In this formulation, Constraint (2) indicates that the optimization objective is the minimum total completion time; Constraint (3) indicates that each task can only be assigned to one worker; Constraint(4) indicates that a worker can only perform the tasks that master multi-skill set; Constraints (5)-(7) represent the constraints of the start time, and end time of each task.If the paint needs to be prepared, it will consume an additional timeTPP; Constraint (8) represents the priority relationship between tasks; Constraint (9) defines whether the required paint needs to be prepared at the beginning of taskj; Constraints (10)-(11) indicate that during the execution of the spraying task, the block to which it belongs must have a worker in charge of the pump task; Constraint (12) represents whether it is undertaken by workerkfor taskiat timed; Constraint (13) indicates that each worker can only undertake one task at the same time; Constraint(14) indicates the relationship between the completion time of workerkand the end time of tasks the worker is responsible for; Constraint (15) indicates the adjacent spraying tasks cannot be performed simultaneously.
The scatter search (SS) algorithm is a heuristic-based evolutionary algorithm that has been successfully applied to various optimization problems.It has been researched and applied in workshop scheduling problems and vehicle routing problems considering personnel scheduling factors, and it is considered an effective method to solve complex combinatorial optimization problems[22].
The most obvious difference between SS and other evolutionary algorithms is that its operation strategies are not based on the principle of randomness and are more focused on adopting systematic methods to construct new solutions[23].A scatter search algorithm usually consists of five systematic sub-methods.1) Generation method of initial solution set is used to generate a large number of different solutions in the initial stage.2) Reference set (RefSet) update method aims to select solutions with good quality and diversity.3) Subset generation method generates reference subsets from the solution reference set in each iteration.4) Combination operator of solutions method generates one or more new solutions from subsets of solutions.5) Solution improvement method is applied to each newly generated solution.
This paper proposes an improved scatter search (ISS) algorithm.An approximate dynamic programming (ADP) algorithm is introduced in the generation method of initial solution set, which generates diverse solutions to speed up the ISS convergence speed.In combination operator of solutions method, the path relinking solution combination and the task sequence solution combination are proposed.Thus two solution combination methods jointly enhance the breadth of the ISS search space.
The algorithm framework flowchart of the improved scatter search algorithm is shown in Fig.2.In the initial stage,Psizerandom task sequences are generated, and the approximate dynamic programming algorithm is executed for each task sequence to obtainPsizesolutions as the reference setP.Then two reference subsets are obtained according to the subset generation method.The reference subsetRS1stores high-quality solutions on the basis of ensuring a certain diversity, whileRS2stores more diverse solutions.
Fig.2 Flow chart of the improved scatter search algorithm framework
Then, two solutions are taken from each of the two subsets for combination.Two combination methods are used here: the path relinking solution combination method is more inclined to the depth of the search, while the task sequence combination method is more inclined to the breadth of the search.Local search is performed for all new solutions obtained by combining them to optimize the model.The subsetsRS1andRS2are updated with the newly obtained solutions until the termination rules are satisfied.If a better solution cannot be found for a long time, the algorithm will insert the diverse solutions obtained through random sequences into the reference set to avoid the search being trapped in the locality.
The process of the improved scatter search is shown in Algorithm 1, the components of improved scatter search will be explained in detail as follows.
Algorithm 1 ISS algorithm Input: task data, worker data, Psize Output: Sbest 1: Generate Psize random task sequences 2: Get initialization RefSet P by task sequence (Algorithm 2) 3: repeat 4: Update subsets RS1 and RS2 by P (Algorithm 3) 5: P ← ϕ 6: for ∀ S1 ∈ RS1 do 7: for ∀ S2 ∈ RS2 do 8: Combine S1 and S2 to generate Snew (Algorithm 4) 9: Combine S1 and S2 to generate S ' new (Algorithm 5) 10: Local search: Snew and S ' new 11: P ← P ∪ {Snew ,S ' new } 12: if find a better solution then 13: Update Sbest 14: if stall for L iterations then 15: P ← random diversity solution 16: Until termination rules are satisfied 17: Return Sbest
The results of the plan for the scheduling of ship block painting personnel are represented by a two-dimensional sequence ofS=(ρ,π).In the personnel assignment sequenceρ=(ρ1,…,ρm),ρirepresents which worker is responsible for the task numberi; In the task sequenceπ=(π1,…,πm),πirepresents the number of theitask sorted by the task start time.
f(U′,Ui)=α·Dom(U′,Ui)+β·(max(U′)-
U)-+γ·Loss(U′)-
(16)
The scoring function is shown in Eq.(16), which includes three factors: the dominating number judgment function Dom, the shortest completion time excess value, and the invalid time function Loss, which replaces the full domination judgment for solving the completion time set in the dynamic programming algorithm.The dominance number refers to the number of workers whose completion time in planU′ is less than that in planUi.After normalizing the factors, the parameter settings are exhaustively exhausted by grid search, and the optimal weight parameter setting is determined as: (α,β,γ)=(0.6, 0.3, 0.1).This method quickly obtains the approximate optimal solution under this task sequence, which avoids the problem of dynamic programming algorithm that takes too long time to solve or even fails to obtain the final result due to the explosion of dimensions.
In the generation method of initial solution set, a large number of random task sequences generated in the initialization phase are input into ADP algorithm in turn.A complete and high-quality planScan be quickly obtained by each task sequence.Finally, a solution set is formed.The flow of the ADP algorithm is shown in Algorithm 2.
The reference subset is created from the reference set.By searching the reference set, two reference subsetsRS1andRS2are created.RS1stores high-quality solutions, whileRS2stores solutions with more diversity, where the solution’s diversity is judged by the distance function between solutions[24].
Algorithm 2 ADP algorithm Input: task sequence π Output: Sa-best 1: for ∀i ∈| M | do 2: Get a new task p in phase i from π 3: Calculate all possible plans eFi,j based on set eFi-1 4: for eFi,j,j ∈ {1,…,Ji-1 } do 5: if eFi,j do not meet constraints then 6: Delete exFi,j from set exFi 7: for eFi,j,j ∈ {1,…,Ji-1 } do 8: Calculate f(U j ,U i ),i ∈ [1,Fmax] 9: if U j better than U i then 10: U i ← U j 11: Get Fmax plans set eFi 12: Calculate U for all plans in eFm 13: Get the best solution Sa-best 14: Return Sa-best
For the solutionS=(ρ,π) and the solutionS′=(ρ′,π′), the distance between the solutions includes the distance between the personnel assignmentρandρ′ and the distance between the task sequenceπandπ′.The distance of the personnel assignment result can be obtained by calculating the similarities and differences of the personnel assigned to each task.The task sequence is a sequence with contextual significance, thus using Kendall’s tau coefficient to define the distance betweenπandπ′ asK(π,π′)=|{(j,j′)|j≠j′,π(j)<π(j′)∧π′(j)>π′(j′)}|, and the distancedbetween two solutionsS=(ρ,π) andS′=(ρ′,π′) is defined as
(S,S′)=|{k|ρ(k)≠ρ′(k)}|+K(π,π′)
According to the definition of the distance function, first put the high-quality solutions into the reference subsetRS1according to the distanced1, the distance between the solutions inRS1is at leastd1.Then select the reference subsetRS2from the remaining reference set.The distance between the solutions inRS2are at leastd2, and the distance between solutions inRS1andRS2are also at leastd2.d2>d1is set to ensure that the solution inRS2has a higher diversity.
The flow of reference subset generation method is shown in Algorithm 3.When the subsetRS2is not full, the algorithm generates new solutions to ensure the successful construction of the reference subset.
Algorithm 3 Reference subset generation algorithm Input: P , d1 ,d2 , subset size rs1 and rs2 Output: RS1 ,RS2 .1: RS1 ← {best element of P};P ← P RS1 2: while | RS1 | < rs1 and | P | > 0 do 3: S1 ← { best element of P };P ← P {S1 } 4: if minr∈RS1 d(S1 ,r) d1 then 5: RS1 ← RS1 ∪ {S1 } 6: RS2 ← ϕ 7: while | RS2 | < rs2 and | P | > 0 do 8: S2 ← { best element of P };P ← P {S2 } 9: if minr∈RS1∪RS2 d(S2 ,r) d2 then 10: RS2 ← RS2 ∪ {S2 } 11: if | RS2 | < r s2 then 12: Fill RS2 by new solutions 13: Return RS1 ,RS2
Two solutions are taken from each of the two reference subsetsRS1andRS2and then are combined.This paper refers to the idea of finding critical paths in the path relinking algorithm of vehicle routing problems[25], and uses the solution representation ofS'=(s1,…,sn) to perform path relinking solution combination, wheresi=(t1,…,tk) represents the order of all tasks that the worker numberiis responsible for.
For the two solutions called parent solutions to be combined, one is used as guiding solution, and the other is used as the initiating solution.Starting from the task which has the latest completion time, the consecutive tasks in charge of the same worker on the critical path are called a path block.As shown in Fig.3, the critical path of the initiating solution is determined according to the principle of block maximization.If there are multiple such critical paths, one is randomly selected.The sequence on the critical path of the initiating solution is exchanged in turn according to the order guided by the guiding solution, so that the task sequence on the initiating path is always closer to the guiding solution.The combined solution is the best feasible solution among the path solutions obtained during the exploration process.Based on the initiating solution in Fig.3, the flow of path relinking is shown in Fig.4.
Fig.3 Critical path of an initiating solution
Fig.4 Path relinking diagram
In addition, to the path relinking between the two parent solutions that are mutually guiding solutions and the initiating solution, the path relinking solution combination algorithm also uses the current global optimal solutionSbestas a constant guiding solution.The process relinks each new solution’s paths separately and replaces the original solution if a better solution is found.The flow of the path relinking combination algorithm is shown in Algorithm 4.
Algorithm 4 Path relinking combination algorithm Input: S1 ,S2 ,Sbest Output: Snew 1: S1 is initiating solution, S2 is guiding solution 2: Get critical path of S1 , get task sequence of S2 3: while | N(S1 :S2 ) | ≥ 1 do 4: Snew ← argmin{f(S ' ):S'∈ N(S1 :S2 )} 5: Local search: personnel 6: S2 is initiating solution, S1 is guiding solution 7: Get critical path of S2 , get task sequence of S1 8: while | N(S2 :S1 ) | ≥ 1 do 9: Snew ← argmin{f(S ' ):S'∈ N(S2 :S1 )} 10: Local search: personnel 11: Sbest is guiding solution, Snew is initiating solution 12: if find a better solution then 13: Replace Snew 14: Return Snew
Path relinking combination is limited to the critical path in this model, which leads to the localization of the search space.Therefore, the task sequence combination method is used in the construction of new solutions.Considering the task sequencesπandπ′ of the two parent solutions, randomly obtain a part of the sequence fragments from the sequenceπ, and then fill in the vacancies according to the sequenceπ′ to obtain a new task sequenceπnew.
An example of the task sequence combination method is shown in Fig.5.
Fig.5 Task sequence combination diagram
The combined task sequenceπnewis operated by the ADP algorithm, then the combined solution of the offspring can be obtained.Each iteration obtainshcombined solutions in this way.The number ofhincreases with the number of stagnations of the optimal solution to expand the global nature of your search.The flow of the task sequence combination algorithm is shown in Algorithm 5.
Algorithm 5 Task sequence combination algorithm Input: S1 ,S2 Output: Snew 1: Get task sequences of S1 ,S2 as π,π′ 2: Get Rand Num: 0 < r1 < r2 < M 3: π′ = π′/ π(r1 :r2 ) 4: while i ≤ m do: 5: if i ≥ r1 and i ≤ r2 then 6: π new (i) = π(i) 7: else if i ≤ m then 8: π new (i) ← π′(1) 9: Get Snew from π new by Algorithm 2 10: Return Snew
The local search algorithm is used as the optimization strategy of the solution.For two aspects of personnel assignment and critical task path, 2-opt and 3-opt local searches are carried out.Personnel allocation ensures that the task combination of each person in the original plan remains unchanged, but only the overall exchange between the personnel is carried out.Moreover, the 3-opt local search is applied to all personnel.For the local search method of task critical path, each block on the critical task path is regarded as a simplified neighborhood.2-opt and 3-opt methods are performed inside each neighborhood.Each newly generated solution is optimized by these two strategies and then enters the reference set.
The reference setPis set as an empty set after each generation of two reference subsetsRS1andRS2.After each iteration, put all the new solutions generated in this iteration intoP, and then put the reference subsetsRS1andRS2intoP.If the number of stagnant iterations is greater thanLwhich values 3 in the program, the ADP algorithm generates random solutions with diversity and inserts them into the reference set.
ISS adopts two termination rules.One is the maximum iteration count, which outputs the result and terminates the progress when the number is reached.The other is the maximum stagnation count, which is set to 10 in the program.When the optimal solution cannot be updated for ten consecutive iterations, terminate the algorithm.
This paper uses Matlab 9.2 as the programming environment to carry out numerical experiments on a computer (CPU: Intel Core i9-9940X@3.30GHz; RAM: 16GB; operating system: Window10) to implement the algorithm.In order to verify the effectiveness of ISS, the small scale instances are compared with the optimization solver GUROBI, and the medium and large scale instances are compared with the methods in other literature on personnel scheduling problems.In addition, the ISS solution results were compared and analyzed with the actual production data of the ship block painting.
The numerical experimental data comes from a Shanghai shipyard.On the basis of the normal distribution function of various task times obtained by fitting the actual data and the uniform distribution function of the number of skills mastered by workers, reasonable random tasks and workers’ data are generated.Add and delete the test data set with the different number of workersnand tasksm.For small-scale instances (sp101-sp114), this paper sets the scale parametern×mnot more than 12×35; For medium and large scale instances (sp201-sp214), this paper sets the scale parametern×mnot less than 12×40.
In order to verify the effectiveness of the ISS algorithm, the MIP model obtained by linearizing the mathematical model of ship block painting personnel scheduling is solved on small scale instances through the solver GUROBI.
Table 1 shows the results of 14 small scale instances.The completion time (U) unit of the results of the instance is minutes, and the running time (t) unit of the algorithm is seconds.Set the running time upper limit of GUROBI as 7200 s; GAP represents the difference between the optimal solution by GUROBI and the solution by ISS.
Table 1 Results of ISS and GUROBI on small scale
The experimental results of small scale numerical examples are shown in Table 1.Most of the results of ISS are the optimal solution with a GAP of 0.0%, and the average GAP is about 0.6%.The GAP is generally kept below 1.9%.With the increase in the size of the instance and the complexity of the problem, GUROBI can not find the optimal solution within the given effective time after the problem size increases ton=12 andm=35, while the ISS algorithm has a maximum operation time of 39.5 s on small scale instances, that showing ISS has obvious advantages in solving efficiency.
Due to the little research on personnel scheduling algorithms in the field of ship painting scheduling, this paper draws on an improved scatter search algorithm proposed by Hakli and Ortacay[26], and designs a scatter search algorithm (H-SS) as a comparison algorithm for ship block painting model.Furthermore, a genetic algorithm (S-GA) proposed by Su[27]for personnel task assignment is used for comparison and verification.As shown in Table 2, under the 14 instances of medium and large scale, the unit of completion time of the result is minutes; The optimal solution among three algorithms is marked with an asterisk (*); GAP indicates the difference between the solution of each algorithm and the optimal solution of the three algorithms.
Table 2 Results of ISS and other algorithms on medium and large scale
It can be seen from Table 2 that ISS always obtains the relative optimal solution on medium and large scale instances.Compared with H-SS without hybrid approximate dynamic programming algorithm, it can achieve a maximum GAP optimization effect of 3.5% and an average GAP optimization value of 1.5%.Compared with S-GA, the maximum optimization value is 6.0%, and the average is about 3.1%, which verifies the superiority of ISS in solving.
Taking the actual instance sp205 of painting production as an example, then the convergence efficiency of the three algorithms is verified.The results are shown in Fig.6, and it can be observed that ISS has converged in 25 iterations, which takes 57.8 s; H-SS converges within 40 iterations which takes 58.1 s; S-GA converges within 70 iterations, which takes 179.2 s.ISS has a higher convergence speed than H-SS and S-GA and has a better solution in the initial state.This is because the approximate dynamic programming algorithm finds a large number of high-quality solutions in the initialization phase and increases the subsequent convergence efficiency by the task sequence combination method.
Fig.6 Convergence efficiency of different algorithms by iterations
The experimental analysis is carried out by taking the medium and large scale instance sp205 which comes from actual painting production.The proficiency level information of the sp205 workers is shown in Table 3.The proficiency level will be displayed if the worker masters the corresponding skill.Otherwise, the display of the proficiency level will be omitted.The efficiency of the pump management task has nothing to do with the proficiency level, so record that the proficiency level of the worker who masters the pump management skill is 1.
Table 3 Worker proficiency level of instance sp205
Given the input of worker information and task information, after the solution of ISS, the result of the instance sp205 from the actual engineering case is shown in Table 4.Under the painting tasks of 7 blocks that the designated team is responsible for, all tasks are assigned to 15 painting workers.Base worker hours represent the time it takes a worker at proficiency level 1 to complete the task.Each task has its own ship block and required paint.The algorithm tries to maximize the overall painting efficiency under each task constraint, such as pump management and paint preparation.
Table 4 Task data and result information of instance sp205
The visualization of solution results of instance sp205 is shown in Fig.7.Each row represents the task sequence and time arrangement for which the designated worker is responsible.The task color blocks use different colors to represent different task types and paint preparation.
The output plan was obtained by ISS algorithm.The final completion time of the plan was 438 min, which was 10.61% less than the actual production time of 490 min recorded in the MES system of the shipyard.
Experiments were conducted on the parameter settings ofd1andd2in reference subset generation method under the instance scale ofm=50.The grid search method was used for parameter enumeration, with the parameter range ofd1from 20 to 50 and the parameter range ofd2from 5 to 45.The minimum unit of parameter is 5.Each parameter setting was averaged over 10 instances.Fig.8 shows the visualization of the grid search results ford1andd2, where the score represents the completion time under the best parameter setting divided by the completion time under the corresponding parameter setting.A score closer to 1 indicates a better parameter setting.Based on the results of the parameter experiments, the parameter settings of (d1,d2)=(25,40) were selected and applied to instances of different scales with the parameter settings of (d1,d2)=(0.5 m,0.8 m).
Fig.8 Visualization of the grid search for d1 and d2
Fig.9 shows the change of the better solution found times by the two solutions combination strategies and the two local search strategies, which are called during the solution process of the ISS in the instance sp205 with iteration.The search that finds a better solution is called an efficient search.It can be observed that for the local optimization strategy, the critical path local search strategy stalls earlier than the personnel allocation local search strategy.For the solution combination strategy, the path relinking combination strategy efficiently finds the better solution at the beginning of the iteration, while in the later period of iteration, the better solution cannot be found for a long time.However, the task sequence combination strategy stably finds the better solution in the full iteration cycle, which shows that it has a more global search capability.
Fig.9 Effects of different strategies in ISS to optimize by iterations
In view of the current situation that the scheduling research in the field of ship painting lacks consideration of personnel factors, this paper takes the personnel scheduling problem of ship block painting as the research object, establishes a mathematical model considering the constraints of actual production scenarios, and designs an improved scatter search algorithm to solve it.Conclusions are summarized as follows:
1) Analyze the elements of the painting operation and summarize the constraints like paint preparation and pump management.Propose a working time Pre-calculation method that considers workers’ skill set and proficiency level, then establish a painting personnel scheduling model to minimize the total completion time.
2) An improved scatter search algorithm is proposed to solve this model.The approximate dynamic programming algorithm is used in the two stages of initial solution generation and solution combination, which improve search efficiency.Two solution combination methods, path relinking combination and task sequence combination, are designed to increase the search space.
3) Numerical experiments are carried out based on the data of a large shipyard in Shanghai.For small scale instances, the optimal solution difference between ISS and the GUROBI is about only 0.6%, and ISS has obvious time advantages.Compared with genetic algorithm and other scatter search algorithms in recent literature, the optimization effect can be improved by 3.2% and 1.5% respectively.That verifies the effectiveness and advantages of the proposed algorithm.
4) Run this algorithm on the actual production case of painting to get a schedule plan that shortens the completion time by 10.61%.The result obtained by ISS meets the needs of actual production scheduling, and has guidance and reference for painting plan management from weekly planning to daily refined dispatching workers.
5) Future work will be focused on long-term planning and employment relationship of painting, and the work of this paper will be further extended to a multi-objective optimization problem considering personnel cost and task completion period.
Acknowledgement
The data comes from Shanghai Waigaoqiao Shipyard.
Journal of Harbin Institute of Technology(New Series)2024年1期