Next Article in Journal
Accreditation Process and Employee Well-Being in Healthcare Organizations
Next Article in Special Issue
Enhancing Water Management in Shale Gas Extraction through Rectangular Pulse Hydraulic Fracturing
Previous Article in Journal
Research on the Influencing Factors of Construction Enterprises’ Digital Transformation Based on DEMATEL-TAISM
Previous Article in Special Issue
Water and Carbon Footprints of Biomass Production Assets: Drip and Center Pivot Irrigation Systems
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Optimal Scheduling of Rainwater Collection Vehicles: Mixed Integer Programming and Genetic Algorithms

1
Mechanical and Industrial Engineering Department, American University of Ras Al Khaimah, Ras Al Khaimah P.O. Box 10021, United Arab Emirates
2
Faculty of Electrical Engineering, Mechanical Engineering and Naval Architecture (FESB), University of Split, 21000 Split, Croatia
3
Industrial Engineering Department, College of Engineering, King Saud University, P.O. Box 800, Riyadh 11421, Saudi Arabia
*
Author to whom correspondence should be addressed.
Sustainability 2023, 15(12), 9252; https://doi.org/10.3390/su15129252
Submission received: 30 April 2023 / Revised: 23 May 2023 / Accepted: 6 June 2023 / Published: 8 June 2023
(This article belongs to the Special Issue Water Management and Environmental Engineering)

Abstract

:
Due to climate change, some areas in the world witnessed higher levels of heavy rain than the capacity of the wastewater system of the streets. Therefore, water tankers are used for the dewatering process to take the extra rainwater from the streets to keep a smooth flow of vehicles and to use the water in agriculture and industry. Water is taken to a water treatment plant. Performing the dewatering process as fast as possible, especially in crowded streets, was ignored by researchers. In this study, at first, the problem was solved using two mixed integer programming (MIP) models. A new variant of identical parallel machine scheduling with job splitting is proposed for the first time, where one or at most two tankers can work at the same flood location at the same time. This is performed in the second model. However, the first model considers dividing the dewatering processes into two phases, where the first one, which is more urgent, is to reduce the amount of floodwater. The second one is for dewatering the rest of the water. Then two genetic algorithms (GAs) were used to solve faster the two MIP models, which are NP-hard problems. At first, the MIP and GA models were applied to small-sized problems. Then GA was used for large practical data sets. Results showed that for small problems, MIP and GA gave optimal solutions in a reasonable number of iterations, while for larger problems, good solutions were obtained in a reasonable number of iterations.

1. Introduction

Because of climate change, some areas face rain levels more than expected. The infrastructure of some cities is not capable of dealing with such huge amounts of rainwater [1]. Therefore, water tankers are used in the winter to remove extra rainwater from the streets. The study focuses on a certain city that faces levels of rainwater that need to be evacuated from the streets to a water treatment plant in the city. Usually, water tankers offer a mobile solution to several bulk water needs. The problem of allocating different trucks to different water locations and the optimal scheduling of trucks was ignored in previous studies. Therefore, this study aims to fill in this gap of research. There are some similarities between the traditional job scheduling problem and the water tankers problem (WTP). However, there are some special conditions of WTP that make it different and need further investigation.
The problem investigated in this study is similar to parallel machine scheduling with a job-splitting property (PMSJS) [2]. The machines here are water tankers. There are no setup times. The jobs are dewatering processes of flood spots on the main streets in a city. The main difference between PMSJS and WTP is the maximum job-splitting of only 2. In other words, two trucks at maximum can work at the same flood location from two sides of the pool of water. To solve the problem, mixed integer programming (MIP) is used. Because it is NP-hard, a genetic algorithm (GA) is used to solve it. Two models are created, and each model adds some of the practical considerations to the problem in order to arrive at a solution. These models are as follows:
  • Model 1: several trucks work together in the same area or city, but every location can be dewatered by only one truck. The problem combines parallel machine scheduling with job shop scheduling. In this case, some locations exist on very active streets, and flood level matters. Therefore, two phases for such a location are distinguished. The first phase of the deep flood, which is more important, must be performed before the second phase. Unlike job shop scheduling problems, parallel machine scheduling problems have no predefined routes for jobs on the machines. There is a single production stage for each job [3].
  • Model 2: it is similar to parallel machine scheduling with a job-splitting property but with a special condition of two water tankers per location at maximum.
The objective will be to minimize the total weighted flow time. None of the previous studies investigated water tanker allocation and scheduling problems. Therefore, this study will investigate that problem. However, the study did not examine combining models 1 and 2, which is interesting for future research. This study is based on a practical case study in which digital tools used in Industry 4.0, such as sensors to measure the level of water, are not used because of budget limitations. The aim of this study is to provide algorithms to optimize the system based on the current conditions. However, future work can investigate the effect of such tools on the optimization methods and improve results. The remainder of this paper is structured as follows: a literature review of different types of machine scheduling is presented in the next section. Then, in Section 3, the methodology containing the two MIP and GA models is explained. In Section 4, the results and analysis are presented. Finally, conclusions, including study limitations and recommendations for future research, are presented.

2. Literature Review

