Next Article in Journal
A Flexible Robust Possibilistic Programming Approach toward Wood Pellets Supply Chain Network Design
Next Article in Special Issue
Dynamic Scheduling Strategy for Shared Agricultural Machinery for On-Demand Farming Services
Previous Article in Journal
What Drives Economic Growth across European Countries? A Multimodal Approach
Previous Article in Special Issue
Antecedents in Determining Users’ Acceptance of Electric Shuttle Bus Services
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Hybrid Particle Swarm and Whale Optimization Algorithm for Multi-Visit and Multi-Period Dynamic Workforce Scheduling and Routing Problems

by
Voravee Punyakum
1,
Kanchana Sethanan
1,*,
Krisanarach Nitisiri
1 and
Rapeepan Pitakaso
2
1
Research Unit on System Modelling for Industry, Department of Industrial Engineering, Faculty of Engineering, Khon Kaen University, Khon Kaen 40002, Thailand
2
Metaheuristics for Logistic Optimization Laboratory, Department of Industrial Engineering, Faculty of Engineering, Ubon Ratchathani University, Ubon Ratchathani 34190, Thailand
*
Author to whom correspondence should be addressed.
Mathematics 2022, 10(19), 3663; https://doi.org/10.3390/math10193663
Submission received: 28 August 2022 / Revised: 18 September 2022 / Accepted: 2 October 2022 / Published: 6 October 2022
(This article belongs to the Special Issue Planning and Scheduling in City Logistics Optimization)

Abstract

:
This paper focuses on the dynamic workforce scheduling and routing problem for the maintenance work of harvesters in a sugarcane harvesting operation. Technician teams categorized as mechanical, hydraulic, and electrical teams are assumed to have different skills at different levels to perform services. The jobs are skill-constrained and have time windows. During a working day, a repair request from a sugarcane harvester may arrive, and as time passes, the harvester’s position may shift to other sugarcane fields. We formulated this problem as a multi-visit and multi-period dynamic workforce scheduling and routing problem (MMDWSRP) and our study is the first to address the workforce scheduling and routing problem (WSRP). A mixed-integer programming formulation and a hybrid particle swarm and whale optimization algorithm (HPSWOA) were firstly developed to solve the problem, with the objective of minimizing the total cost, including technician labor cost, penalty for late service, overtime, travel, and subcontracting costs. The HPSWOA was developed for route planning and maintenance work for each mechanical harvester to be provided by technician teams. The proposed algorithm (HPSWOA) was validated against Lingo computational software using numerical experiments in respect of static problems. It was also tested against the current practice, the traditional whale optimization algorithm (WOA), and traditional particle swarm optimization (PSO) in respect of dynamic problems. The computational results show that the HPSWOA yielded a solution with significantly better quality. The HPSWO was also tested against the traditional genetic algorithm (GA), bat algorithm (BA), WOA, and PSO to solve the well-known CEC 2017 benchmark functions. The computational results show that the HPSWOA achieved more superior performance in most cases compared to the GA, BA, WOA, and PSO algorithms.

1. Introduction

Sugarcane is one of the major economic agricultural crops of Thailand. In 2021, Thailand was ranked the world’s second largest sugar exporter, and the fourth largest sugar producer [1]. However, maintaining the maximum milling capacity is still a challenge in Thai sugar mills. There is a constant need to improve inbound logistics activities, especially the harvesting process, to obtain a steady supply of sugarcane for the sugar mills.
In sugarcane inbound logistics, the sugarcane harvest is an important process since the supply of sugarcane must match the capacity of the mill [2]. In the past, manual harvesting was intensively used but it is not presently practical due to the challenging nature of the work, leading to labor shortages and high labor costs. Thus, mechanical harvesters have been introduced and widely used to overcome the labor scarcity, to control the high labor wages, and importantly, to obtain a daily steady sugarcane supply that matches the mill’s maximum capacity. Improvement of sugarcane delivery from fields to the sugar mill at the right time is thus crucial and is required during the crushing season [3].
Often, the challenge of using mechanical harvesters is their low utilization. In actual practice, operation of a mechanical harvester is a complicated activity since there are various teams used to operate the sugarcane harvester. The teams involved include (1) transporting trailers or trucks (so-called forwarders) moving by the side of the mechanical harvester to transport the chopped sugarcane to the mill, (2) teams providing maintenance and fuel supply services, and (3) teams supporting emergency services (e.g., fire trucks). These three components are usually referred to as harvest fronts [4]. It is apparent that harvesters are the most crucial machines in the mechanical harvesting system, since sugar production relies on machine performance, which is directly related to field efficiency. Therefore, time loss, especially due to delays in machine repair, results in a significant reduction in sugarcane harvest capacity and the mill’s fluctuating production capacity, as well as increased production costs.
In the current practice in Thailand, time loss due to delayed machine maintenance is high due to inappropriate field service scheduling, which is complicated due to the increasing number of harvesters, number and skills of technicians, and types of maintenance services for the harvesters (preventive maintenance (PM), break-down maintenance (BM), and corrective maintenance (CM)), each of which includes three sub-systems comprising mechanical, hydraulic, and electrical systems [5]. Normally, each sub-system requires specific types of technicians to perform maintenance tasks. The scheduling is complicated when a harvester requires more than one service operation (PM, CM, or BM) simultaneously. In this case, if any service operation is not completed, the harvester is still not able to work. More importantly, in order to avoid losses in harvester productivity, a subcontractor is required when harvesters require servicing but a technician team is not available. Time loss also occurs because mechanical harvesting is a dynamic process. Harvesters and technicians usually move and operate in different locations during each time period. More importantly, uncertainties related to harvesters usually occur in the planning horizon (e.g., harvester breakdowns). These aforementioned factors cause delays in servicing, resulting in reduced utilization of the harvesters. Therefore, the potential approach to maintaining the harvesting capacity is to keep the harvesters in operation for the longest period by minimizing the time loss due to these issues.
Given the mechanical harvest plan, in this paper, the allocation and scheduling of multi-heterogeneous technician teams, with consideration of transportation for the teams and the operations of sugarcane harvesters, were addressed to reduce time loss. This is because, in actual practice, harvesters and technicians usually move and operate in different locations during each time period, and uncertainties related to harvesters usually occur in the planning horizon (e.g., harvester breakdowns). All these factors, involving limited resources but more dynamic operations, were taken into consideration in this paper. In other words, a more realistic and challenging dynamic workforce scheduling and routing problem (DWSRP) was addressed. A decision in terms of the allocation and scheduling of different types of service staff to perform operations at several locations was taken such that the delay in harvester servicing and travel distance of technicians were minimized. In this problem, the objective was to minimize the total cost, including technician labor cost, penalty for late service, overtime, travel, and subcontracting costs.
Since there are several types of teams, each of which includes many teams, and some harvesters might require more than one type of service during each time period, this problem was formulated as a multi-visit and multi-period dynamic workforce scheduling and routing problem (MMDWSRP) (see the systematic diagram shown in Figure 1). The problem consisted of two sub-problems: (1) technician team allocation and scheduling and (2) routing of the technicians. In the first sub-problem, workforce allocation of technician teams was performed through consideration of clusterization in certain geographical areas, eligibility, and skills. Then, their sequences and routings were determined in the second sub-problem, with consideration of time windows, maximum duration of work, and dynamic requests of harvesters during a day. In general, only a few studies in the literature have formulated the workforce scheduling and routing problem (WSRP) as a dynamic routing problem. To the best of our knowledge, the DWSRP has been implemented in a home health-care routing problem (DHHC) [6,7], a telecommunication problem [8,9], and a technician routing and scheduling problem (DTRSP) [10].
The main contribution of this paper is the novelty in considering dynamics to be part of the problem. In other words, we believe our work is the first of its kind in addressing the WSRP problem, which combines a dynamic problem and multiple customer visits by technician teams. In such a problem, the service skills of staff (mechanical, hydraulic, and electrical), types of maintenance (BM, CM, and PM), time windows, eligibility, maximum duration of work, dynamic requests of harvesters, and the shifts in the harvester’s position during a day may be considered simultaneously. To solve a realistic-sized dynamic problem, a novel swarm-based meta-heuristic optimization algorithm, the whale optimization algorithm (WOA), was proposed. The WOA has been used intensively to solve complex optimization problems [11] such as allocation [12], scheduling [13,14,15], routing [16,17], and manufacturing [18,19]. Even though the WOA has been used extensively in various problems, it has never been used to solve WSRPs. This study is believed to be the first to employ the WOA and the hybrid particle swarm and whale optimization algorithm (HPSWOA) to solve the MMDWRSP. The proposed algorithm was validated against Lingo computational software using numerical experiments in static problems. It was also tested against the current practice, the traditional whale optimization algorithm (WOA), and traditional particle swarm optimization (PSO) in respect of dynamic problems. The computational results demonstrate that the HPSWOA yielded a solution with significantly better quality. The HPSWO was also tested against the traditional genetic algorithm (GA), bat algorithm (BA), WOA, and PSO to solve the well-known CEC 2017 benchmark functions. The computational results show that the HPSWOA achieved a more superior performance in most cases compared to the GA, BA, WOA, and PSO algorithms.
The remainder of this paper is organized as follows. In Section 2, a brief literature review of the WSRP is presented. Section 3 presents the mathematical model. In Section 4, the HPSWOA algorithm for MMDWSRP problems is developed. Computational results are discussed in Section 5. The last section delineates conclusions and future research directions.

