Scheduling Problems with Due Date AssignmentView this Special Issue
Research Article | Open Access
A Hybrid Heuristic Algorithm for Ship Block Construction Space Scheduling Problem
Ship block construction space is an important bottleneck resource in the process of shipbuilding, so the production scheduling optimization is a key technology to improve the efficiency of shipbuilding. With respect to ship block construction space scheduling problem, a hybrid heuristic algorithm is proposed in this paper. Firstly, Bottom-Left-Fill (BLF) process is introduced. Next, an initial solution is obtained by guiding the sorting process with corners. Then on the basis of the initial solution, the simulated annealing arithmetic (SA) is used to improve the solution by offering a possibility to accept worse neighbor solutions in order to escape from local optimum. Finally, the simulation experiments are conducted to verify the effectiveness of the algorithm.
Space is the key resource in ship block construction process. How to minimize the makespan of the project under space resource and precedence constraints is a complicated scheduling problem. As for this problem, two related problems are involved: resource constrained project scheduling problem (RCPSP) and bin packing problem.
RCPSP can be described as a problem which should be scheduled under the limits of technology and other constraints to meet the objective of a project . Generally, the goal is to get the shortest project makespan under the available resources and precedence constraints. The methods can be classified into two categories: exact methods and heuristic methods. Hartmann  puts forward that RCPSP belongs to NP-hard problem because it is always used to extend machine scheduling problem [3, 4]. So with the augment of problem scale, the computational complexity will increase rapidly. Many researchers have used exact algorithm to solve RCPSP [5, 6]; however, most of them proposed that exact algorithm is not feasible in reality. Priority rules proposed by Kelley  indicated that RCPSP can be solved by heuristic algorithms. Liu and Wang  tried to reduce the project makespan by heuristic algorithms and achieved good results. Bhaskar et al.  utilized parallel methods and priority rules to solve RCPSP with fuzzy activity times. Lee et al.  proposed a ship block construction space scheduling problem and described this problem theoretically. Koh et al.  solved the scheduling problem in shipbuilding company by heuristic algorithm.
The bin packing problem is putting more boxes into a limited bin in order to minimum the height. This problem can be classified into two categories, two-dimensional and three-dimensional problems. For the former one, researchers tend to solve bin packing problems by heuristic methods. They are Bottom-Left (BL) algorithm , Bottom-Left-Fill (BLF) algorithm . In addition, Belov et al.  considered adapting one-dimensional problem for solving two-dimensional problems. Chan et al.  tried to solve two-dimensional problems by heuristics with stochastic neighborhood structures. For three-dimensional problems, the most popular 3BF , proposed by Silvano Martello in 2000, figure out the problem of how to choose the most suitable cubes. Alvarez-Valdes et al.  used a GRASP/Path relinking algorithm to solve multiple bin-size bin packing problems. Liao and Hsu  found new lower bounds to improve the efficiency of three-dimensional problems.
This paper is organized as follows. After introduction, Section 2 presents a mathematical model. Section 3 gives the hybrid heuristic algorithm for this problem. In Section 4, we conduct simulation experiments to verify the effectiveness of the algorithm. Section 5 proposes general conclusions.
2. Ship Block Construction Space Scheduling Problem
Ship block construction space scheduling problem can be described as a project which includes activities ; place is required to process activities. activity can be defined as , where and represent the length and width of place which activity needs. The duration of activity is . and are the start and finish time of activity . During the project, there are places which can be defined as .
During the project, every activity is under precedence constraints, and we propose that is the predecessors of activity . So can not be started if any one of its predecessors in has not been finished. We assume that the start time of the whole project is 0. For the convenience of modeling, we also introduce two dummy nodes: activity 0 and . They do not need time and space. 0 is the predecessor of all the activities in the project; meanwhile, is the successor of all the activities. So is the makespan of the project. In addition, we regard an activity as a cube which is represented as . All the activities can be rotated in horizontal with 90 degree, and and 0, indicating that activity is rotated and not, respectively. The model of this problem is shown in what follows:
In the model, formula (1) is the objective of the problem, (2) proposes the precedence constraints, and (3) means that two cubes cannot overlap. Formulae (4)–(7) denote that each cube should be completed within available place. The cube can be rotated horizontally and 0 and 1 represent if the cube is rotated, as formula (8) has shown.
3. A Hybrid Heuristic Algorithm
3.1. Initial Solution Method
In this paper, we apply BLF to get the initial solution. BLF, presented by Chazelle  in 1983, belongs to heuristic algorithm. In this algorithm, the method of placing cubes is determined by corners .
In BLF, it is important to find corners to place the activity. Firstly, we will try the lowest and leftmost point (lowest point first); if this placement can match the activity, then place it in the position and update corners; otherwise, try next point until a corner is found. The corners can be represented as , where indicates the location of the corners and represents the available space of the point in -- dimensions. See Figure 1; and denote the length and width of the place and represents the duration of the project.
3.1.2. Bottom-Left-Fill Algorithm
In this paper, we represent the activities as cubes whose length, width, and height are limited. For these cubes, the length and width denote the length and width of the place they need, and the height represents the time they need. Meanwhile, we regard the unrestricted height as timeline . When all activities have been placed, the total height equals the duration of the project. In the process, we find activities that can be placed at each time point first and then consider the sequence of these activities. We place the activity with larger bottom area first; if equal, choose the higher height; if still equal, select the one with the longer length. We describe the algorithm as follows.(1)We embed the place (the platform in ship block construction space) in a three-dimensional coordinate system, put the bottom-left-rear point on the origin (0, 0, 0), and put length, width, and height on , , and axis, respectively. and represent length and width of the place.(2)Set 5 sets: , , , , and . is a set of activities which have been scheduled but not yet completed. is a set of activities which have been scheduled and already completed. is a set of activities which can be scheduled but have not been scheduled yet. is a set of corners, while is a set of all activities in input order.(3)Move the activities which can be scheduled from to and then sort these activities: firstly, interchange the length and width of the activities so that can be met for any activity ; then sort the activities in by placement policy mentioned above, and the first activity should be scheduled in after being sorted. Detect the corners in until the first eligible corner is found by -- rule, which means that the smaller among the corners is better. Then, consider the smaller . Finally, select the smaller . Put the bottom-left-rear point of the activity on the selected corner, and the new eligible corners will be new elements of ; meanwhile delete the corner which is used this time from . Record the activities and their corners sequentially.(4)If an activity in has been completed, move it from to and then move its nearest successor from to . Sort activities in by rules mentioned in (3). Repeat (3) and (4) until all activities are completed.(5)Select the higher of all corners as the duration of the project.
3.2. Optimization Solution Method
Proposed by Steinbrunn et al. , simulated annealing (SA) is a metaheuristic algorithm which offers a possibility to accept worse neighbor solutions to escape from local optimum. Until 1983, Kirkpatrick et al.  transformed this idea to SA arithmetic and applied it to traveling salesman problem successfully.
Chan et al.  develop a hybrid algorithm which gleans the ideas both from tabu search and sample sort simulated annealing to solve distributed scheduling problem. Bouleimen and Lecocq  implemented SA to RCPSP and MRCPSP. Yannibelli and Amandi  combined SA and other algorithms to solve a multiobjective project scheduling problem. In SA arithmetic, we describe the neighborhood as the modification of the order of two activities which can be scheduled at the same time. represents temperature decreasing rate, denotes the initial value of neighborhood, represents the neighbors that are generated once the temperature drops, denotes current duration, denotes the shortest duration till now. For our ship block construction space scheduling problem, the SA can be described as follows.(1)Initialization: the initial and final temperature is and , respectively. The algorithm iterates from initial solution . The value of initial evaluation function is , while the evaluation function value of initial optimal solution is .(2) denotes the current temperature and denotes the length of current neighborhood. Initially , .(3).(4)Select a new solution from the neighborhood of .(5)Calculate the incremental .(6)If , accept as a new solution, , ; if , then , . Else accept as a new solution with a probability .(7), if , go to step (4); else go to step (8).(8), , and compare and . If , go to step (3); else the termination condition is met and output current and ; end the program.
4. Simulation Experiment
We use a set of activities to verify our algorithm. The parameters of these activities are shown in Table 1, and the network diagram of activities is presented in Figure 2. There are 2 places in the experiment, , , and represent length, width, and time, respectively. The length and width of place 1 are 3 and 3, while 3 and 2 are for place 2.
4.1. Generation of Initial Solution
We get the initial solution as follows.(1)At first, . can be arranged at this time. According to the rule above, we adjust the order to . Activity 3 will be completed in place 1, so we put the bottom-left-rear point of it at the origin of place 1. So three new corners , , are produced. Update , , , , , , , , . See Figure 3.(2)Next, activity 5 will be scheduled on place 2. We put the bottom-left-rear point of activity 5 at the origin of place 2. Then new corners , , are produced. According to the rule, we delete . Update , , . , , , , , , . See Figure 4.(3)Detect the corners of and is selected for activity 2. After activity 2 is scheduled, three new corners are produced and only is eligible to be a corner. Considering that part of the space has been occupied by activity 2, we should retest the available space of previous corners when we update . should be modified into . Then , , , , , , . See Figure 5.(4)At time 0, activity 4 will be put in order. Detect and put it on . After testing, only can be a new corner. Similarly, the available space of previous corners in should also be retested and should be changed into . , , , , , , . See Figure 6.(5)At time 0, space is still available, but it is not enough for any remaining activity. So next time point is , and activity 5 is completed at this time. , , . After ordering, is changed into . In order to arrange activity 15, we detect . If there is any corner whose value of is less than 3, we should change it into 3 and modify available space of this corner. For example, should be changed into before activity 15 is put. Meanwhile, the space of this corner should be changed into after activity 15 is put. We lay activity 15 on . , , , , . See Figure 7.(6)According to this train of thought, we get an initial solution , , , , , , , , , , , , , , , , in which means activity should be started at time , and the space it needs can be represented as . According to the initial solution, the whole duration of the project is 25. The status of place 1 and place 2 is shown in Figure 8.
(a) Place 1
(b) Place 2
4.2. Optimization of Initial Solution
In SA, the order of activities has great influence on the duration of the project. So by searching the neighborhood and increasing the size of neighborhood dynamically, we manage to use SA and improve the initial solution.
We show a step of improvement as follows.(1), .(2), .(3)If , go to step (4); else output current and ; finish the program.(4).(5)If , , and go to step (4); else go to next step.(6)Select from the neighborhood of . In our example, we swap the order of activity 6 and activity 7. Then, we get another solution , , , , , , , , , , , , , , , . , . . If , go to step (7); else, go to step (8). The current is 1, so go to step (7).(7)Compare and , if , , ; else and go to step (5). In this example, , so , .(8)Generate a number randomly, if , , , , and go to step (5).
After this improvement, the optimal solution reduces from 25 to 24. So it is proved that the method is effective.
In this paper, we combine BLF and SA to solve ship block construction space scheduling problem. During the procedure of scheduling activities, we guide the sorting process with corners. Then, the sorting of initial solution can be changed by SA. However, how to improve the searching efficiency will be the future research, especially when the number of blocks is very large.
Conflict of Interests
The authors declare that they have no financial and personal relationships with other people or organizations that can inappropriately influence their work, and they also declare that there is no conflict of interests regarding the publication of this paper.
This work was supported in part by NSFC under Grant no. 61202345, NSFS under Grant no. ZR2012FM006, and SDPW under Grant no. IMZQWH010016. The authors thank the 2 reviewers and handling editor for their meticulous reading of the paper and constructive comments which greatly improved the paper.
- R. Kolisch, “Efficient priority rules for the resource-constrained project scheduling problem,” Journal of Operations Management, vol. 14, no. 3, pp. 179–192, 1996.
- S. Hartmann, “A competitive genetic algorithm for resource-constrained project scheduling,” Naval Research Logistics, vol. 45, no. 7, pp. 733–750, 1998.
- Y. Q. Yin, T. C. E. Cheng, X. Q. Yang, and C.-C. Wu, “Two-agent single-machine scheduling with unrestricted due date assignment,” Computers & Industrial Engineering, vol. 79, pp. 148–155, 2015.
- Y. Yin, S. R. Cheng, and C. C. Wu, “Parallel-machine scheduling to minimize flowtime, holding, and batch delivery costs,” Asia-Pacific Journal of Operational Research, vol. 31, no. 6, Article ID 1450044, 17 pages, 2014.
- E. L. Demeulemeester and W. S. Herroelen, “New benchmark results for the resource-constrained project scheduling problem,” Management Science, vol. 43, no. 11, pp. 1485–1492, 1997.
- P. Raj, “Solving spatial scheduling problem: an analytical approach,” in Proceedings of the 37th International Conference on Computers and Industrial Engineering, pp. 2002–2011, 2007.
- J. E. Kelley, “The critical-path method: resources planning and scheduling,” Industrial Scheduling, vol. 13, pp. 347–365, 1963.
- Z. Liu and H. Wang, “Heuristic algorithm for RCPSP with the objective of minimizing activities' cost,” Journal of Systems Engineering and Electronics, vol. 17, no. 1, pp. 96–102, 2006.
- T. Bhaskar, M. N. Pal, and A. K. Pal, “A heuristic method for RCPSP with fuzzy activity times,” European Journal of Operational Research, vol. 208, no. 1, pp. 57–66, 2011.
- K. J. Lee, J. K. Lee, and S. Y. Choi, “A spatial scheduling system and its application to shipbuilding: DAS-CURVE,” Expert Systems with Applications, vol. 10, no. 3-4, pp. 311–324, 1996.
- S. Koh, R. Logendran, D. Choi, and S. Woo, “Spatial scheduling for shape-changing mega-blocks in a shipbuilding company,” International Journal of Production Research, vol. 49, no. 23, pp. 7135–7149, 2011.
- B. S. Baker, E. G. Coffman Jr., and R. L. Rivest, “Orthogonal packings in two dimensions,” SIAM Journal on Computing, vol. 9, no. 4, pp. 846–855, 1980.
- B. Chazelle, “bottom-left bin packing heuristic: an efficient implementation,” IEEE Transactions on Computers, vol. 32, no. 8, pp. 697–707, 1983.
- G. Belov, G. Scheithauer, and E. A. Mukhacheva, “One-dimensional heuristics adapted for two-dimensional rectangular strip packing,” Journal of the Operational Research Society, vol. 59, no. 6, pp. 823–832, 2008.
- T. M. Chan, F. Alvelos, E. Silva, and J. M. V. de Carvalho, “Heuristics with stochastic neighborhood structures for two-dimensional bin packing and cutting stock problems,” Asia-Pacific Journal of Operational Research, vol. 28, no. 2, pp. 255–278, 2011.
- S. Martello, D. Pisinger, and D. Vigo, “The three-dimensional bin packing problem,” Operations Research, vol. 48, no. 2, pp. 256–267, 2000.
- R. Alvarez-Valdes, F. Parreño, and J. M. Tamarit, “A GRASP/Path relinking algorithm for two- and three-dimensional multiple bin-size bin packing problems,” Computers and Operations Research, vol. 40, no. 12, pp. 3081–3090, 2013.
- C.-S. Liao and C.-H. Hsu, “New lower bounds for the three-dimensional orthogonal bin packing problem,” European Journal of Operational Research, vol. 225, no. 2, pp. 244–252, 2013.
- M. Kucuk and M. Ermis, “A new hybrid evolutionary algorithm for three-dimensional packing problems,” in Proceedings of the IEEE International Conference on Systems Man and Cybernetics (SMC '10), pp. 4029–4034, IEEE, Istanbul, Turkey, October 2010.
- M. Steinbrunn, G. Moerkotte, and A. Kemper, “Heuristic and randomized optimization for the join ordering problem,” VLDB Journal, vol. 6, no. 3, pp. 191–208, 1997.
- S. Kirkpatrick, J. Gelatt, and M. P. Vecchi, “Optimization by simulated annealing,” Science, vol. 220, no. 4598, pp. 671–680, 1983.
- F. T. S. Chan, A. Prakash, H. L. Ma, and C. S. Wong, “A hybrid Tabu sample-sort simulated annealing approach for solving distributed scheduling problem,” International Journal of Production Research, vol. 51, no. 9, pp. 2602–2619, 2013.
- K. Bouleimen and H. Lecocq, “A new efficient simulated annealing algorithm for the resource-constrained project scheduling problem and its multiple mode version,” European Journal of Operational Research, vol. 149, no. 2, pp. 268–281, 2003.
- V. Yannibelli and A. Amandi, “Hybridizing a multi-objective simulated annealing algorithm with a multi-objective evolutionary algorithm to solve a multi-objective project scheduling problem,” Expert Systems with Applications, vol. 40, no. 7, pp. 2421–2434, 2013.
Copyright © 2015 Shicheng Hu et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.