There are several methods of rainwater management used in the world and investigated in the literature, such as retention reservoirs, infiltration boxes, and green roofs. For example, the benefits of a green roof test bed for stormwater management were examined in a study by Qin et al. [4]. Such systems were found to be useful in tropical areas. Moreover, Eger et al. [5] asked how can the hydrologic processes influence stormwater infrastructure behavior. Zhang et al. [6] compared stormwater management in two cities: Singapore and Berlin. Different solutions for stormwater management were provided for the two cities. A cost analysis was provided. It was found that green roofs result in energy savings. Furthermore, various sustainable stormwater management solutions were evaluated by Alkhaledi et al. [7] using a multi-criteria decision-making model. The purpose is to guarantee public safety and adhere to runoff regulations.
The scheduling problem was investigated in environments other than transportation, such as the production process. For example, Shevasuthisilp and Intawong [8] investigated the scheduling problem in production planning to reduce makespan error by suggesting the best sequencing process to reduce the total processing time. Moreover, Dupláková et al. [9] investigated the scheduling problem in the production process in which the optimal sequencing of parts to be machined is determined. They used different methods, such as simulation. In another study by Balog et al. [10], the scheduling of manufacturing was investigated using Scheduling Software Lekin.
There are no publications about water tanker optimal schedules. There was a literature review that considered other problems. Stolk et al. [11] investigated water “tank” delivery schedules in Australia, which differs from water “tankers” in our study. The objective is to minimize the cost of delivering a given amount of sales value. Tankers in other fields, such as the petroleum and chemical industries, were investigated. Some studies considered coastal shuttle tanker scheduling, such as the study by Yang et al. [12]. They investigated the tanker scheduling plan model and considered the tanker fleet design. Cankaya et al. [13] investigated the scheduling of chemical tankers.
The water tanker scheduling was not considered before. This study presents two models. They are more complicated than the single machine sequencing model which was considered in the study by Baker and Keller [14], whey they provided comparisons between several integer programming models. This study considers several trucks working in the same area. In many cases, the sequencing problem can be modeled as a traveling salesman problem (TSP). Some studies investigated multiple TSP where some salesmen visit all the cities [15]. This can be helpful for real-life applications [16]. In the first model of this study, two phases exist, where the first phase must be finished before the start of the second one. Generally, when tasks depend on each other, job shop scheduling is utilized. Job shop scheduling was used in several studies, such as with Bülbül and Kaminsky [17], who made a new heuristic for large practical problems. Moreover, Ku and Beck [18] evaluated four MIP models of traditional job shop problems.
However, our study is not exactly a job shop problem because it has its unique conditions. This study is more similar to the identical parallel-machine scheduling but with zero setup time. Lee and Pinedo [19] considered identical machines in parallel and considered due dates. They took into consideration the setup time. Fanjul-Peyro et al. [20] used MIP to solve the unrelated parallel machine problem. In unrelated machines scheduling, the time needed for a given job depends on the machine. Tavakoli and Mahdizadeh [21] presented an integer-linear programming model for an identical parallel-machine scheduling problem. They proposed GA to solve the problem for large data sets. The objective was to minimize the total weighted flow time. The principles of natural evolution are the basis for GAs, which are search algorithms. GAs are useful for optimization problems, where the goal is to find the best solution out of a set of possible solutions. They are also applicable to problems that do not have a known solution, such as prediction problems. GAs can be employed to solve problems that are too complex for traditional algorithms [22]. A GA can evolve remarkably complex and interesting structures despite its highly simplified computational setting [23]. In GA, it is very important to define the input parameters, such as the crossover point [24]. Researchers can test different types of representations, crossover and mutation operators, and different methods of reproduction and selection. However, all these methods are inspired by Holland’s original GA and biological evolution [23]. Another study that used GA in identical parallel machine scheduling is the one by Chaudhry and Drake [25], who took into consideration the workers’ assignments. Moreover, Demirel et al. [26] also used GA in parallel machine scheduling to minimize total tardiness.
On the other hand, Dell’Amico et al. [27] presented heuristic and exact algorithms for such problems. The same problem was considered in the study by Fleszar and Hindi [28], who considered the resource constraint. The secondary resource constraint was also studied by Vallada et al. [29], who used enriched metaheuristics to solve the problem. Furthermore, Abreu and Prata [30] used a hybrid meta-heuristic to solve the scheduling problem. Simulated annealing was presented for unrelated parallel machine scheduling by Jouhari et al. [31]. Furthermore, Yepes-Borrero et al. [32] presented two metaheuristics to solve the unrelated parallel machine scheduling. Fanjul-Peyro [33] investigated the problem where processing times and setups depend on both the machine and the job. They presented MIP and a three-phase algorithm to solve the problem. Alharkan et al. [34] presented Tabu search and particle swarm optimization algorithms to solve the scheduling of two parallel machines with a single server.
However, in parallel machine scheduling problems, each job is assigned to exactly one machine. In our study, however, it can be assigned to two trucks at most in model 2. Therefore, a new variant, which is job splitting, is needed. Kim et al. [2] considered the problem where several sub-jobs could be processed separately on parallel machines by splitting a job. They suggested a two-phase heuristic algorithm. Sarıçiçek and Çelik, C. [35] investigated the parallel machine scheduling problem with job splitting where the objective is to reduce tardiness. Eroğlu et al. [36] solved the unrelated machine scheduling problem with job splitting using GA with the objective of reducing the makespan (completion time). They considered a real-life problem where each machine has its own processing time. Lee and Jang [3] investigated machine scheduling with job splitting and dedicated machines. Dedicated machines mean that jobs can only be processed on a specified set of machines. They assumed sequence-independent setup times. Oktafiani and Ardiansyah [37] investigated the scheduling problem of identical parallel machines with job splitting using MIP, where the objective is to reduce the makespan.
Rainwater collection optimization was overlooked in the literature. Moreover, most of the above studies considered makespan or total tardiness as objectives. The main contribution of this study is to investigate an identical parallel machine with no setup time and with the objective of minimizing the total weighted flow time with job splitting in a real-life application where job splitting is limited to two machines (water tankers). Such a real-life application was ignored in the literature. Furthermore, the division of parallel machine scheduling into two phases is also new.

3. Materials and Methods

