The development of the cruise industry is an important part of the country’s “Marine power” and “One Belt, One Road” strategy. Improving the independent construction of cruise ships is of great significance to my country’s economic and social development. Aiming at the problem of the assembly order of cruise ship outfitting parts are many, the quantity is large, and the interchangeability of materials is higher than that of conventional ships, a cruise ship outfitting on-board assembly scheduling problem model is constructed, and a cruise ship outfitting on-board assembly material scheduling method oriented to generally outfitting is proposed. The improved genetic algorithm is used to dispatch the materials on the outfitting ships to realize the optimal utilization of the materials and materials, and the effectiveness of the method is proved by the example verification.

1. Introduction

At present, the research on the problem of workshop material scheduling is relatively in-depth, and the results are remarkable. The research mainly focuses on two aspects: model construction and improvement and optimization method design.

In 1990, Brucker and Schlie [1] proposed the flexible job-shop problem (FJSP): a combination of machine selection and process sequencing problems. At present, when solving FJSP, there are mainly two methods: the step-by-step method and the integrated approach. Bandmate [2] first used the step-by-step method to solve the FJSP problem, combining the machine assignment rules with the tabu search algorithm, and using the tabu search method to solve the process sequencing problem. Scrich and others [3] solved the FJSP problem with the goal of minimizing the total tardiness based on the tabu algorithm. Chen et al. [4] proposed a multiobjective FJSP problem model considering manufacturing cycle, cost, and quality. Zhang et al. [5] mixed the genetic algorithm and tabu search algorithm to solve the FJSP problem with transportation and limited time. Ho and Tay [6] combined the finite assignment rules based on the GP algorithm to solve the FJSP problem. Driss et al. [7] designed a new chromosome representation method based on the characteristics of FJSP. Shikui et al. [810] proposed a genetic algorithm based on free time neighborhood search for the actual environment on a flexible ship and the cloud intelligent manufacturing environment. Many modern intelligent algorithms are based on the wisdom of nature. What remains is not only the ability to adapt to the environment but also reasonable information processing methods. Based on these information processing methods, scholars have proposed intelligent algorithms such as the genetic algorithm, bacterial foraging algorithm, ant colony algorithm and fish swarm algorithm. The intelligent algorithm is applied to the resource scheduling of flexible workshops and has achieved good results [1118].

In the early 1980s, Henrioud and Bourjault [19] of France creatively proposed a part assembly sequence sorting method and studied a two-dimensional topology composed of nodes and edges to describe the association relationship within the assembly model. Based on this association relationship, de Mello and Sanderson [20] further explored the problem of part assembly, processed the internal association relationship of the assembly model through the cut set analysis method, and obtained all geometrically feasible assembly sequences but did not consider the easy assembly rules. In the late 1980s, de Fazio and Whitney [21] of the United States improved Bourjault’s algorithm, which originally needed to solve two problems to only need problems combined with the tight front tight back relationship. After the 1990s, Wilson [22, 23] improved the cut set analysis method and introduced the optimization method of interfering with the subset of parts by using user requirements, which provides more judgment information for cut set segmentation. On the basis of analyzing the relationship between parts and assembly resources, Bo et al. [24] proposed a multistage assembly resource matching design method based on the assembly availability model. Guanjun and Dachun [25] expressed the basic assembly information of the product by establishing the interference matrix, contact matrix, and tool list of the product and enabled the priority constraint matrix to optimize the assembly sequence. Liu et al. [26] proposed a method to integrate human fuzzy knowledge into the planning process through the genetic algorithm and ant colony algorithm to solve the assembly sequence accurately.

Based on the above, most of the papers are workshop scheduling papers and outfitting assembly sequence, which can not meet the needs of cruise mass production; this article will optimize the dispatching of outfitting materials on cruise ships. Firstly, it describes the scheduling problem of outfitting materials on cruise ship outfitting ships and establishes an assembly-oriented model for the scheduling of outfitting materials on cruise ships outfitting ships; then, it studies and improves the coding method, initialization method, and genetic operation and decoding method of the genetic algorithm. Finally, the effectiveness of the optimization method in the assembly-oriented scheduling of cruise ship outfitting supplies is verified.

2. Problem Description and Mathematical Model

2.1. Problem Description