2. Literature Review

Presently, a significant amount of research has been undertaken in respect of WSRP, with consideration of several factors including staff skills, planning horizon, time windows, transportation modes, teaming, and the dynamics of the problem. These factors may result in different WSRP characteristics. The most studied and uncomplicated WSRP involved a single-period planning horizon without team building. Studies of this problem type included those of Xu and Chiu [20], Dohn et al. [21], Pillac et al. [22], Pinheiro et al. [23], and Mathlouthi et al. [24], while the studies of Cordeau et al. [25], Kovacs et al. [26], Anoshkina et al. [27], and Çakırgil et al. [28] focused on a WSRP with a single period including team building. To solve a WSRP with a single period, both mathematical and heuristic approaches (e.g., variable neighborhood search, adaptive large neighborhood search, and decomposition solution methods) were used to solve the problem.
During the past decade, a multiple-period WSRP with team building has been investigated by several researchers. For example, in the study of Blakeley et al. [29], Zamorano and Stolletz [30], Pekel [31], and Punyakum et al. [32], technicians with different skills were considered. A tabu search approach was applied to solve the problem. Later, Zamorano and Stolletz [30] studied a technician routing and scheduling problem (TRSP) with consideration of the skills of technicians and time windows in a multiple-period horizon in order to decide the daily team formation, and daily team assignments to tasks and to routes. A branch-and-price approach was applied to obtain the operating costs. Recently, Pekel [31] focused on a multi-period TRSP with the objective of minimizing operating costs. An improved particle swarm optimization (IPSO) approach, which is a hybrid of particle swarm optimization (PSO) and the neighborhood operator, was used to solve the problem. Later, Punyakum et al. [32] concentrated on a multi-visit and multi-period WSRP (MMWSRP) in the field service operation of a sugarcane mill company. A hybrid differential evolution and particle swarm optimization (HDEPSO) algorithm was used to obtain the solution, with the objective of minimizing operating costs. The HDEPSO was tested against the PSO and differential evolution. It was found that the HDPSO resulted in a solution of much higher quality.
For a dynamic problem, prior to planning, information about customers may be unknown or only partially known. For example, in the study of Lesaint et al. [8], a workforce scheduling problem was considered for British Telecom, in which technicians were assigned to tasks that arrived dynamically during the day. The objective of the problem was minimizing cost. The simulated annealing approach was employed to solve the problem. Borenstein et al. [9] modified Lesaint et al.’s problem [8] with the objective of maximizing the number of completed tasks. The decomposition method was applied to solve the problem. In 2018, Pillac et al. [10] studied a dynamic technician routing and scheduling problem (DTRSP) in which new requests appeared over time. Time windows, tools, spare parts, and skills were taken into account in designing staff routing to respond to requests for service, and an adaptive large neighborhood search approach was applied to solve the problem, with the objective of minimizing the total working time and total distance. Later, Ouertani et al. [6] studied a dynamic home health-care routing problem (DHHC) in which new calls from patients could arrive after the departure of the caregiver, and the caregiver’s route had to be replanned to include these new patients. The objective of DHHC was to minimize the travelling cost. The hypermutation genetic algorithm method was used to obtain the solution. Later, Demirbilek et al. [33] studied the home healthcare routing and scheduling of multiple nurses in a dynamic environment. A scenario-based method for several nurses was used to determine the maximum number of patient visits for a group of nurses during the planning horizon.
In our study, a more realistic dynamic workforce scheduling and routing problem (DWSRP) was investigated, which could be formulated as a multi-visit and multi-period dynamic workforce scheduling and routing problem (MMDWSRP) with the objective of minimizing the total cost, consisting of labor cost, traveling cost, penalty for late service, overtime, and subcontracting cost. To the best of our knowledge, the MMDWSRP has not been addressed in the literature. Among the studies reported in the literature, the only one that closely matches this study is the MMWSRP (Punyakum et al. [32]). That study does not involve the dynamic WSRP, employs a different methodology, and does not consider technician labor cost in the objective function.
Recently, the whale optimization algorithm (WOA) has been efficiently applied to solve complicated optimization problems [11]. The WOA was developed by Mirjalili and Lewis [34]. It imitates the hunting manipulation of humpback whales. The WOA with a stochastic nature is simple, flexible, and fast in convergence speed; it has gained a great deal of attention among researchers in various disciplines [35]. The WOA is widely used in several fields such as manufacturing, allocation, scheduling, and routing problems. For example, in 2019, Saleh et al. [12] determined the optimal allocation of distributed generation and capacitors in radial distribution systems while reducing single- and multi-objective functions (network power losses, voltage deviation, and total operating cost). The weighted sum method was used to create the multi-objective function. The WOA was used to obtain the solution. Later, Liu et al. [15] used a hybrid WOA improved with Lévy flight and differential evolution to solve job shop scheduling problems. The proposed algorithm achieved superior performance when solving small and large benchmark instances compared to nine other algorithms and was not inferior when solving hard instances. In the same year, Tanvir et al. [19] studied stainless steel 304 in respect of turning operations. The effects of machining parameters such as the feed rate and depth of cut on surface roughness, cutting forces, cutting speed, peak tool temperature, power, material removal rate, and heat rate were studied. A hybrid WOA and Grey relational analysis was used to decide the machining conditions for optimizing the production unit cost and production quality. Later, Dewi and Utama [16] considered a green vehicle routing problem (GVRP) with the objective of minimizing the distribution cost, considering the vehicle usage cost, fuel consumption, and carbon emissions. A hybrid whale optimization algorithm developed by combining the WOA algorithm, TS algorithm, and local searching was used to obtain the minimum distribution cost.
Hybrid algorithms are more frequently employed. A hybrid algorithm combines two or more methods and is intended to perform better than each algorithm individually [36]. Wang and Shoup [37] investigated a hybrid optimization technique that combines the best elements of four conventional techniques for optimization, including the Hooke and Jeeves pattern search approach, the simplex method, the pattern search method, and the random search method. Their method was tested against 11 conventional test functions, and the results show that it performed better than eight of the selected search methodologies. Khajehzadeh et al. [38] combined the adaptive gravitational search algorithm and pattern search method to solve the multi-objective optimization of reinforced concrete retaining walls. The embedded CO2 emissions and total cost were the objective functions. Later, Koessler and Almomani [39] studied a hybrid particle swarm optimization and pattern search algorithm (PSOPS) to solve benchmark functions and the optimization of basin networks. When compared against other hybrid techniques for a basin network optimization problem, the PSOPS algorithm outperformed them. Recently, Khajehzadeh et al. [40] proposed the hybrid tunicate swarm algorithm and pattern search (HTSAPS). In benchmark test functions and model application, the HTSAPS was also compared to the tunicate swarm algorithm, sine-cosine algorithm, and grey wolf optimization method. The numerical studies demonstrated that the HTSAPS offered better optimal solutions and outperformed the other techniques. In 2004, Victoire et al. [41] concentrated on the economic dispatch with valve-point effect problem. A hybrid particle swarm optimization and sequential quadratic programming approach was developed to solve the problem with the objective of minimizing fuel costs. Later, Eslami et al. [42] considered damping controller design for power system oscillations. The damping ratio and damping factor were included in the objective functions. The hybrid genetic algorithm and sequential quadratic programming were used to solve the problem. Recently, Abdel-Mawgoud et al. [43] studied integrating a battery energy storage system into distribution networks. A hybrid arithmetic optimization algorithm and a sine cosine algorithm were developed to solve the problem with the objective of minimizing the whole active power loss of the network.
From the literature, it was found that the most commonly used solution methods for WSRPs are mathematical programming and metaheuristics. However, the WOA has not been used for solving WSRPs. In this study, the WOA, PSO, and the hybrid particle swarm and whale optimization algorithm were proposed to solve the MMDWRSP. The main contribution of this paper involves considering the WSRP by combining a dynamic problem and multiple customer visits by technician teams, which has not previously been proposed in the literature.