The methodology of rainwater management proposed in this study was based on a real case study in the Middle East. Many projects of rainwater management can be strategic ones that need major changes in infrastructure and need large investment costs for a long period. However, the flood can come suddenly and needs immediate solutions on the operational level. This study investigates such an operational intervention. However, the main weakness of water tankers is that the needed time for the dewatering process using water tankers is much longer than what other methods need. The study tries to reduce that time by providing mathematical modeling that gives solutions in a reasonable time. Therefore, when enough fund is available in later stages, changes in the infrastructure are required. This paper proposes a customized way of GA that is suitable for identical parallel machine scheduling with job splitting where the maximum number of assigned machines for a job is two tankers. This new variant of identical parallel machine scheduling is proposed for the first time.
The methodology depends on two MIP and GA models. The following assumptions were considered in this study:
  • All the trucks are with the same capacity and the same loading and unloading rate. Therefore, the machines (trucks) are identical.
  • For the first model, one truck is only capable of dewatering one location at a time. In the second model, two trucks can perform the job.
  • Based on experts’ opinions and historical data, the exact number of truckloads of a certain water location is known with certainty.
  • All the water will be taken to the same final location (the water treatment plant in the city).
  • The penalty exists until the whole flood location is empty of water and the truck unloaded the last truckload in the water treatment plant.
  • The available number of trucks is predetermined. Therefore, it is not a decision variable.
WTP has unique conditions and, therefore, the following considerations need to be taken into account:
  • Different locations have different traffic volumes, and therefore, they have different priorities.
  • The dewatering process at some locations can be divided into two phases (deep water and shallow water). Different priorities are assigned to different phases. In this case, phase 1 must be done before Phase 2.
  • There is no relationship between one location and another, and this means that the problem is not like the job shop scheduling, except for the two phases of model 1.
  • No setup time is considered.
  • In the second model, there is no idle time.
  • The objective is to minimize total weighted flow time.
To take the above considerations into account, two MIP models were presented. Then they are solved by new special genetic algorithms. The WTP is presented for the first time to the scientific community. Figure 1 shows the methodology of the study. There are two models: The first one takes into consideration dividing the dewatering process into two phases, one for deep water and the second one is dewatering the rest of the floodwater. The second model takes into consideration the splitting of the dewatering process by two trucks. That means one or two trucks can make the dewatering process for any flood location. Each one has a different work of MIP and GA. If the number of locations, for example, is less than 10 locations of flood, MIP is used. Any situation in which we have 10 or more locations, GA is used. The study, however, does not consider combining both models into one, as it can be investigated in future research.
The two models are as follows:
  • MIP for Model 1
There is more than one truck to serve one area. However, a flood location can only be served by one truck all the time. In other words, preemption is not allowed. The allocation of each truck to different locations is considered a decision variable. Some locations can have massive amounts of rainwater on important streets with large traffic volumes. In such locations, the first phase of rainwater removal is more important than the second phase. The first phase must be done before the second one. Each phase of each location must be performed by the same truck. Each location does not need to have two phases, because some streets are not with heavy traffic or because the level of rainwater is shallow. Table 1 shows an example of six flood locations. The time unit is the time needed for the dewatering of one truckload. Each location needs a different number of dewatering processes (truckloads). The dewatering process means sucking the rainwater from the street into the truck and unloading rainwater from the truck into the water treatment plant. If it is performed five times, then d = 5. For example, the truck must work on the first location for dewatering five times. Each time, transportation occurs. Therefore, the total time spent serving location 1 is 10 units of time which are (1 + t) d = 5 × (1 + 1). The unit of time is the average needed time to finish one truckload, including loading and unloading of rainwater, without considering transportation. The traffic volume is measured on a scale of 1 to 10, where 10 is very heavy traffic in the middle of the city, and 1 means very distant areas with lower importance. Therefore, the model gives more priority to areas in the middle of the city with p-values approaching 10.
Table 1 shows some locations with massive amounts of water (e.g., locations 2 and 3). The importance of a location depends on how deep the water is. A deeper flood has higher importance. Therefore, the same location can be divided into two locations. The first phase of dewatering is more important. Assume there are two levels (deep and shallow). δ = 1 means shallow and δ = 2 means deep. The expression δ(β) = 2(3) means that the first three truckloads are in the first phase. For the second flood location, the first three truckloads are considered more important than the last seven truckloads in Phase 2. Therefore, Phase 1 has a higher p-value, for example (8), to increase the attention for these phases. The first phase (e.g., three truckloads in the second location) must be finished before the rest of the processes are complete. The two phases can be accomplished by two different trucks. Therefore, Table 1 can be rewritten as in Table 2.
Mathematical modeling will depend on Table 2, assuming that we have eight locations instead of six.
The due date is zero, which means that trucks must start immediately, and therefore, there is no holding cost. Holding cost occurs if the process is done too early. Loading and unloading needed times of water are assumed fixed. The decision variables of the study are:
xj is the start time (in dewatering time units) for flood location j (measured from time zero). For example, x1 = 0 means that the truck will start from the flood location 1.
w m j = 1 ,    i f   t r u c k   m   i s   a s s i g n e d   t o   l o c a t i o n   j 0 ,   o t h e r w i s e
y m i j = 1 ,   i f   i   p r e c e d e s   j   u s i n g   t r u c k   m 0 ,   i f   j   p r e c e d e s   i   u s i n g   t r u c k   m
T, which is an input parameter, is the total number of water tankers. The model can be written as follows:
For example, y112 means that truck 1 will start serving location 1 before location 2. However, it does not mean that location 2 will immediately be after location 1.
The model can be written as follows:
m i n i m i z e   z   =   j = 1 N p j s j +
Subject To
x i x j + M y m i j M w m i + w m j 2 1 + t j d j + M w m i + w m j 2 m = 1 T , i = 1 N 1 , j = i + 1 N
x i + x j M y m i j M w m i + w m j 2 1 + t i d i M + M w m i + w m j 2 m = 1 T , i = 1 N 1 , j = i + 1 N
x j + s j s j + = 1 + t j d j        j = 1 N
m = 1 M w m j = 1        m = 1 T , j = 1 N
x i + x i + 1 1 + t i d i        i ν
x j , s j + , s j 0        j = 1 N
y m i j   a n d   w m j = 0 , 1        m = 1 T , i = 1 N , j = 1 N , i j
where M is a large number. The objective function is the total weighted flow time for different locations. The flow time of a certain location means the time needed to finish all the truckloads of that location. In other words, it is the end time of that location. To find the objective function, the end time for each location is multiplied by the level of street traffic (p). Then the summation for all locations is found. Makespan was not considered as the objective because different flood locations have different levels of importance. s j + is used to represent the end time of task j. This means that there is a penalty until the location is empty of water. Equations (2) and (3) are to guarantee that two locations cannot be served by one truck at the same time. The two terms M w m i + w m j 2 and + M w m i + w m j 2 are added to these two constraints to enforce the model to consider these two constraints if the term is zero. In other words, if the locations i and j are served by the same truck, m, then they cannot be served at the same time. If one or the two of these locations are not served by the truck m, then the term M w m i + w m j 2 will be a large positive number, and the term M w m i + w m j 2 be a large negative number, and therefore, the two constraints (2) and (3) will be redundant for the truck m. Equation (4) is to calculate the end time of dewatering. The end time here means that the truck made both the loading and unloading of water. Constraint (5) is added because we have only one truck for one location. Constraint (6) was added to guarantee that the first phase was finished before the second one. Equation (7) is the nonnegative constraint for the continuous variables x j , s j + , s j . The last Equation (8) is for ymij and wmj, which is binary.
  • MIP for Model 2