The problem of dispatching materials on cruise ship outfitting can be expressed as there are outfitting parts, each outfitting part is composed of several materials, and each material is formed by a number of sequential processes, these procedures must be completed in cabins, and at least one cabin can be selected for each procedure. Consider the assembly sequence of outfitting parts, the multiple assembly sequence of materials and equipment material constraints, as well as the sequence of materials and material constraints, with the goal of optimizing the service completion time of the total section, sort the order of the material cabin and corresponding cabin.

The assembly time of outfitting parts corresponding to the shortest outfitting material time is not necessarily the shortest. For example, perform the assembly of outfitting . Among them, the assembly order of , , materials is first and then , cabin collection . Assuming that the cabin load is 0 at the initial stage, the comparison of the cruise ship outfitting material plan, the cruise ship outfitting material assembly plan, and the total segment outfitting produced by the two plans are shown in Figure 1.

Although the completion time of all outfitting material processes in Option 1 is 3 working hours, which is 1 working hour longer than in Option 2; however, the outfitting material assembly completion time of Option 1 is 5 man-hours, which is 1 man-hour less than the corresponding of Option 2. This is because each outfitting material in scheme 1 is assembled after the production is completed, and the waiting time for the material to be assembled is less, while in scheme 2, it is always in the placed state after the completion of . It does not conform to the principle of reasonable distribution of materials, and neither has an effect on the assembly, and the completed and unassembled materials also occupy the space on the ship. That is to say, the shortest total time belongs to the local optimum for the problem of ship outfitting materials scheduling, and the problem solving needs to take the shortest service completion time of the total segment as the optimization goal. Therefore, the optimization of the scheduling of cruise ship outfitting materials is not only the study of the flexible shipboard material scheduling problem but also the optimization of the problem of combining the assembly order of the outfitting and the order of material assembly.

2.2. Model Symbols and Descriptions

represents a collection of outfitting parts to be assembled, , n represents the total number of outfitting pieces, and the total outfitting order is fixed.

represents the th outfitting piece to be made, which is composed of materials, and the assembly order of materials is fixed.

represents the th waiting material of outfitting . It is completed by multiple processes, and the process is fixed.

represents the th process of material .

represents the collection of material cabins in the area, , is the total number of cabins.

represents the th cabin.

is a decision variable indicating whether process is assembled by cabin , and means that process is performing assembly operation on cabin at time ; otherwise, .

represents the time it takes for cabin to complete process .

represents the start time of process .

represents the end time of process .

represents the minimum time for all outfitting materials to be completed; the mathematical expression of the problem is

which indicates the minimum starting time of all outfitting materials to be processed:

2.3. Mathematical Model

The problem of material scheduling on cruise ship outfitting is similar to the typical two-dimensional layout problem, that is, the material arrangement of cabins in the time domain, including the distribution of material cabins and the time arrangement of materials. The problem decision variable is . For the assembly-oriented material coordination scheduling problem, the goal is to minimize the total outfitting completion time .

The assembly-oriented material scheduling provides input for the assembly process, that is, this article ignores the delivery time of the material, and the completion time is the arrival time of the material.

The mathematical expression of the problem is

Restrictions are as follows:

Formula (3) is the objective function, that is, the shortest service completion time of the total segment. Formula (4) indicates that only one outfitting material assembly sequence can be selected for one process operation in the same cabin at the same time. Formula (5) indicates that the materials must be carried out in a certain order; problem solving also needs to satisfy the constraints (6)–(8).

3. Improved Genetic Algorithm Design

3.1. Algorithm Strategy

Because of its versatility, the genetic algorithm has achieved many excellent results in solving the problem of material scheduling on flexible ships, and its crossover and mutation methods have a large operating space for solving large-scale problems, which is convenient for cruise ships with multiple outfits. Calculate the material scheduling problem on the outfitting ship. In this paper, combining the characteristics of material dispatching on cruise ship outfitting, a staged population initialization method oriented to the assembly sequence of outfitting parts and a directional mutation method oriented to the assembly sequence is proposed.

3.2. Coding Method

Because of the ship outfitting material scheduling problem, which is mainly composed of cabin selection problems and process sequencing problems, the corresponding codes are mainly the double-chain coding of the cabin selection chain and the process sequence chain. Each individual is composed of the cabin selection chain and the process sequence chain. The cabin selection chain and the process sequence chain are both an array whose length is equal to the sum of all processes of all materials to be processed.

Due to the inflexibility of the process, the data corresponding to the process sequence chain only needs to record the material number and the sequence number of the process can be obtained by decoding.