3. Mathematical Formulation

In this study, there were several types of teams and each of which included various teams. Some mechanical harvesters might require more than one type of service during each time period; this problem was therefore developed as a multi-visit and multi-period dynamic workforce scheduling and routing problem (MMDWSRP), where new maintenance service requests in respect of sugarcane mechanical harvesters appear while the technician teams are performing maintenance tasks on their routes. In this section, the mathematical model of the MMDWSRP is developed with static data. It is extended from the mathematical model of Punyakum et al. [32], which was developed as a multi-visit and multi-period workforce scheduling and routing problem (MMWSRP).
In the MMDWSRP, J harvesting jobs require S sub-systems, namely mechanical, hydraulic, and electrical, for maintenance. Job m might require more than one sub-system’s services at once throughout each period t . For each sub-system, s S represents a set of sub-systems (mechanical, hydraulic, and electrical), R s represents a set of teams in sub-system s , and L s represents a set of skill types in sub-system s (1 = basic, 2 = medium, 3 = expert). In a day, each technician team may provide services in respect of more than one job (e.g., sugarcane mechanical harvester) dispersed in several sugarcane fields, and the jobs may require servicing by more than one technician team for different sub-systems. Since sugarcane fields are far apart, jobs may have to wait a long time for servicing by the technician teams. A technician team usually works in more than one sugar field in a day, and thus usually moves from one field to another. In order to prevent losses in harvester productivity when no technician team is available, a subcontractor is needed. The following are the assumptions for mathematical formulation of the MMDWSRP: (i) only one technician team in a sub-system is allowed to service a job; (ii) each technician team always has the required spare parts and equipment; (iii) before starting the servicing, technicians are allocated to a team; (iv) only one size of transport vehicle is considered; (v) no splitting of maintenance services is allowed; (vi) a technician team will go back to the company only when they finish the assigned servicing; (vii) degree of dynamism = 0. Therefore, modifications in the MMDWSRP were made from the MMWSRP model developed by Punyakum et al. [32] as follows: (1) the labor cost of technicians was added to the objective function; (2) since this problem is a dynamic WSRP, constraints 13 and 14 in this mathematical model were revised from constraints 16–19 [32] of the MMWSRP mathematical model to ensure that the number of technicians and the technician teams’ skill levels and types are sufficient for servicing; and (3) constraint 15 was added to the MMDWSRP mathematical model to determine the number of teams required to service the mechanical harvesters. The following is a list of the notation used in this paper.
Indices:
m , n Jobs and depot indices ( m , n = 1 , 2 , , J)
s Sub-systems; mechanical, hydraulic, and electrical sub-systems ( s = 1 , 2 , , S )
r Technician teams ( r = 1 , 2 , , R s )
t Working periods ( t = 1 , 2 , , T )
l Technician team skills ( l = 1 , 2 , , L s )
Parameters:
J Set of jobs and depot
J Set of jobs ( m , n = 2 , 3 , , J )
S Set of sub-systems
R s Set of technician teams in sub-system s
T Set of working periods
L s Set of skill types in sub-system s
L C c r , s Labor cost of technician team r in sub-system s (units)
T C c m , n Technician transportation cost moving from jobs m to n (units)
L T c m Penalty cost from a job m ’s that was finished late (unit per minutes)
O V c r , s Overtime cost of technician team r giving service sub-system s (unit per minutes)
S T c m , s Subcontracting cost of sub-system s of jobs m (unit)
e t Starting time of period t
f t Completion time of period t
a m Starting time of job m
b m Completion time of job m
t v m , n Travel time from job m to job n (minutes)
p t m , s Service time of job m in sub-system s (minutes)
w r , s , l Proficiency of technician team of skill l in sub-system s
u m , s , l For job m , a technician team with the attribute w r , s , l is required
o s The quantity of technician teams in sub-system s
q m , s The quantity of technicians needed to complete job m for sub-system s
k r , s The quantity of technician team r in sub-system s
d m , s = 1 if job m needs a team of sub-system s
= 0, otherwise
H Large number
L T m Maximum allowed delay time
O V m Maximum allowed overtime
Decision variables:
L T m Amount of service delay time of job m (minutes)
O V s , r , t Overtime of team r in sub-system s in period t (minutes)
c m , s , r , t Starting time of team r in sub-system s for job m in period t
X m , n , s , r , t = 1, if team r of sub-system s leaves job m for job n in period t ;
= 0, otherwise
Y m , s , r , t = 1, if team r of sub-system s services job m in period t ;
= 0, otherwise
Z s , r , t = 1, if using technician team r of sub-system s in period t ;
= 0, otherwise
S T m , s = 1, if job m requires a service from a subcontract for subsystem s ;
= 0, otherwise
Objective function:
M i n i m i z e : s S r R s t T L C c r , s · Z s , r , t + m J n J s S r R s t T X m , n , s , r , t · T C c m , n + m J L T m · L T c m + s S r R s t T O V s , r , t · O V c r , s + m J s S S T m , s · S T c m , s
Subject to:
r R s t T Y m , s , r , t + S T m , s = d m , s   m J , s S   (2)
n J X m , n , s , r , t = Y m , s , r , t         m J , s S ,     r R s , t T ; m n (3)
n J ( X m , n , s , r , t X n , m , s , r , t ) = 0     m J , s S ,     r R s , t T ; m n   (4)
( c m , s , r , t + p t m , s + t v m , n ) · Y m , s , r , t H 1 X n , m , s , r , t s m , s , r , t   m J ,   n J , s S , r R s , t T ;                             m n   (5)
c m , s , r , t a m · Y m , s , r , t   m J , s S ,                 r R s , t T (6)
c m , s , r , t b m p t m , s · Y m , s , r , t L T m   m J , s S ,                 r R s , t T   (7)
L T m L T m   m J (8)
c n , s , r , t ( e t + t v m , n ) · X m , n , s , r , t n J , s S ,     r R s , t T , m = 1 (9)
c m , s , r , t O V s , r , t + ( t v m , n + p t m , s ) · X m , n , s , r , t   f t   m J ,   s S ,     r R s , t T , n = 1   (10)
O V s , r , t O V m s S , r R s , t T   (11)
n = J r R s X m , n , s , r , t o s s S , t T , m = 1 (12)
q m , s · Y m , s , r , t k r , s m J , s S ,                 r R s , t T   (13)
u m , s , l · Y m , s , r , t w r , s , l m J , s S , r R s , t T , l L s (14)
Z s , r , t Y m , s , r , t m J , s S ,                 r R s , t T (15)
X m , n , s , r , t = 0 ,   1 m , n J , s S ,                 r R s , t T (16)
Y m , s , r , t = 0 ,   1 m J , s S ,                 r R s , t T   (17)
Z s , r , t = 0 ,   1 s S , r R s , t T   (18)
S T m , s = 0 ,   1   m J , s S   (19)
Objective function (1) is used to minimize the total cost, including labor cost, travel cost of technician teams, penalty for late services, overtime, and subcontracting cost. The mathematical formulation constraints are described in Table 1.

4. The Proposed Method

The hybrid particle swarm and whale optimization algorithm (HPSWOA) is described below.

4.1. Initial Solution

The proposed algorithm starts by generating an initial population size or the number of vectors of each sub-system (mechanical, hydraulic, and electrical). The vector consists of a job vector and a technician team vector. Firstly, each job vector will be randomly generated, equal to the number of jobs. Decryption arranges each vector’s rank order value in ascending order to obtain the sequence of jobs to be completed. An additional vector is the technician team vector, which will also be randomly generated and equal to the number of technician teams. Secondly, each technician team vector will be randomly generated, equal to the number of jobs. The technician team vectors are used to assign a technician team to a job. Figure 2 shows an illustrative example of the construction of a vector of a sub-system. There are five jobs and two technician teams. For example, the job vector is 0.51-0.83-0.64-0.11-0.25. The job ID is 1-2-3-4-5. After the job vector is sorted in ascending order, the vector obtained is 0.11-0.25-0.51-0.64-0.83. Therefore, the job ID is 4-5-1-3-2. The first technician team vector is 0.43–0.24. The technician team ID is 1–2. After the technician team vector is sorted in ascending order, the technician team vector obtained is: 0.24–0.43. Therefore, the technician team rank is 2–1. To establish the sequence for all technician teams, the procedure is as follows. The jobs are assigned by rank of the job ID to the technician team rank. If the first team’s skill and the number of team members do not match with the job, the job will be assigned to the next technician team, and so on until all jobs have been assigned to the teams. Jobs that cannot be assigned to the technician teams will be outsourced to subcontractors. The objective calculation as shown in Equation (1) is used to minimize the total cost.