This model represents an innovative variant of the job-sequencing model where the same job (dewatering of flood location) can be performed by one or two trucks simultaneously or at different times. Two trucks on the two sides of the flood location can exist. It is not necessary that they work exactly at the same time. However, it is possible. In other words, the two trucks can work at the same time or at different times. This is important for some locations that are important in the middle of the city, assuming that there is enough space for two trucks. This is the main difference between the traditional parallel machine scheduling and WTP defined in this paper.
The following two variables are introduced:
  • Amj number of truckloads at location j performed by truck m.
  • Moreover, xmj is used to represent the starting time in which truck m works on location j.
The model can be written as follows:
M i n i m i z e   z = j = 1 N p j s j +
Subject to the following:
x m i x m j + M y m i j M w m i + w m j 2 1 + t j A m j + M w m i + w m j 2 m = 1 T , i = 1 N 1 , j = i + 1 N
x m i + x m j M y m i j M w m i + w m j 2 1 + t i A m i M + M w m i + w m j 2 m = 1 T , i = 1 N 1 , j = i + 1 N
x m j + 1 + t j A m j s j +        m = 1 T , j = 1 N
m = 1 M w m j 2        j = 1 N
m = 1 T A m j d j        j = 1 N
A m j M w m j        m = 1 T , j = 1 N
A m j   i s   i n t e g e r        m = 1 T , j = 1 N
x j , s j + , s j 0        j = 1 N
y i j = 0 , 1        i = 1 N , j = 1 N , i j
w m j = c 0 , 1        m = 1 T , j = 1 N
The first two constraints (Equations (10) and (11)) contain Amj instead of dj, and xmi and xmj instead of xi and xj in the previous model. This is because a truck m can take some or all the demand for the location j. It is possible; however, it takes no jobs, and the other trucks can do the job. Constraint (12) is to find the end time of truck m on location j. Constraint (13) is to let two trucks at maximum work in the same location. Constraint (14) is to guarantee that all the truckloads served by all the trucks are exactly as the truckload found in the street (dj). Constraint (15) is to enforce the model to assign 1 for wmj whenever Amj is greater than zero. This model contains all types of variables: continuous, integer, and binary, as shown in the last four constraints.
  • Genetic Algorithms
GA was used to solve the two MIP models in reasonable times. There are some steps of GA, such as selecting input parameters such as population size and mutation rate, chromosome formulations, mating process, and mutation process. Mating and mutation processes are repeated for a certain number of iterations or when a certain criterion is reached. In this study, a certain number of iterations is predefined, such as 100 iterations, so that processing time is still reasonable. The reader might refer to Haupt and Haupt [38] for more information about GA. The main contribution of this study about GA is the formulation of chromosomes that take into consideration the sequence of jobs and the assignment of each job (location) to different tankers. Two GA models were used for the two models.
  • GA for Model 1
In this model, the two phases of some flood locations are used. The initial chromosomes are built. Then, a “repair” function is needed if the second phase comes before the first one. The allocation of the trucks to different locations must exist in the chromosomes. Each gene was chosen to contain two numbers: the sequence and the truck. We call each one a sub-gene. Figure 2 shows how to interpret the chromosome for a certain parent (P1). Note that we can put the genes of each truck beside each other. It will not affect the meaning or the objective function value.
For mating, the whole gene containing the sequence and the truck must stay in one chromosome. For example, if the crossover point is 3, then the first two genes (four sub-genes) must be exchanged between the parents. For mutation, three different random numbers are generated: one for rows and two for columns. Then, a fourth random number is generated to randomly choose if the sequence or the trucks will be changed. If the random number is greater than 0.5, the sequence needs to be changed, and the two genes must exchange their sequence. If it is less than 0.5, the truck numbers need to be exchanged. Figure 3 shows the mating and mutation. In the mutation of C1, the truck numbers of the second and the fourth genes were exchanged.
However, Table 2 contains eight flood locations to account for the two phases. Before making the above mating and mutation, a “repair” function is needed. Figure 4 shows the “repair” function. For the same truck 2, location 2 (phase 1) must be served before location 3 (phase 2).
For the following chromosome, the initial calculations of the costs are shown in Table 3. However, these calculations neglect the fact that phase 2 must come after phase 1 (3 must come after 2, and 5 must come after 4). Therefore, some adjustments must be made for these four locations, as in Table 4.
5162113122824271
The extra 43.3 is multiplied by p-value, which is 6. So the total cost is 1356 + 259.5 = 1615.5.
  • GA for Model 2