The cabin selection chain records the cabins corresponding to the corresponding positions of the process sequence chain, and the initialization of the cabin selection chain precedes the sequence of the processes.

Take 2 outfitting parts (outfitting parts, 2 materials for each and , 2 processes for each material, 2 cabins to choose from) as an example, a certain double-stranded encoding is shown in Table 1.

The process sequence chain adopts the method of encoding the outfitting materials and calculating the process during decoding, instead of directly adopting the method of process encoding, which can effectively avoid the situation of infeasible solutions in genetic operations.

3.3. Parameter Selection

The selection of algorithm parameters will affect the final calculation results, but the selection of main parameters has been well studied [27]. The parameters are determined as the values that are easy to obtain good solutions in combination with the scale of the problem:

Heuristic factor , which indicates the relative importance of pheromone quantity in guiding ant colony search. If it is too large or too small, it is easy to fall into local optimization.

Expected heuristic factor , indicating the relative importance of heuristic information.

Volatilization factor , indicating the volatilization rate of pheromone in the iterative process.

The number of ants is . Too few ants will reduce the global search ability of the algorithm, and too many ants will weaken the positive feedback of pheromone.

3.4. Population Initialization

Simple traversal cannot obtain a better solution in a reasonable time, and the material scheduling problem on flexible ships is an NP-hard problem [28]. For solving large-scale problems, the quality of the initial population is very important for subsequent iterative calculations. The subsequent genetic operations are also based on the continuous cross-mutation of the initial population. Population initialization is the starting point for calculation and optimization. The initial population needs to take into account a certain degree of randomness, uniformity, and directionality.

3.4.1. Cabin Selection Chain Initialization

Without the choice of cabin, it is impossible to determine the start time corresponding to the process by cabin load, so first, initialize the cabin selection chain. The initial model of the cabin selection chain is a combination of global search, local search, and random search, which realizes the complementary advantages of random and regular, global, and local. Random selection is to randomly select one from the selectable machines. Global search is similar to local search, except that there are differences in the selection of outfitting materials and the calculation of cabin load.

3.4.2. Process Sequence Chain Initialization

After the selection of the process sequence chain is completed, the solution to the problem of dispatching materials on the cruise ship outfitting can be formed, and the solution to the problem is to minimize the service completion time of the total segment as the goal. The process sequence subproblem does not have a separate and strict objective function, but it is necessary to consider the influence of the outfitting sequence of the cruise ship outfitting parts in the process sequence chain initialization. The initialization and assignment of the process sequence chain need to consider the influence of the subsequent genetic and mutation operations on the process sequence chain to avoid infeasible solutions. Data corresponding to the process sequence chain is the outfitting number and material number, and the process corresponding number is obtained by decoding. This paper combines the heuristic algorithm and the principle of reasonable allocation of materials to initialize the process sequence chain; combines active scheduling, no delay scheduling, and completely random initial; and proposes a phased population initialization method for the assembly sequence of outfitting parts. The population initialization method is composed of three initialization modes: the phased active scheduling initialization mode for outfitting assembly sequence, the phased nondelay scheduling initialization mode for outfitting assembly sequence, and the random initializing mode. The specific steps of the phased active scheduling initialization method for the assembly sequence of outfitting parts are shown in Algorithm 1.

1 Execute strict initial population generation method
2 Create a set of to-be-produced procedures composed of the first to-be-processed combinations of all outfitting materials
3 fortodo
4   Calculate the minimum time according to formula (1)
5   Extract the cabins with the earliest completion time of to construct a set of cabins to be started .
6      if is not unique then
7         select from the cabin
8      end
9   select a process from
10   if not empty do
11   return skep4
12   end
13 end
3.5. Genetic Manipulation
3.5.1. Cross-Operation

(1) Cabin Selection Chain Cross. Because the set of cabins that can be selected for each process is different, the cabin selection chains of different processes cannot be crossed, that is, genes at the same position in different cabin selection chains cannot be directly crossed, but the cabin selections of the same process of different individuals with the same workpiece can be crossed, that is, the cabin selection chain crossing based on the process, the cabin selection chain crossing steps are shown in Algorithm 2.

1: For each individual in population:
2:   new Population = new array;
2:      If crossover :
3:         ;
4:         ;
5:         new Population. push(offspring);
6:      Else:
7:         new Population. push(individual);
8:      End if
9: End