4.2. Particle Swarm Optimization (PSO)

Eberhart and Kennedy [44] introduced PSO. The simulation of social and psychological expression in fish and birds served as the inspiration for this algorithm. In looking for food, a living swarm (such as a school of fish or a flock of birds) will scatter and then regroup in search of the best feeding area. The mathematical formulae that produce updates in respect of position and velocity throughout the course of one iteration are given by Equations (20) and (21):
X i , j t + 1 = X i , j t + V i , j t + 1
V i , j t + 1 = w V i , j t + C 1 r 1 P b e s t i , j t X i , j t + C 2 r 2 G b e s t j   t X i , j t
where X i , j and V i , j are the position and velocity of the j th member of the i th vector (or particle), t is the current iteration, G b e s t j is the global best position of all vectors, and P b e s t i , j is the personal best position of the j th member of the i th vector. C 1 and C 2 are personal and global best position weights, respectively; r 1 and r 2 are random numbers from 0 to 1; and w is the inertial weight.

4.3. Whale Optimization Algorithm (WOA)

This algorithm is built on the copying of natural phenomena in a way that mimics animal behavior. The algorithm was developed by Mirjalili and Lewis [34] and inspired by the foraging behavior of humpback whales. Humpback whales have a unique prey trait when they know the location of their prey. Humpback whales create a spiral bubble around their prey that continuously encircles them, while swimming in a spiral and rising to the top to eat their prey.

4.3.1. Encircling Prey

When humpback whales know the location of their prey, they surround them. This determines that the best solution or the closest is the location of the target prey. The other solution then updates their position with reference to the prey’s position. This is similar to humpback whales swarming around their prey, which is represented by Equations (22) and (23).
X t + 1 = X b e s t t A · D
D = C · X b e s t t X t
A = 2 a · r a
C = 2 r
where A and D are coefficient vectors, t is the current iteration, X is a position vector, X b e s t is the position vector of the best current solution (leader whale), r is a random number between 0 and 1, and a is a variable that decreases linearly from 2 to 0 during the course of the iteration.

4.3.2. Bubble-Net Attacking Method

This behavior simulates the spiral motion of humpback whales surrounding prey and is represented by Equations (26) and (27).
X t + 1 = D e b · l cos 2 π l + X b e s t t
D = X b e s t t X t
where l is a random number from −1 to 1 and b is a constant that defines the logarithmic shape.

4.3.3. Searching for Prey

To allow humpback whales to explore more, random searching for prey may be represented by Equations (28) and (29).
X t + 1 = X r a n d t A · D
D = C · X r a n d t X t
where X r a n d is a random search agent from the current population.

4.3.4. Updating Position

Humpback whales exhibit swimming behavior either by swimming towards prey (updating position) or moving around prey (spiral updating position). To simulate this behavior, the WOA assigns a probability equal to 50%, as shown in Equation (26). Updating the position of a humpback whale may be determined by using either Equation (22) ( A < 1   ) or Equation (28) ( A 1 ).
X t + 1 = X b e s t t A · D                     i f   p < 0.5 D e b · l cos 2 π l + X b e s t t   i f   p 0.5
where p is a random number from 0 to 1.

4.4. Self-Adaptive Control Parameter

In using the PSO to determine an optimum solution, low inertial weight will lead to local trapping, while high inertial weight delays the optimization’s convergence. Jia et al. [45] proposed a self-adaptive parameter control technique by considering each individual’s fitness data to deal with local trapping and slow convergence. This technique was used in this work for better searching as shown in Equation (31).
w i t + 1 = w m i n + w i t w m i n × f X i t + 1 f m i n f a v g f m i n         i f ( r 3 < τ   a n d   f X i t + 1 < f a v g )   r 4   i f ( r 3 < τ   a n d   f X i t + 1   f a v g ) w i t     i f o t h e w i s e
where τ indicates probabilities to adjust factor w i , w m a x and w m i n are the maximum and minimum values of the inertial weights, r 3 is a random number from 0 to 1, and r 4 is a random number from w m i n to w m a x .

4.5. Hybrid Particle Swarm and Whale Optimization Algorithm (HPSWOA)

This algorithm was proposed by Trivedi et al. [46]. Due to its constant inertial weight, PSO’s only limitation is its coverage of a narrow search space; hence, it is not suitable for tackling higher-order or complex problems. The HPSWOA can be used to solve this problem because it extracts the quality characteristics of both the WOA and PSO. Since the WOA uses a logarithmic spiral function, it covers a larger area in an uncertain search space during the exploration phase. Therefore, we combined the WOA and PSO to increase their ability to find the solution. Additionally, the WOA accelerates the vector direction toward the optimal value and reduces the computing time. In order to achieve the desired optimal solution, HPSWOA combines the WOA and PSO by having the WOA’s vector ( X ( t + 1 ) ) replace PSO’s personal best ( P b e s t i , j ( t ) ). The HPSWOA updates position and velocity using Equations (32) and (33). The HPSWOA’s self-adaptation can regulate inertial weight values using Equation (31). The pseudo-code for the HPSWOA for a multi-visit and multi-period dynamic workforce scheduling and routing problem (MMDWSRP) is shown in Algorithms 1 and 2. The flowchart of the HPSWOA is shown in Figure 3.
X i , j t + 1 = X i , j t + V i , j t + 1
V i , j t + 1 = w i t V i , j t + C 1 r 1 X i , j t + 1 X i , j t + C 2 r 2 G b e s t j   t X i , j t

4.6. Current Practice Method (CP)

In the CP, jobs will be assigned to technician teams on a first-come first-served (FCFS) basis. If the number of team members and the chosen team’s skill do not meet the work requirement, the next technician team will be chosen instead. The overall details of the CP method are given in Algorithms 1 and 3.
Algorithm 1. Re-schedule for multi-visit and multi-period dynamic workforce scheduling and routing problem (MMDWSRP).
Input: MMDWSRP data, Total cost = 0, =
Output: Total cost
For each period
    Set technician teams’ position at depot
    Add job for each sub-system that knows the repair time at start period time to .
    While job in period is still in need of completion do
        Plan by selected method
        Assign the technician teams by the selected method plan
        If new job or harvester relocation then
         Update Time
         If job in the plan completes before updated time then
          Remove the job in and add to period plan
          Update technician teams’ position
         End if
         Add new job to or update job’s position
        End if
      End of while
      Calculate period plan fitness by Equation (1)
      Total cost += period plan fitness
End for
Algorithm 2. Hybrid particle swarm and whale optimization algorithm (HPSWOA).
Input: MMDWSRP data, HPSWOA parameters ( τ , b , C 1 , C 2 , w m i n , w m a x ), maximum iteration, NP,
Output: plan for technician teams
Randomly generate a set of WOA vectors i ( i = 1…NP) (Section 4.1)
Randomly generate a set of PSO vectors i ( i = 1…NP) (Section 4.1)
  While maximum iteration not reached do
      For i = 1 to NP
        Update position WOA vectors i (Section 4.3)
        Update position and velocity PSO vectors i (Section 4.5)
        Fitness evaluation PSO vectors i (Section 4.1)
        If PSO vectors i fitness < Gbest fitness then
          Assign particles i to Gbest
          Gbest fitness = PSO vectors i fitness
        End if
        Update inertial weight PSO vectors i (Section 4.4)
      End for
      If Gbest fitness < leader whale fitness then
        Assign Gbest to leader whale
        leader whale fitness = Gbest fitness
      End if
End of while
Algorithm 3. Current practice method.
Input: MMDWSRP data,
Output: plan for technician teams
Sort jobs in with ready time in ascending order
Sort technician teams with technician team cost in ascending order
For sorted jobs
    For sorted technician teams
      If technician team can service then
        Assign the job to the technician team service
      Else then
        Assign the job to new technician team service
      End if
    End for
End for

5. Computational Results