In this model, one or two trucks can work on a location simultaneously or at different times. In the previous model, we used two sub-genes inside each gene to represent a location sequence and truck. In this model, five sub-genes will be used for each location as follows:
First truckSecond Truck% of truckload performed by the first truckSequence of the first truckSequence of the second truck
To facilitate mating and mutation, the last two sub-genes will be kept as two random variables between 0 and 1, and they are converted to integers in the “cost” function. Figure 5 shows 6-location chromosomes in population matrix form and in the cost model form. The second and the third rows in the figure are used in the cost function after converting numbers between 0 and 1 into integers. The third row has the sequence and the truckload per truck in integer numbers.
In the first row, the sequence of the first and second trucks is represented as a random number. Then, in the second one, the random number is converted into an integer to represent the sequence. For example, for truck 1, the minimum random number was 0.01560744 (only three digits are shown in Figure 5 as o.016). Therefore, the first-served location will be location 6. Even though the last sub-gene contains a different number (shown as 0.879), the gene is “repaired” so that if the two trucks are the same (e.g., truck 1 for the location 6), the two random numbers will be as the minimum one (0.01560744 in this case). Therefore, the truck will not leave for another location until it finishes the current flood location. Therefore, the rank of 1 is repeated for the last two sub-genes in the figure. Moreover, the ratio of truckload was converted from 0.51 to 1. The same is for the second and the third locations. After that, truck 1 will serve location 1, which has the rank of 2, with a random number of 0.21454631. Finally, location 4 then location 5 are served by truck 1.
Most probably, low random numbers (e.g., less than 0.20) and also large random numbers (e.g., greater than 0.8) will not be meaningful for two reasons:
  • In the optimal solution, the model tries to balance the load as much as possible on the two trucks.
  • When converted into integers, the truckload for one vehicle might be zero or all the truckload. For example, for location 4, if the percentage of truckload done by truck 3 is only 7%, the total truckload of location 3 is only 7, so 7 × 0.7 = 0.49, which can be rounded to zero. Therefore, the meaning of this is that only truck 1 serves location 4.
Therefore, we generated random numbers between 0.2 and 0.8 to reduce the number of iterations to obtain the best solution. Table 5 shows the calculations of the end time for truck 1 for the chromosome in Figure 5.
It is worth mentioning here that splitting the job to be performed by two trucks affects the objective function value (total weighted flow time). Figure 6 shows the effect. We assumed that transportation time is zero to have time durations in integer numbers. For example, location 1 is dewatered by two trucks. A completion time of 11 will be considered in the calculation of the objective function. This is because the penalty will be there as long as there is flood water in the street. This is why we cannot calculate the objective function for different trucks independently. In location 5, the two trucks (1 and 2) work simultaneously most of the time.
However, Figure 6 shows that different sequences can be for different trucks, but there is a general sequence usually found in the optimal solution. For example, for truck 1 the sequence is 6-1-4-5. Truck 2 has the sequence 2-5. For truck 3, the sequence is 1-3-4. That means that a general sequence such as 2-6-1-3-4-5 can satisfy all three sequences. Most probably, the optimal solution will have a general sequence that is appropriate for all the trucks. Based on that, we can unify the sub-genes 4 and 5 and give them the same value. This will reduce the search space and accelerate the GA. Based on the above discussion, two tactics are used to make GA faster. The first one is to generate random numbers for the truckload to be between 0.2 and 0.8 instead of generating random numbers between 0 and 1. The second tactic is to make sub-genes 4 and 5 have the same value so that one general sequence will control all the trucks in one chromosome.
The mating process is straightforward. Figure 7 shows a mating process example with a crossover point of 4.
For mutation, several random numbers are needed for each mutation process. The first one determines the chromosome to mutate. A random number between 1 and 5 is needed to determine which sub-gene to mutate. For the first sub-gene, a new random number between 0 and 1 is generated. If the number is below 0.5, a random vehicle number is assigned. If it is larger, then 2 random numbers between 1 and T are generated to determine the location of the gene to exchange. Both the vehicle and its sequence are exchanged. Figure 8 shows the mutation steps using these random numbers. The function Unif (1, 5) means generating a random number between 1 and 5 using a uniform distribution.

4. Results and Analysis

The summary results of the four GA models of the given data in Table 1, Table 2 and Table 3 can be found in Table 6. The number of iterations differs from one run to another. The shown ones are those obtained after running the model for the first time. It is possible to obtain a lower or higher number. For example, for model 1, maybe if we run it again, we can obtain a lower number of iterations. In the first model, there are two trucks, and therefore, two sequences are shown. Model 2 has 3 trucks, and therefore, three sequences are shown. Having more trucks means faster work but at a higher cost. Model 2 has a lower objective function because there are three trucks and because job splitting can make work quicker. However, job splitting adds coordination complexity and needs further planning.
It is obvious that the number of iterations is reasonable. In Model 2, the optimal solution is not always guaranteed after a small number of iterations. However, a good solution was always obtained. The detailed results of Model 2 are in Table 7 and Table 8. We assumed that the total number of available trucks is 3. Table 7 shows the results as can be shown in the chromosomes in the cost function if all the rows are set beside each other. The optimal solution indicates that each location is served by two trucks. Table 8 shows the results understandably. It shows that truck 1 has 5 locations to serve. Truck 2 has 4 locations to serve. Truck 3 has four locations to serve. For example, truck 1 has the sequence of 1-6-4-2-3. The numbers inside the parenthesis are the truckloads performed by the given truck. For example, truck 1 has two truckloads to load and unload in the first location. The sum of the truckloads must be the same as the estimated truckload of each location.
Figure 9 shows the enhancements of the solution of model 2 over different iterations of GA. The y-axis shows the objective function value, which measures the total weighted flow time. It decreased from over 680 to 571.95. The solutions of model 2 converged quickly and achieved a better result in fewer iterations.
Figure 10 shows the result of running Model 2 for 100 iterations when 30 flood locations exist with 5 trucks. The input data of d, p, and t were set randomly. Great improvements in objective function value were obtained during these iterations. The minimum value was 5711.3. Different random sets were tried and even better enhancements were found. Additionally, the solutions of Model 2 were robust and able to adapt to changing conditions.
The following benefits of this study for science and practice are obtained:
  • The results of this study are significant for municipalities of such areas of floods to perform the dewatering process in the right sequence with the least penalty. This will keep the movements of the cars on the streets as smooth as possible. By properly managing the dewatering process, municipalities can ensure that the roads are not flooded and that vehicles are able to move around safely and with minimal disruption. This will help to reduce the risk of traffic delays, as well as the risk of flooding and other damage to the roads.
  • This study opens the door for future research in the same field, where the stochastic nature of the problem can be investigated. New algorithms can be developed that can better address the complexities of the problem.
  • The results of the study can be used to help decision-makers in similar contexts. If the stochastic nature of the process is to be studied in the future, the dewatering process must be monitored and managed in order to keep the roads safe and efficient. This can be achieved through the use of sensors and other technologies to detect and correct any potential issues. By doing so, the roads can remain safe and efficient for drivers.
  • Moreover, the idea of this study can be applied to other fields in which tankers are used. For example, nondrinking water tankers are used extensively in the city for many purposes.
  • The two models are new, and none of the previous studies considered the scheduling problem of rainwater tankers. Therefore, there are no previous studies to compare them with.