(2) The Process Sequence Chain Is Crossed. The cross-operation of the sequence chain will produce an infeasible solution randomly, so it is necessary to cross the sequence chain according to rules. Good research results have been achieved on crossover rules, which are typical of linear order crossover [29] and priority operation crossover [30], both of which can well avoid the problem of infeasible solutions.

Combined with a small example of the two crossways, assume 1 outfitting pieces (only one outfit, so code omitted fittings), the outfit has four materials, and these four materials, respectively, have 2, 3, 2, and 1, linear order crossover steps as shown in Table 2.

The specific steps of priority operation crossover are shown in Table 3.

In order to obtain more possible optimal solutions, this paper adopts a combination of linear order crossover and preferential choice crossover on cruise outfitting ships.

3.5.2. Mutation Operation

The variation operation can also be divided into the variation of the cabin selection chain and the variation of the process sequence chain.

(1) Cabin Selection Chain Variation. The cabin selection chain variation can be adopted by single point variation, which is simple to calculate and has no influence on the machine selection and process sequence chain variation of other segments, so the cabin selection chain variation is carried out first in the calculation. The variation operation of the compartment selection chain is the process of randomly selecting outfitting materials, and the machine corresponding to the selected process is changed into another random machine that can be used for this process.

(2) Variation of Process Sequence Chain. The reverse mutation is a relatively mature method in the existing process of sequence chain mutation, which is simple and does not produce infeasible solutions. The reverse mutation is a process in which two genes are randomly selected from a sequence and all genes in between are switched.

Since there is too much randomness in reverse variation, in order to improve the quality of the solution, this paper proposes an assembly sequence-oriented directional variation method based on the reverse variation method combined with the assembly characteristics of outfitting parts. For the convenience of expression, the directional variation factor is defined to represent the relative probability that processes in the outfitting material are selected in the directional variation reordering process:

In order to enlarge the search scope of the solution, the method of material scheduling optimization for the assembly-oriented cruise outfitting ship adopts the combination of reverse mutation and oriented mutation for assembly sequence. When the gene fragments of the process sequence chain are exchanged, the gene fragments corresponding to the compartment selection chain should also be exchanged in the same way to prevent the occurrence of infeasible solutions.

3.5.3. Select Operation

Because crossover operation and mutation operation produce new solutions, it is necessary to select the population by the survival of the fittest. While some solutions are eliminated according to certain random rules, excellent solutions in the population should be retained to ensure that excellent solutions can be iterated all the time, in order to obtain better solutions. The specific implementation method is as follows: Parent individual fitness value, namely, the total period of service completion time, the parent individuals from high to low is sorted according to the fitness value, to select the fitness value of the highest part of the parent individual directly into the offspring population, namely, elite save way, the rest of the parent individual carried out in accordance with the way of roulette wheel selection, namely, the individual fitness value, the higher the probability of individual preserved, The lower the individual fitness value, the easier it is to be eliminated. This paper chooses the combination of elite preservation and roulette, which not only saves excellent individuals but also ensures the global search.

3.5.4. Genetic Algorithm Parameters

The main parameters and influences of genetic algorithm are as follows: (1)Population number represents the population size. If the population size is too large, the computing speed will slow down; if the population size is too small, the search range of the solution will be affected(2)The number of cycles , which is a simple condition for the termination of calculation during iteration. The calculation will be stopped after a certain number of iterations(3)Crossover probability which means the probability of crossover between individuals during genetic operation. If the probability is too small, it is not easy to produce new solutions, while if the probability is too large, the computing speed will be slowed down(4)Mutation probability , which means the probability of individual mutation during genetic operation should not be too large or too small(5)Global search probability , which represents the probability of selecting global search method during initialization of cabin selection chain(6)Local search probability , which represents the probability of using local search method during initialization of cabin selection chain(7), the initialization probability of phased active scheduling for outfitting assembly sequence, represents the probability of combining active scheduling with initialization of process sequence chain(8) of stage-by-stage delayless scheduling initialization probability for outfitting assembly sequence, which represents the probability of combining delayless scheduling with process sequence chain initialization

3.6. Problem Decoding

Genetic algorithm for iterative calculation of population individuals is an accommodation choice in the form of a combination of chain and chain operation sequence, is not the result of intuitive, and needs accommodation choice of chain and chain operation sequence double-stranded data into the form of a Gantt chart, check the start time and end time of each artifact, and cabin number and other information, and then converted to outfitting materials, assembly time, and fittings assembly time. The individual fitness value is calculated according to the outfitting assembly time, and then, other operations of genetic algorithm are completed, and the final results are displayed visually.