Problems were solved to illustrate the efficiency and effectiveness of the HPSWOA in respect of the CEC 2017 benchmark functions [47] and the MMDWSRP. In doing so, the self-adaptive control inertial weight probability was set as τ = 0.1, w m i n = 0.4 , and w m a x = 0.9 [46]. The control parameters of traditional PSO and the WOA were set as w = 0.729844, C 1 = C 2 = 1.49618 [48], and b = 0.5 [34]. The numerical experiments in respect of the MMDWSRP consisted of 8 static problem sets (Section 5.2) and 18 dynamic problem sets (Section 5.3) with vector sizes = 100, max iterations = 100, and 10 runs per instance. The proposed algorithms were run using Python on a 2.38 GHz PC, with 8 GB of RAM, for testing and evaluation.

5.1. Optimization of CEC 2017 Benchmark Functions

In this section, the proposed algorithm (HPSWOA) is evaluated using benchmark functions of the well-known CEC 2017. F1 to F9 of the CEC 2017 benchmark functions were applied. Their specifications are detailed in Table 2. From this table, F1 and F2 are unimodal functions, which were employed to evaluate the optimization accuracy and the convergence speed of the proposed algorithms (i.e., the traditional GA, BA, WOA, PSO, and HPSWOA), while F3 to F9 are simple multimodal functions. The proposed algorithm (HPSWOA) was also tested against the traditional genetic algorithm (GA) [49], bat algorithm (BA) [50], WOA, and PSO to solve the CEC 2017 benchmark functions. The computational results for the CEC 2017 benchmark functions, with Dim = 10 in terms of mean and standard deviation of the error values, are shown in Table 3. From this table, it can be seen that the HPSWOA and PSO achieved the optimum results in F2. Furthermore, the HPSWOA yielded the best results for F2 to F6 and F8 to F9 (seven out of nine functions). Therefore, the HPSWOA achieved more superior performance in most cases compared to other algorithms (the traditional GA, BA, WOA, and PSO).

5.2. Static Problem

We generated eight static problems (Table 4) to compare the proposed methods with Lingo computational software. The penalty cost for each customer was generated in the value interval 15 to 25 for each problem. Job service times and time windows were set in the intervals 30 to 360 and 180 to 600 min, respectively. Overtime cost for each technician team was generated in the value interval 6 to 10 for each problem. The technician teams begin working at the 0th minute and continue until the 480th minute has passed. The waiting time for a job must not exceed 30 min. Overtime hours are limited to 120 min. The labor cost (technician team cost) and outsourcing service were priced in the intervals 1600 to 2000 and 300 to 7200, respectively. The travel time and travel cost were set in the intervals 5 to 100 min and 20 to 400, respectively. In addition, the job requirement for skills and the number of technicians were 2 skills (1 to 3 levels) and 1 to 2, respectively. We tested the traditional PSO, WOA, and HPSWOA performances against the performance of Lingo using 8 test instances. The results for the PSO, WOA, HPSWOA, and Lingo are shown in Table 4. The computational tests compared the best total cost. For instances 1 to 5 and 8, the WOA, PSO, and HPSWOA found that the best total cost equals the optimal solution. For instances 6 and 7, there were a high number of variables, and the MMDWSRP was NP-hard. In addition, the sugar mill only accepts a computational time that is less than 1 day, implying that the planning time for scheduling must not exceed one day. The optimal solution by Lingo could not be reached in one day (1440 min). A statistical test was performed to check if the proposed method was significantly different using the paired t-test, and the results of the test are shown in Table 5. In Table 5, the statistical test revealed that the results of Lingo were not significantly different from those of the WOA, PSO, and HPSWOA. Thus, PSO, the WOA, and the HPSWOA may be used in place of Lingo to solve static problems. The next section outlines the use of PSO, the WOA, and the HPSWOA to solve dynamic problems.

5.3. Dynamic Problem

In actual practice, the harvesters and technicians usually move and operate in different locations during each time period, and there are uncertainties such as breakdowns of the harvesters, together with limited resources, so it is more realistic to consider the problem as a dynamic one. Lund et al. [51] proposed the degree of dynamism (DoD) as a scale from 0 (before planning, all information is readily available) to 1 (before planning, all necessary information is not known) to quantify the proportion of dynamic requests to all requests. In a dynamic problem, we take parameters from the static problem and add the DoD to create the dynamic problem. We generated 18 dynamic problems as shown in Table 6. For the dynamic problems, the number of jobs, number of days, and DoD were set in intervals of 60 to 150 jobs, 7 to 30 days, and 0.1 to 0.3, respectively. The scatter plot of the average computational time in Figure 4 was based on the data from Table 6. From Figure 4, it can be seen that the average computational time of the WOA was the lowest, followed by HPSWOA and PSO. From Table 7, it was found that the p-values were all less than 0.05, indicating that the WOA, PSO, and HPSWOA were significantly different in their average computational times. Therefore, it can be concluded that the WOA improves the average computational time of PSO in HPSWOA. Statistical testing was performed to check if the proposed method was significantly different using the paired t-test, and the results of the test are shown in Table 8. In Table 8, the p-values were all less than 0.05, implying that current practice (CP), the WOA, PSO, and the HPSWOA were significantly different in determining the best total cost. The scatter plot of the best total cost (Figure 5) was based on the data from Table 6. From Figure 5, it can be seen that the HPSWOA yielded the best total cost. Table 9 shows that the average percentage changes of the best total cost obtained from the HPSWOA were 11.06%, 3.47%, and 3.91% when compared with CP, the WOA, and PSO, respectively.

6. Conclusions

In this paper, a new dynamic workforce scheduling and routing problem for the maintenance work of harvesters in a sugarcane harvest operation was introduced. In this problem, technician teams categorized as mechanical, hydraulic, and electrical were assumed to have different skills at different levels to perform services. The jobs were skill-constrained and had time windows. During a working day, a repair request from a sugarcane harvester may arrive, and as time passes, the harvester’s position may shift to other sugarcane fields. This problem was formulated as a multi-visit and multi-period dynamic workforce scheduling and routing problem (MMDWSRP), and this study is the first to address this problem in respect of the WSRP. The objective function of this research is used to minimize the total cost, including technician labor cost, travel cost, late service penalty, overtime, and subcontracting costs. To obtain the harvester maintenance plan, an integer linear programming formulation was developed to solve small problems. For large, practical problems, a hybrid particle swarm and whale optimization algorithm (HPSWOA) was proposed, using an approach based on two well-known methods, namely the WOA and PSO, to solve a multi-visit and multi-period dynamic workforce scheduling and routing problem (MMDWSRP). This approach can be used for maintenance jobs and route planning for each mechanical harvester to be requested by technician teams of relevant sub-systems. The method can be used to determine routes for each individual technician team so that the total cost, consisting of labor cost, traveling cost of technician teams, overtime, penalty, and subcontract costs, is minimized. The proposed algorithms were validated against Lingo computational software using numerical experiments in respect of static problems. Based on the statistical t-test, the WOA, PSO, and HPSWOA were shown to be as efficient as the Lingo computational software.
The proposed method was also tested against the current practice, the traditional WOA, and the traditional PSO, to solve dynamic problems. The experimental results show that the HPSWOA, which extended WOA’s vector to PSO’s personal best vector for a high search exploration advantage, yielded more superior performance than all the other algorithms in terms of solution quality. The total cost of the proposed method was reduced by 11.06%, 3.47%, and 3.91% as compared with the current practice, the traditional WOA, and the traditional PSO, respectively. The HPSWO was also tested against the traditional genetic algorithm (GA), bat algorithm (BA), WOA, and PSO to solve the well-known CEC 2017 benchmark functions. The computational results show that the HPSWOA achieved a superior performance in most cases compared to the GA, BA, WOA, and PSO algorithms.
For future work, more practical limitations can be included in the research. These might include a dynamic workforce constraint, where the number of workforces differs for each day; a route blocking constraint if the maintenance is delayed to the next day resulting a changed route; and maintenance service time as a fuzzy variable of the problem. Additionally, technology adoption such as through Internet of Things (IoT) technology, sensors, Cloud technology, and mobile applications can be developed to create a more intelligent maintenance system for mechanical harvesters. We believe that these can be added to the capability of our study to describe real-life problems and will be a useful expansion.

Author Contributions

Conceptualization, V.P. and K.S.; methodology, V.P.; software, V.P.; validation, V.P. and K.N.; formal analysis, K.S., K.N. and R.P.; writing—original draft, V.P., K.S. and K.N.; writing—review and editing, K.S. and R.P.; supervision, K.S. All authors have read and agreed to the published version of the manuscript.

Funding

This work is supported by the Research Unit on System Modeling for Industry (Grant No. SMI. KKU PHD591005), Department of Industrial Engineering, Faculty of Engineering, Khon Kaen University, Thailand and Rajamangala University of Technology Krungthep, Thailand.