5. Conclusions

In this study, we investigated for the first time the water tanker scheduling problem. The objective is to reduce the total weighted flow time. In other words, finishing the dewatering process faster in more crowded streets. This is useful for safety and for smooth movements on the street. We propose two MIP and GA models. The problem was divided into two phases in the first model, and in the second model, a special type of job splitting is proposed. Two tankers, at most, can work at the same location. New GA methods were proposed to solve faster the MIP models. When GA is used, at least for small problems, optimality is guaranteed. Results also showed that the number of iterations required to find an optimal/good solution is reasonable. There are, however, some limitations to the study. For example, the exactly needed truckloads are assumed to be known with certainty based on experts’ judgment. The number of trucks is assumed as an input parameter. Furthermore, the cost of more trucks was not taken into consideration. The number of trucks can be considered as a decision variable in future work. Future research can also look for faster algorithms for model 1. Another chance for future research is to merge models 1 and 2. Therefore, consider two phases and two trucks, at most, in the same model. Further, the penalty can be reduced whenever a truck finishes any amount of water on the road. Future research can also investigate the stochastic nature of the process. For example, during work, further rain can come and complicate the planning process.

Author Contributions

Conceptualization, M.A.; methodology, M.A.; software, M.A.; validation, B.S. and N.G.; formal analysis, M.A.; investigation, M.A.; resources, B.S. and N.G.; data curation, M.A.; writing—original draft preparation, M.A.; writing—review and editing, B.S. and N.G.; visualization, B.S. and N.G.; supervision, B.S. and N.G.; project administration, M.A.; funding acquisition, B.S. All authors have read and agreed to the published version of the manuscript.

Funding

This study received funding from King Saud University, Saudi Arabia, through researchers supporting project number (RSP2023R145). Additionally, the APCs were funded by King Saud University, Saudi Arabia, through researchers supporting project number (RSP2023R145).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