A simple typical example is taken as an example to illustrate the decoding method of the material scheduling problem on the outfitting ship of cruise ship. The data of the typical example is shown in Table 4:

An individual compartment selection chain in the example is {3,1,2,3,2,1,2,3,2,1,3,1}, and the corresponding process sequence chain is {2,4,3,1,2,3,2,4,4,1,3,1} (this problem is a single outfitting, so the outfitting number in the process sequence chain code is omitted). The chain operation sequence of the first genetic representation is 1 to 2 workpiece processes by the 3 machines and the corresponding time is 2 hours, and the corresponding Gantt chart said the first 3 machines for 2 # 1 process of workpiece, a second gene said second artifact for 4 1 process in no. 1 compartment, but because of no. 1 compartment without load. The first procedure and the second procedure of the procedure sequence chain can be carried out at the same time, that is, the procedure can be carried out at the earliest possible time in the corresponding compartment without affecting other procedures, and the rest of the gene fragments can draw a complete material assembly Gantt diagram according to the relationship between the procedures and the load of the compartment. The corresponding Gantt diagram of a material assembly is shown in Figure 2 (the outfitting number is omitted from the figure).

Based on this Gantt diagram, combined with the assembly sequence of cruise outfitting parts, the assembly scheme of cruise outfitting materials and the total outfitting scheme are generated.

In some cases, a better solution can be obtained by intervening in the sequence of operations. There is still room for optimization in the plan of cruise outfitting materials generated by direct decoding. On the premise of meeting the pretightening and posttightening relationship between workpiece processes and not having multiple loads in the cabin, a process can be moved left or right, and a better solution can be obtained in some cases. Figure 3 is taken as an example.

As shown in Figure 4, process no. 3 of workpiece no. 4 can be moved to the left in advance (process no. 1 of workpiece no. 2 can also be moved in advance, for the same reason, it will not be described again).

This reduces the maximum time from 18 hours to 16 hours, and no. 4 workpiece can be assembled earlier.

3.7. Fitness Calculation

Individuals in the population are double-chained codes, and individual fitness values need to be calculated for survival of the fittest. The steps are shown in Table 5.

4. Case Verification

Using the same example, the improved method in this paper was compared with the method in Zhang [30] and the genetic algorithm using the initial method of the Kacem [31] rule. The algorithm parameters were the same (the population was 1000, the number of cycles was 200, the crossover probability was 0.8, and the mutation probability was 0.05). The mean comparison based on the 100 additional examples was shown in Table 6 and Figure 5.

Table 6 with Me said memory, AVG () calculates the meantime, as you can see from the Table 6, improved algorithm in this paper, in most cases the optimal value calculation ability is better than the contrast algorithm, the optimal value of the mean is better than the comparison algorithm, and in terms of memory and computing time compared with the contrast algorithm has large improvement: The optimal value is improved by about 5%, the mean value of optimal value is improved by about 7% ~10%, the mean value of occupied memory is improved by about 17% ~20%, and the mean value of calculation time is improved by about 30%, which verifies the stability and effectiveness of the fitting-oriented construction material scheduling optimization method calculated by stages in this paper.

5. Conclusion

This paper mainly on the cruise ship outfitting the ship cabin choice and process scheduling problems are studied, based on the idea of phase calculation and material distribution; fittings assembly sequence was proposed and the phases of the population initialization method and way for assembly sequence directional variation, on the basis of design for assembly of cruise ship outfitting ship supplies scheduling method. According to the improved genetic algorithm, the space with a high probability of optimal solution is searched, which improves the solving ability of the fitting-oriented optimization method of construction materials scheduling on cruise outfitting ships. The effectiveness of the fitting-oriented optimization method is verified by an example and then improves the overall assembly efficiency of cruise ship. In the future, it is planned to further extend the research of this paper to the next operation, build an evaluation system of assembly sequence, and improve the real-time response ability of cruise outfitting workshop in the construction process.

Data Availability

The data used to support the findings of this study are included within the article.

Conflicts of Interest

The authors declare that they have no competing interest.


The authors thank Shanghai Waigaoqiao Shipbuilding Co., Ltd., for the support of operation data and verification scenarios. This research was funded by the Ministry of Industry and Information Technology of the People’s Republic of China (No. 2016543, No. 2018473, and No. 2019331).