Data Availability Statement

Not applicable.

Acknowledgments

We also thank Somnuk Theerakulpisut for his critical review of the manuscript.

Conflicts of Interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

References

  1. Sugar Asia Magazine. Available online: https://Sugar-Asia.Com/the-Competitive-Capability-of-Sugar-Production-in-Thailand-in-Comparison-with-the-World-Sugar-Market (accessed on 23 August 2022).
  2. Pitakaso, R.; Sethanan, K. Adaptive Large Neighborhood Search for Scheduling Sugarcane Inbound Logistics Equipment and Machinery under a Sharing Infield Resource System. Comput. Electron. Agric. 2019, 158, 313–325. [Google Scholar] [CrossRef]
  3. Worasan, K.; Sethanan, K.; Pitakaso, R.; Moonsri, K.; Nitisiri, K. Hybrid Particle Swarm Optimization and Neighborhood Strategy Search for Scheduling Machines and Equipment and Routing of Tractors in Sugarcane Field Preparation. Comput. Electron. Agric. 2020, 178, 105733. [Google Scholar] [CrossRef]
  4. Junqueira, R.D.Á.R.; Morabito, R. Optimization Approaches for Sugarcane Harvest Front Programming and Scheduling. Gest. Prod. 2017, 24, 407–422. [Google Scholar] [CrossRef] [Green Version]
  5. Najafi, P.; Asoodar, M.A.; Marzban, A.; Hormozi, M.A. Reliability Analysis of Agricultural Machinery: A Case Study of Sugarcane Chopper Harvester. Agricengint CIGR J. 2015, 17, 158–165. [Google Scholar]
  6. Ouertani, N.; Nouaouri, I.; Ben-Romdhane, H.; Allaoui, H.; Krichen, S. A Hypermutation Genetic Algorithm for the Dynamic Home Health-Care Routing Problem. In Proceedings of the 2019 International Conference on Industrial Engineering and Systems Management (IESM), Shanghai, China, 25–27 September 2019; IEEE: Piscataway, NJ, USA, 2019; pp. 1–6. [Google Scholar]
  7. El-Amraoui, A.; Harbi, S.; Moh, A.N.S. Home Health Care Scheduling Problem Under Uncertainty: Robust Optimization Approaches. Comput. Inform. 2022, 41, 288–308. [Google Scholar] [CrossRef]
  8. Lesaint, D.; Voudouris, C.; Azarmi, N. Dynamic Workforce Scheduling for British Telecommunications Plc. Interfaces 2000, 30, 45–56. [Google Scholar] [CrossRef]
  9. Borenstein, Y.; Shah, N.; Tsang, E.; Dorne, R.; Alsheddy, A.; Voudouris, C. On the Partitioning of Dynamic Workforce Scheduling Problems. J. Sched. 2010, 13, 411–425. [Google Scholar] [CrossRef]
  10. Pillac, V.; Guéret, C.; Medaglia, A.-L. A Fast Reoptimization Approach for the Dynamic Technician Routing and Scheduling Problem. In Recent Developments in Metaheuristics; Springer: Cham, Switzerland, 2018; Volume 62, pp. 347–367. [Google Scholar]
  11. Ling, Y.; Zhou, Y.; Luo, Q. Lévy Flight Trajectory-Based Whale Optimization Algorithm for Global Optimization. IEEE Access 2017, 5, 6168–6186. [Google Scholar] [CrossRef]
  12. Saleh, A.A.; Mohamed, A.-A.A.; Hemeida, A.M.; Ibrahim, A.A. Multi-Objective Whale Optimization Algorithm for Optimal Allocation of Distributed Generation and Capacitor Bank. In Proceedings of the International Conference on Innovative Trends in Computer Engineering (ITCE), Aswan, Egypt, 2–4 February 2019; pp. 459–465. [Google Scholar]
  13. Luan, F.; Cai, Z.; Wu, S.; Jiang, T.; Li, F.; Yang, J. Improved Whale Algorithm for Solving the Flexible Job Shop Scheduling Problem. Mathematics 2019, 7, 384. [Google Scholar] [CrossRef] [Green Version]
  14. Jiang, T.; Zhang, C.; Sun, Q.-M. Green Job Shop Scheduling Problem with Discrete Whale Optimization Algorithm. IEEE Access 2019, 7, 43153–43166. [Google Scholar] [CrossRef]
  15. Liu, M.; Yao, X.; Li, Y. Hybrid Whale Optimization Algorithm Enhanced with Lévy Flight and Differential Evolution for Job Shop Scheduling Problems. Appl. Soft Comput. 2020, 87, 105954. [Google Scholar] [CrossRef]
  16. Dewi, S.K.; Utama, D.M. A New Hybrid Whale Optimization Algorithm for Green Vehicle Routing Problem. Syst. Sci. Control Eng. 2021, 9, 61–72. [Google Scholar] [CrossRef]
  17. Jiang, W.; Hu, R.; Qian, B.; Yu, N.-K.; Liu, B. Hybrid Whale Optimization Algorithm for Solving Green Open Vehicle Routing Problem with Time Windows. In International Conference on Intelligent Computing; Springer: Berlin/Heidelberg, Germany, 2021; Volume 12836, pp. 673–683. [Google Scholar]
  18. Petrović, M.; Miljković, Z.; Jokić, A. A Novel Methodology for Optimal Single Mobile Robot Scheduling Using Whale Optimization Algorithm. Appl. Soft Comput. 2019, 81, 105520. [Google Scholar] [CrossRef]
  19. Tanvir, M.H.; Hussain, A.; Rahman, M.M.; Ishraq, S.; Zishan, K.; Rahul, S.K.; Habib, M.A. Multi-Objective Optimization of Turning Operation of Stainless Steel Using a Hybrid Whale Optimization Algorithm. J. Manuf. Mater. Process. 2020, 4, 64. [Google Scholar] [CrossRef]
  20. Xu, J.; Chiu, S.Y. Effective Heuristic Procedures for a Field Technician Scheduling Problem. J. Heuristics 2001, 7, 495–509. [Google Scholar] [CrossRef]
  21. Dohn, A.; Kolind, E.; Clausen, J. The Manpower Allocation Problem with Time Windows and Job-Teaming Constraints: A Branch-and-Price Approach. Comput. Oper. Res. 2009, 36, 1145–1157. [Google Scholar] [CrossRef] [Green Version]
  22. Pillac, V.; Gueret, C.; Medaglia, A.L. A Parallel Matheuristic for the Technician Routing and Scheduling Problem. Optim. Lett. 2013, 7, 1525–1535. [Google Scholar] [CrossRef] [Green Version]
  23. Pinheiro, R.L.; Landa-Silva, D.; Atkin, J. A Variable Neighbourhood Search for the Workforce Scheduling and Routing Problem. In Advances in Nature and Biologically Inspired Computing; Springer: Berlin/Heidelberg, Germany, 2016; Volume 419, pp. 247–259. [Google Scholar] [CrossRef]
  24. Mathlouthi, I.; Gendreau, M.; Potvin, J.-Y. Mixed Integer Linear Programming for a Multi-Attribute Technician Routing and Scheduling Problem. INFOR Inf. Syst. Oper. Res. 2018, 56, 33–49. [Google Scholar] [CrossRef]
  25. Cordeau, J.-F.; Laporte, G.; Pasin, F.; Ropke, S. Scheduling Technicians and Tasks in a Telecommunications Company. J. Sched. 2010, 13, 393–409. [Google Scholar] [CrossRef]
  26. Kovacs, A.A.; Parragh, S.N.; Doerner, K.F.; Hartl, R.F. Adaptive Large Neighborhood Search for Service Technician Routing and Scheduling Problems. J. Sched. 2012, 15, 579–600. [Google Scholar] [CrossRef]
  27. Anoshkina, Y.; Meisel, F. Technician Teaming and Routing with Service-, Cost-and Fairness-Objectives. Comput. Ind. Eng. 2019, 135, 868–880. [Google Scholar] [CrossRef]
  28. Çakırgil, S.; Yücel, E.; Kuyzu, G. An Integrated Solution Approach for Multi-Objective, Multi-Skill Workforce Scheduling and Routing Problems. Comput. Oper. Res. 2020, 118, 104908. [Google Scholar] [CrossRef]
  29. Blakeley, F.; Argüello, B.; Cao, B.; Hall, W.; Knolmajer, J. Optimizing Periodic Maintenance Operations for Schindler Elevator Corporation. Interfaces 2003, 33, 67–79. [Google Scholar] [CrossRef]
  30. Zamorano, E.; Stolletz, R. Branch-and-Price Approaches for the Multiperiod Technician Routing and Scheduling Problem. Eur. J. Oper. Res. 2017, 257, 55–68. [Google Scholar] [CrossRef]
  31. Pekel, E. Solving Technician Routing and Scheduling Problem Using Improved Particle Swarm Optimization. Soft Comput. 2020, 24, 19007–19015. [Google Scholar] [CrossRef]
  32. Punyakum, V.; Sethanan, K.; Nitisiri, K.; Pitakaso, R.; Gen, M. Hybrid Differential Evolution and Particle Swarm Optimization for Multi-Visit and Multi-Period Workforce Scheduling and Routing Problems. Comput. Electron. Agric. 2022, 197, 106929. [Google Scholar] [CrossRef]
  33. Demirbilek, M.; Branke, J.; Strauss, A.K. Home Healthcare Routing and Scheduling of Multiple Nurses in a Dynamic Environment. Flex. Serv. Manuf. J. 2021, 33, 253–280. [Google Scholar] [CrossRef] [Green Version]
  34. Mirjalili, S.; Lewis, A. The Whale Optimization Algorithm. Adv. Eng. Softw. 2016, 95, 51–67. [Google Scholar] [CrossRef]
  35. Rana, N.; Latiff, M.S.A.; Abdulhamid, S.M.; Chiroma, H. Whale Optimization Algorithm: A Systematic Review of Contemporary Applications, Modifications and Developments. Neural Comput. Appl. 2020, 32, 16245–16277. [Google Scholar] [CrossRef]
  36. Sethanan, K.; Jamrus, T. Hybrid Differential Evolution Algorithm and Genetic Operator for Multi-Trip Vehicle Routing Problem with Backhauls and Heterogeneous Fleet in the Beverage Logistics Industry. Comput. Ind. Eng. 2020, 146, 106571. [Google Scholar] [CrossRef]
  37. Wang, P.C.; Shoup, T.E. A Poly-Hybrid PSO Optimization Method with Intelligent Parameter Adjustment. Adv. Eng. Softw. 2011, 42, 555–565. [Google Scholar] [CrossRef]
  38. Khajehzadeh, M.; Taha, M.R.; Eslami, M. Multi-Objective Optimisation of Retaining Walls Using Hybrid Adaptive Gravitational Search Algorithm. Civ. Eng. Environ. Syst. 2014, 31, 229–242. [Google Scholar] [CrossRef]
  39. Koessler, E.; Almomani, A. Hybrid Particle Swarm Optimization and Pattern Search Algorithm. Optim. Eng. 2021, 22, 1539–1555. [Google Scholar] [CrossRef]
  40. Khajehzadeh, M.; Keawsawasvong, S.; Sarir, P.; Khailany, D.K. Seismic Analysis of Earth Slope Using a Novel Sequential Hybrid Optimization Algorithm. Period. Polytech. Civ. Eng. 2022, 66, 355–366. [Google Scholar] [CrossRef]
  41. Victoire, T.A.A.; Jeyakumar, A.E. Hybrid PSO–SQP for Economic Dispatch with Valve-Point Effect. Electr. Power Syst. Res. 2004, 71, 51–59. [Google Scholar] [CrossRef]
  42. Eslami, M.; Shareef, H.; Mohamed, A.; Khajehzadeh, M. Damping Controller Design for Power System Oscillations Using Hybrid GA-SQP. Int. Rev. Electr. Eng. 2011, 6, 888–896. [Google Scholar]
  43. Abdel-Mawgoud, H.; Fathy, A.; Kamel, S. An Effective Hybrid Approach Based on Arithmetic Optimization Algorithm and Sine Cosine Algorithm for Integrating Battery Energy Storage System into Distribution Networks. J. Energy Storage 2022, 49, 104154. [Google Scholar] [CrossRef]
  44. Eberhart, R.; Kennedy, J. Particle Swarm Optimization. In Proceedings of the IEEE International Conference on Neural Networks, Perth, WA, Australia, 27 November–1 December 1995; Volume 4, pp. 1942–1948. [Google Scholar] [CrossRef]
  45. Jia, L.; Gong, W.; Wu, H. An Improved Self-Adaptive Control Parameter of Differential Evolution for Global Optimization. In International Symposium on Intelligence Computation and Applications; Springer: Berlin/Heidelberg, Germany, 2009; pp. 215–224. [Google Scholar]
  46. Trivedi, I.N.; Jangir, P.; Kumar, A.; Jangir, N.; Totlani, R. A Novel Hybrid PSO–WOA Algorithm for Global Numerical Functions Optimization. Adv. Comput. Comput. Sci. 2018, 554, 53–60. [Google Scholar]
  47. Awad, N.H.; Ali, M.; Liang, J.; Qu, B.; Suganthan, P.; Definitions, P. Evaluation Criteria for the CEC 2017 Special Session and Competition on Single Objective Real-Parameter Numerical Optimization. Tech. Rep. 2016. [Google Scholar]
  48. Harrison, K.R.; Engelbrecht, A.P.; Ombuki-Berman, B.M. Self-Adaptive Particle Swarm Optimization: A Review and Analysis of Convergence. Swarm Intell. 2018, 12, 187–226. [Google Scholar] [CrossRef] [Green Version]
  49. Whitley, D. A Genetic Algorithm Tutorial. Stat. Comput. 1994, 4, 65–85. [Google Scholar] [CrossRef]
  50. Yang, X.-S. A New Metaheuristic Bat-Inspired Algorithm. Nat. Inspired Coop. Strateg. Optim. 2010, 284, 65–74. [Google Scholar]
  51. Lund, K.; Madsen, O.B.G.; Rygaard, J.M. Vehicle Routing Problems with Varying Degrees of Dynamism; Institute of Mathematical Modelling, Technical University of Denmark: Lyngby, Denmark, 1996. [Google Scholar]