Authors would like to thank King Saud University, Riyadh, Saudi Arabia, with researchers supporting project number RSP2023R145.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Semaan, M.; Day, S.D.; Garvin, M.; Ramakrishnan, N.; Pearce, A. Optimal sizing of rainwater harvesting systems for domestic water usages: A systematic literature review. Resour. Conserv. Recycl. X 2020, 6, 100033. [Google Scholar] [CrossRef]
  2. Kim, Y.D.; Shim, S.O.; Kim, S.B.; Choi, Y.C.; Yoon, H.M. Parallel machine scheduling considering a job-splitting property. Int. J. Prod. Res. 2004, 42, 4531–4546. [Google Scholar] [CrossRef]
  3. Lee, J.H.; Jang, H. Uniform parallel machine scheduling with dedicated machines, job splitting and setup resources. Sustainability 2019, 11, 7137. [Google Scholar] [CrossRef] [Green Version]
  4. Qin, X.; Wu, X.; Chiew, Y.M.; Li, Y. A Green Roof Test Bed for Stormwater Management and Reduction of Urban Heat Island Effect in Singapore. Br. J. Environ. Clim. Chang. 2012, 2, 410–420. [Google Scholar] [CrossRef] [Green Version]
  5. Eger, C.G.; Chandler, D.G.; Driscoll, C.T. Hydrologic processes that govern stormwater infrastructure behaviour. Hydrol. Process. 2017, 31, 4492–4506. [Google Scholar] [CrossRef]
  6. Zhang, D.; Gersberg, R.M.; Ng, W.J.; Tan, S.K. Conventional and decentralized urban stormwater management: A comparison through case studies of Singapore and Berlin, Germany. Urban Water J. 2017, 14, 113–124. [Google Scholar] [CrossRef]
  7. Alkhaledi, K.; Arnold, A.; Means, K.; Kim, I.-J.; Bendak, S. A Novel Multicriteria Decision Making Model for Sustainable Stormwater Management. Sustainability 2020, 12, 9508. [Google Scholar] [CrossRef]
  8. Shevasuthisilp, S.; Intawong, S. Improvement of Scheduling Efficiency Using Heuristic Methods and Simulation Technique in Electronic Assemblies Industry Production. In Proceedings of the International MultiConference of Engineers and Computer Scientists, Hong Kong, 18–20 March 2009; Volume 2. [Google Scholar]
  9. Dupláková, D.; Torokova, M.; Duplák, J.; Torok, J.; Hatala, M.; Steranka, J.; Radchenko, S. Determination of Optimal Production Process Using Scheduling and Simulation Software. Int. J. Simul. Model. 2018, 17, 609–622. [Google Scholar] [CrossRef]
  10. Balog, M.; Dupláková, D.; Szilagyi, E.; Mindas, M.; Knapčíková, L. Optimization of Time Structures in Manufacturing Management by using Scheduling Software Lekin. TEM J. 2016, 5, 319. [Google Scholar]
  11. Stolk, J.; Mann, I.; Mohais, A.; Michalewicz, Z. Combining vehicle routing and packing for optimal delivery schedules of water tanks. OR Insight 2013, 26, 167–190. [Google Scholar] [CrossRef]
  12. Yang, A.; Wang, R.; Sun, Y.; Chen, K.; Chen, Z. Coastal shuttle tanker scheduling model considering inventory cost and system reliability. IEEE Access 2020, 8, 193935–193954. [Google Scholar] [CrossRef]
  13. Cankaya, B.; Wari, E.; Eren Tokgoz, B. Practical approaches to chemical tanker scheduling in ports: A case study on the Port of Houston. Marit. Econ. Logist. 2019, 21, 559–575. [Google Scholar] [CrossRef]
  14. Baker, K.R.; Keller, B. Solving the single-machine sequencing problem using integer programming. Comput. Ind. Eng. 2010, 59, 730–735. [Google Scholar] [CrossRef]
  15. Bérczi, K.; Mnich, M.; Vincze, R. Efficient Approximations for Many-Visits Multiple Traveling Salesman Problems. arXiv 2022, arXiv:2201.02054. [Google Scholar]
  16. Kowalik, Ł.; Li, S.; Nadara, W.; Smulewicz, M.; Wahlström, M. Many-visits TSP revisited. J. Comput. Syst. Sci. 2022, 124, 112–128. [Google Scholar] [CrossRef]
  17. Bülbül, K.; Kaminsky, P. A linear programming-based method for job shop scheduling. J. Sched. 2013, 16, 161–183. [Google Scholar] [CrossRef] [Green Version]
  18. Ku, W.Y.; Beck, J.C. Mixed integer programming models for job shop scheduling: A computational analysis. Comput. Oper. Res. 2016, 73, 165–173. [Google Scholar] [CrossRef] [Green Version]
  19. Lee, Y.H.; Pinedo, M. Scheduling jobs on parallel machines with sequence-dependent setup times. Eur. J. Oper. Res. 1997, 100, 464–474. [Google Scholar] [CrossRef]
  20. Fanjul-Peyro, L.; Ruiz, R.; Perea, F. Reformulations and an exact algorithm for unrelated parallel machine scheduling problems with setup times. Comput. Oper. Res. 2019, 101, 173–182. [Google Scholar] [CrossRef]
  21. Tavakoli, M.R.; Mahdizadeh, E. A new ILP model for identical parallel-machine scheduling with family setup times minimizing the total weighted flow time by a genetic algorithm. Int. J. Eng. 2007, 20, 183–194. [Google Scholar]
  22. Lucasius, C.B.; Kateman, G. Understanding and using genetic algorithms Part 1. Concepts, properties and context. Chemom. Intel. Lab. Syst. 1993, 19, 1–33. [Google Scholar] [CrossRef]
  23. Forrest, S. Genetic algorithms. ACM Comput. Surv. (CSUR) 1996, 28, 77–80. [Google Scholar] [CrossRef]
  24. Mills, K.L.; Filliben, J.J.; Haines, A.L. Determining relative importance and effective settings for genetic algorithm control parameters. Evol. Comput. 2015, 23, 309–342. [Google Scholar] [CrossRef]
  25. Chaudhry, I.A.; Drake, P.R. Minimizing total tardiness for the machine scheduling and worker assignment problems in identical parallel machines using genetic algorithms. Int. J. Adv. Manuf. Technol. 2009, 42, 581–594. [Google Scholar] [CrossRef]
  26. Demirel, T.; Ozkir, V.; Demirel, N.C.; Taşdelen, B. A genetic algorithm approach for minimizing total tardiness in parallel machine scheduling problems. In Proceedings of the World Congress on Engineering, London, UK, 6–8 July 2011; Volume 2, pp. 6–8. [Google Scholar]
  27. Dell’Amico, M.; Iori, M.; Martello, S.; Monaci, M. Heuristic and exact algorithms for the identical parallel machine scheduling problem. INFORMS J. Comput. 2008, 20, 333–344. [Google Scholar] [CrossRef]
  28. Fleszar, K.; Hindi, K.S. Algorithms for the unrelated parallel machine scheduling problem with a resource constraint. Eur. J. Oper. Res. 2018, 271, 839–848. [Google Scholar] [CrossRef]
  29. Vallada, E.; Villa, F.; Fanjul-Peyro, L. Enriched metaheuristics for the resource constrained unrelated parallel machine scheduling problem. Comput. Oper. Res. 2019, 111, 415–424. [Google Scholar] [CrossRef]
  30. Abreu, L.R.D.; Prata, B.D.A. A genetic algorithm with neighborhood search procedures for unrelated parallel machine scheduling problem with sequence-dependent setup times. J. Model. Manag. 2020, 15, 809–828. [Google Scholar] [CrossRef]
  31. Jouhari, H.; Lei, D.; AA Al-qaness, M.; Abd Elaziz, M.; Ewees, A.A.; Farouk, O. Sine-cosine algorithm to enhance simulated annealing for unrelated parallel machine scheduling with setup times. Mathematics 2019, 7, 1120. [Google Scholar] [CrossRef] [Green Version]
  32. Yepes-Borrero, J.C.; Villa, F.; Perea, F.; Caballero-Villalobos, J.P. GRASP algorithm for the unrelated parallel machine scheduling problem with setup times and additional resources. Expert Syst. Appl. 2020, 141, 112959. [Google Scholar] [CrossRef]
  33. Fanjul-Peyro, L. Models and an exact method for the unrelated parallel machine scheduling problem with setups and resources. Expert Syst. Appl. X 2020, 5, 100022. [Google Scholar] [CrossRef]
  34. Alharkan, I.; Saleh, M.; Ghaleb, M.A.; Kaid, H.; Farhan, A.; Almarfadi, A. Tabu search and particle swarm optimization algorithms for two identical parallel machines scheduling problem with a single server. J. King Saud Univ. Eng. Sci. 2020, 32, 330–338. [Google Scholar] [CrossRef]
  35. Sarıçiçek, İ.; Çelik, C. Two meta-heuristics for parallel machine scheduling with job splitting to minimize total tardiness. Appl. Math. Model. 2011, 35, 4117–4126. [Google Scholar] [CrossRef]
  36. Eroğlu, D.Y.; Özmutlu, H.C.; Köksal, S.A. A genetic algorithm for the unrelated parallel machine scheduling problem with job splitting and sequence-dependent setup times-loom scheduling. Text. Appar. 2014, 24, 66–73. [Google Scholar]
  37. Oktafiani, A.; Ardiansyah, M.N. Scheduling Splitable Jobs on Identical Parallel Machines to Minimize Makespan using Mixed Integer Linear Programming. Int. J. Innov. Enterp. Syst. 2023, 7, 41–54. [Google Scholar] [CrossRef]
  38. Haupt, R.L.; Haupt, S.E. Practical Genetic Algorithms, 2nd ed.; John Wiley & Sons, Inc.: Hoboken, NJ, USA, 2004. [Google Scholar]
Figure 1. Study Methodology.
Figure 1. Study Methodology.
Sustainability 15 09252 g001
Figure 2. Chromosomes meaning in GA.
Figure 2. Chromosomes meaning in GA.
Sustainability 15 09252 g002
Figure 3. Mating and mutation in model 1.
Figure 3. Mating and mutation in model 1.
Sustainability 15 09252 g003
Figure 4. Repaired chromosome in model 1.
Figure 4. Repaired chromosome in model 1.
Sustainability 15 09252 g004
Figure 5. Chromosomes representations in model 2 in the population matrix and the cost function.
Figure 5. Chromosomes representations in model 2 in the population matrix and the cost function.
Sustainability 15 09252 g005
Figure 6. Gantt chart for the solution in Figure 5, with zero transportation assumed.
Figure 6. Gantt chart for the solution in Figure 5, with zero transportation assumed.
Sustainability 15 09252 g006
Figure 7. Mating example for model 2.
Figure 7. Mating example for model 2.
Sustainability 15 09252 g007
Figure 8. Mutation steps of Model 2.
Figure 8. Mutation steps of Model 2.
Sustainability 15 09252 g008
Figure 9. Solution of model 2 for the given data.
Figure 9. Solution of model 2 for the given data.
Sustainability 15 09252 g009
Figure 10. Result of model 2 for 30 locations and 5 trucks.
Figure 10. Result of model 2 for 30 locations and 5 trucks.
Sustainability 15 09252 g010
Table 1. Data of Model 1.
Table 1. Data of Model 1.
Flood LocationTruckloads (d)Transportation to and from Plant (t)Street Traffic (p)Deep/Shallow δ(β)
15151
2100.572(3) + 1(7)
3150.7562(7) + 1(8)
470.541
5100.731
68181
Table 2. A modified table for Model 1.
Table 2. A modified table for Model 1.
Real Flood LocationModel Flood LocationTruckloads (d)Transportation to and from Plant (t)Street Traffic (p)Previous Model Flood Location (ν)
11515
2230.57 + 1 = 8
370.572
3470.756 + 2 = 8
580.7564
4670.54
57100.73
68818
Table 3. Initial cost calculation in Model 1.
Table 3. Initial cost calculation in Model 1.
dtp(1 + t)dEnd Time (s+)ps+
Truck 1
580.756141484
15151024120
370.5710.534.5241.5
7100.731751.5154.5
Truck 2
670.5410.510.542
230.584.515120
88181631248
470.75812.2543.25346
Sum1356
Table 4. The adjusted calculation for Table 3.
Table 4. The adjusted calculation for Table 3.
TruckLocationdtp(1 + t) dStart Time (x)End Time (s+)
The two phases’ locations
1580.75614014
1370.5710.52434.5
2230.584.510.515
2470.75812.33143.3
Sorted phases
2230.584.510.515
1370.5710.52434.5
2470.75812.33143.3
1580.75614014
Adjusted start and end times
2230.584.510.515
1370.5710.52434.5
2470.75812.33143.3
1580.7561443.357.3
Table 5. Objective function calculation for truck 1 in Figure 5.
Table 5. Objective function calculation for truck 1 in Figure 5.
Flood LocationAmjtp(1 + t) AmjEnd Time (s+)
68181616
1315622
420.54325
540.736.831.8
Table 6. Models results.
Table 6. Models results.
Model NumberObjective FunctionNumber of Iterations Until the Optimal Solution is FoundOptimal Sequence
11141.52084-1-5-7 and 2-3-8-6
2571.95611-6-4-2-3, 6-2-5, and 1-4-3-5
Table 7. Model 2 result.
Table 7. Model 2 result.
Flood LocationFirst TruckSecond TruckTruckload of the First TruckSequence of the First TruckSequence of the Second Truck
Location 1130.411
Location 2120.442
Location 3130.453
Location 4130.2932
Location 5230.834
Location 6120.3821
Table 8. Model 2 results in a meaningful form.
Table 8. Model 2 results in a meaningful form.
Sequence * (Truckload)
Truck 11 (2)6 (3)4 (2)2 (4)3 (6)
Truck 2 6 (5) 2 (6) 5 (8)
Truck 31 (3) 4 (5) 3 (9)5 (2)
Sum of truckload587101510
* General sequence: 1-6-4-2-3-5.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Alnahhal, M.; Gjeldum, N.; Salah, B. Optimal Scheduling of Rainwater Collection Vehicles: Mixed Integer Programming and Genetic Algorithms. Sustainability 2023, 15, 9252. https://doi.org/10.3390/su15129252

AMA Style

Alnahhal M, Gjeldum N, Salah B. Optimal Scheduling of Rainwater Collection Vehicles: Mixed Integer Programming and Genetic Algorithms. Sustainability. 2023; 15(12):9252. https://doi.org/10.3390/su15129252

Chicago/Turabian Style

Alnahhal, Mohammed, Nikola Gjeldum, and Bashir Salah. 2023. "Optimal Scheduling of Rainwater Collection Vehicles: Mixed Integer Programming and Genetic Algorithms" Sustainability 15, no. 12: 9252. https://doi.org/10.3390/su15129252

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