Figure 1. Systematic diagram of the multi-visit and multi-period dynamic workforce scheduling and routing problem (MMDWSRP).
Figure 1. Systematic diagram of the multi-visit and multi-period dynamic workforce scheduling and routing problem (MMDWSRP).
Mathematics 10 03663 g001
Figure 2. Illustrative example of the construction of a vector of a sub-system.
Figure 2. Illustrative example of the construction of a vector of a sub-system.
Mathematics 10 03663 g002
Figure 3. Flowchart of the hybrid particle swarm and whale optimization algorithm (HPSWOA).
Figure 3. Flowchart of the hybrid particle swarm and whale optimization algorithm (HPSWOA).
Mathematics 10 03663 g003
Figure 4. Scatter plot of the average computational time obtained from Table 6.
Figure 4. Scatter plot of the average computational time obtained from Table 6.
Mathematics 10 03663 g004
Figure 5. Scatter plot of the best total cost obtained from Table 6.
Figure 5. Scatter plot of the best total cost obtained from Table 6.
Mathematics 10 03663 g005
Table 1. Mathematical formulation constraints.
Table 1. Mathematical formulation constraints.
ConstraintDescription
(2)Ensures that job m in sub-system s is serviced either by a team or a subcontractor.
(3)Indicates that job m is serviced by team r in sub-system s .
(4)Ensures that, after service completion, the team transport vehicles had to leave the job.
(5)Indicates that the start time for servicing job n is equal to the sum of the completion time of job m and the travel time of team r .
(6)Ensures that a team is able to start servicing only when the job is ready.
(7)Ensures that if a team cannot finish the service in time, a delay occurs.
(8)Ensures that the service delay must not exceed an allowed delay time.
(9)Specifies the time when a team can start a service.
(10)Indicates team overtime for late arrival at the depot.
(11)Ensures that the amount of overtime used by each team in a given period must not exceed the allowed overtime.
(12)Ensures that the number of teams servicing the jobs must not exceed the number of teams that are actually available.
(13)Ensures that the number of technicians in team r in sub-system s is sufficient for servicing job m .
(14)Ensures that the technician teams’ skill levels and types are adequate for servicing job m .
(15)Determines technician team r of the sub-system s required during period t .
(16)–(19)The binary variable constraints.
Table 2. Descriptions of the CEC 2017 benchmark functions.
Table 2. Descriptions of the CEC 2017 benchmark functions.
No.GroupDescription F i *
F1Unimodal functionsShifted and rotated bent cigar function100
F2 Shifted and rotated Zakharov function200
F3Simple multimodal functionsShifted and rotated Rosenbrock’s function300
F4 Shifted and rotated Rastrigin’s function400
F5 Shifted and rotated expanded Scaffer’s F6 function500
F6 Shifted and rotated Lunacek bi-Rastrigin function600
F7 Shifted and rotated non-continuous Rastrigin’s function700
F8 Shifted and rotated Levy function800
F9 Shifted and rotated Schwefel’s function900
Table 3. Comparative results for the CEC 2017 benchmark functions.
Table 3. Comparative results for the CEC 2017 benchmark functions.
No.GA BA WOA PSO HPSWOA
MeanStd.MeanStd.MeanStd.MeanStd.MeanStd.
F19.3355 × 1035.2101 × 1031.1542 × 10136.3627 × 10125.1413 × 1033.3779 × 1032.8359 × 1031.8965 × 1033.5739 × 1032.5432 × 103
F21.4435 × 1039.1837 × 1023.5692 × 1072.9560 × 1076.3598 × 10−64.1574 × 10−60.0000 × 1000.0000 × 1000.0000 × 1000.0000 × 100
F35.6102 × 1004.8250 × 10−16.8654 × 1055.4167 × 1051.9155 × 1004.9560 × 10−19.8217 × 1001.4493 × 1001.1292 × 1008.7680 × 10−1
F49.5142 × 1002.0899 × 1005.9447 × 1052.6542 × 1042.3524 × 1015.2721 × 1001.2314 × 1022.5796 × 1011.4057 × 1014.9011 × 100
F52.1875 × 1001.3174 × 1006.2376 × 1055.7474 × 1041.1509 × 1018.3052 × 1005.2498 × 1011.3300 × 1011.6095 × 1008.0240 × 10−1
F62.6048 × 1013.3328 × 1007.4935 × 1052.2487 × 1044.9409 × 1011.1489 × 1011.1152 × 1021.4160 × 10−12.0654 × 1015.4430 × 100
F76.5510 × 1003.4600 × 1008.4397 × 1051.6496 × 1042.3388 × 1016.4430 × 1008.3493 × 1020.0000 × 1002.1755 × 1014.4055 × 100
F84.3192 × 1002.8240 × 1004.7410 × 1061.7545 × 1051.6726 × 10−11.1135 × 10−18.7776 × 1021.1230 × 1011.7789 × 10−41.2279 × 10−4
F93.7047 × 1022.4671 × 1023.6634 × 1063.6975 × 1056.8409 × 1022.2967 × 1021.8222 × 1034.7987 × 1022.5487 × 1021.2286 × 102
Table 4. Static problem results for Lingo, WOA, PSO, and HPSWOA.
Table 4. Static problem results for Lingo, WOA, PSO, and HPSWOA.
Ins.No.
of
Job
No.
of
Day
LingoWOAPSOHPSWOA
BestCPU Time (min)BestAvgCPU Time (s)BestAvgCPU Time (s)BestAvgCPU Time (s)
110316,847.000.0316,847.0017,256.604.7616,847.0017,689.107.0116,847.0017,084.007.26
210723,192.000.0723,192.0023,192.002.9023,192.0023,192.002.8423,192.0023,192.002.78
320320,192.006.8320,192.0020,665.205.0020,192.0020,693.605.8220,192.0020,546.106.08
420740,042.0037.3340,042.0040,042.002.7740,042.0040,042.002.8040,042.0040,042.002.87
5201544,348.0019.6144,348.0044,348.003.2744,348.0044,348.003.3844,348.0044,348.002.82
630331,093.00 11440.0030,697.0032,056.9014.6830,938.0032,028.0023.4630,068.0030,938.1023.29
730734,853.00 11440.0034,833.0035,698.406.1135,049.0036,268.609.3734,833.0035,446.8010.00
8301556,124.0010.0356,124.0056,124.003.0356,124.0056,124.002.8456,124.0056,124.002.78
1 Not the optimal solution.
Table 5. Statistical test results of the best total cost obtained from Table 4.
Table 5. Statistical test results of the best total cost obtained from Table 4.
WOAPSOHPSWOA
Lingo0.7570.4440.492
Table 6. The dynamic problem results for CP, the WOA, PSO, and the HPSWOA.
Table 6. The dynamic problem results for CP, the WOA, PSO, and the HPSWOA.
Ins.No.
of
Job
No.
of
Day
DoDCPWOAPSOHPSWOA
BestBestAvgCPU Time (s)BestAvgCPU Time (s)BestAvgCPU Time (s)
16070.160,742.7756,867.5558,751.3743.1557,888.6359,843.4072.8254,930.8956,321.8055.77
26070.266,165.0161,926.6463,313.0847.4662,064.8263,910.11103.3060,443.1261,737.9375.73
36070.368,547.3762,147.3863,655.0868.7663,026.4164,310.5983.2560,583.2362,002.8250.22
410070.186,060.8985,507.4087,915.87245.8285,040.0387,839.67448.5080,137.6884,612.61354.72
510070.290,143.7788,425.8989,749.63389.2889,820.8292,619.14431.8785,672.1887,408.17429.48
610070.398,786.5489,394.7991,258.24465.1990,127.9593,335.72517.3284,678.0287,069.23524.65
7100150.1115,122.91102,471.15103,113.4356.29102,673.57103,419.8572.03101,024.25101,588.7078.62
8100150.2113,841.56107,658.95108,713.8749.96107,658.95109,082.1463.19106,202.02108,143.6255.69
9100150.3120,072.12111,284.17113,801.4741.05111,281.22113,817.7962.25110,977.17113,055.5549.14
1015070.1157,205.32138,068.72141,631.88510.00139,019.63142,985.52576.20127,254.70132,442.84512.08
1115070.2172,360.12141,335.98145,410.89761.75142,160.74146,246.041317.51137,330.67141,279.731045.58
1215070.3175,128.80145,251.82148,517.14593.44144,339.02147,761.72868.92136,238.08140,712.74837.83
13150150.1148,614.33140,222.92142,179.03227.98141,804.39146,990.98324.40130,367.17133,773.83289.68
14150150.2153,608.22140,301.37142,183.72261.65140,290.30143,741.14356.78131,435.74138,424.81306.14
15150150.3154,851.33141,343.62144,553.90302.06142,864.80145,484.64505.76134,668.31141,013.72439.32
16150300.1187,507.74177,029.34177,213.1420.15177,029.34177,550.5830.99176,457.84176,572.6815.99
17150300.2195,290.08186,768.27188,166.1912.10187,051.56188,778.2524.12185,870.04187,509.7320.90
18150300.3206,263.06198,529.40199,915.416.89198,241.63199,534.0315.39197,074.98198,647.006.86
Table 7. Statistical test results for the average computational time obtained from Table 6.
Table 7. Statistical test results for the average computational time obtained from Table 6.
PSOHPSWOA
WOA0.0080.010
PSO 0.016
Table 8. Statistical test results for the best total cost obtained from Table 6.
Table 8. Statistical test results for the best total cost obtained from Table 6.
WOAPSOHPSWOA
CP0.0010.0010.001
WOA 0.0180.001
PSO 0.001
Table 9. Average percentage change of the objective function from the best solution obtained from the HPSWOA.
Table 9. Average percentage change of the objective function from the best solution obtained from the HPSWOA.
CPWOAPSO
HPSWOA11.06%3.47%3.91%
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Punyakum, V.; Sethanan, K.; Nitisiri, K.; Pitakaso, R. Hybrid Particle Swarm and Whale Optimization Algorithm for Multi-Visit and Multi-Period Dynamic Workforce Scheduling and Routing Problems. Mathematics 2022, 10, 3663. https://doi.org/10.3390/math10193663

AMA Style

Punyakum V, Sethanan K, Nitisiri K, Pitakaso R. Hybrid Particle Swarm and Whale Optimization Algorithm for Multi-Visit and Multi-Period Dynamic Workforce Scheduling and Routing Problems. Mathematics. 2022; 10(19):3663. https://doi.org/10.3390/math10193663

Chicago/Turabian Style

Punyakum, Voravee, Kanchana Sethanan, Krisanarach Nitisiri, and Rapeepan Pitakaso. 2022. "Hybrid Particle Swarm and Whale Optimization Algorithm for Multi-Visit and Multi-Period Dynamic Workforce Scheduling and Routing Problems" Mathematics 10, no. 19: 3663. https://doi.org/10.3390/math10193663

APA Style

Punyakum, V., Sethanan, K., Nitisiri, K., & Pitakaso, R. (2022). Hybrid Particle Swarm and Whale Optimization Algorithm for Multi-Visit and Multi-Period Dynamic Workforce Scheduling and Routing Problems. Mathematics, 10(19), 3663. https://doi.org/10.3390/math10193663

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop