Hybrid flow shop scheduling method and system considering resource and machine faults
Through multi-objective evolutionary algorithms and heuristic strategies based on block neighborhoods, the processing time uncertainty and energy consumption problems caused by resource and machine failures in the hybrid flow workshop are solved, a more effective scheduling plan is achieved, and the maximum completion is optimized time and total energy consumption.
Patent Information
- Application Number
- CN202410724430.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-10-01
AI Technical Summary
Existing scheduling methods fail to effectively consider the impact of resource constraints and machine failures in hybrid flow workshops, resulting in uncertainty in processing time and difficulty in optimizing maximum completion time and total energy consumption simultaneously.
Using a multi-objective evolutionary algorithm based on block neighborhoods, through the initialization heuristic algorithm and the global search strategy of the hybrid crossover operator, combined with the enhanced local search strategy based on key factories, a distributed hybrid flow shop scheduling model considering resource and machine failures is established. , optimize the workpiece scheduling plan.
It effectively solves the resource and machine failure constraint problems in the distributed hybrid flow workshop, improves the practicality and efficiency of the scheduling plan, and ensures the certainty of processing time and the minimization of energy consumption.
Smart Images

Figure CN118732618A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of hybrid flow shop scheduling optimization, and in particular relates to a hybrid flow shop scheduling method and system taking resources and machine failures into consideration. Background Art
[0002] The statements in this section merely provide background information related to the present disclosure and do not necessarily constitute prior art.
[0003] Scheduling is an important research topic, especially in some typical industrial production processes, such as steel production systems, semiconductor manufacturing systems, and prefabricated component production systems. There are many different types of scheduling problems in real industrial systems, such as flow shop scheduling problem (FSP), hybrid flow shop problem (HFS), job shop problem (JSP), and flexible job shop problem (FJSP). Most existing scheduling methods do not take into account deterministic factors, that is, they assume that the processing time of all processes is a certain value. However, the processing time of workpieces in real industrial environments is usually not certain, such as the time waiting for machine failure processing.
[0004] With the development of global economic globalization, more and more companies adopt distributed production to improve production efficiency and reduce costs. Therefore, many researchers focus on distributed scheduling problems, such as distributed FSP, hybrid HFS, distributed JSP and distributed FJSP. At the same time, more and more real production processes also consider constraints such as resource shortages and machine failures. Therefore, in order to adapt to the real industrial environment, the processing time of each workpiece should be set to a fuzzy value rather than a deterministic value.
[0005] In addition, with the continuous demand for low carbon, related research has also been carried out on the energy consumption of machine processing and standby energy consumption during the processing process. It is generally assumed that the faster the processing speed, the greater the energy consumption. Through the analysis of existing research, it is found that there are many realistic constraints in solving HFS, and there are currently few studies on constraints such as resource constraints, machine failures, and distribution constraints in the hybrid flow shop problem (hereinafter referred to as DRCHFS-MB). Summary of the invention
[0006] In order to overcome the shortcomings of the above-mentioned prior art, the present invention provides a hybrid flow shop scheduling method and system considering resources and machine failures, takes minimizing the maximum completion time and minimizing the total energy consumption as the optimization goals, sets the workpiece processing time as a fuzzy value, proposes a hybrid flow shop scheduling problem DRCHF-MB considering resources and machine failures, and adopts a multi-objective evolutionary algorithm based on block neighborhood to effectively solve it.
[0007] To achieve the above objectives, one or more embodiments of the present invention provide the following technical solutions:
[0008] In a first aspect, the present invention provides a hybrid flow shop scheduling method considering resources and machine failures, comprising:
[0009] Obtain the workshop data of the distributed hybrid flow workshop;
[0010] A distributed hybrid flow shop scheduling model considering resource constraints and machine failures is established based on shop floor data;
[0011] A multi-objective evolutionary algorithm based on block neighborhood is used to solve the workshop scheduling model, and a multi-objective optimization scheduling scheme that takes into account resource waiting time and machine failure handling is obtained to schedule distributed hybrid flow workshop operations;
[0012] Among them, the block neighborhood-based multi-objective evolutionary algorithm developed an initialization heuristic algorithm based on the characteristics of the workshop scheduling model, and adopted a global search strategy of hybrid crossover operators to ensure the breadth and depth of the search space, and adopted an enhanced local search strategy based on key factories to improve the local search capability of the algorithm.
[0013] A further technical solution is that the objectives of the distributed hybrid flow shop scheduling model are to minimize the maximum completion time and minimize the total energy consumption.
[0014] A further technical solution is to use a block neighborhood-based multi-objective evolutionary algorithm to solve the workshop scheduling model, and divide the scheduling problem into five subtasks, including: how to select a suitable factory for each workpiece, how to select a suitable machine for each workpiece, how to determine the start and completion time of each workpiece, how to determine the scheduling sequence of the workpiece, and how to allocate corresponding resources to each machine.
[0015] A further technical solution is to encode and decode each feasible solution of the distributed hybrid flow shop scheduling model that considers resource constraints and machine failures, and each solution is represented by a two-dimensional vector, one vector describes the scheduling sequence of the workpiece, and the other vector tells the factory allocation of the workpiece.
[0016] As a further technical solution, the population initialization in the initialization heuristic algorithm adopts a combination of random initialization and heuristic rule initialization for production scheduling.
[0017] According to a further technical solution, the global search strategy of the hybrid crossover operator includes a position-based crossover method, a linear crossover method and a two-point crossover method.
[0018] A further technical solution is that the enhanced local search strategy based on the key factory includes internal exchange of subsequences based on the key factory, external insertion of subsequences based on the key factory, internal insertion of subsequences based on the key factory, external exchange of subsequences based on the key factory, exchange of two subsequences between the key factory and the random factory, insertion of two subsequences between the key factory and the random factory, exchange of selection points between the key factory and the random factory, and insertion of selection points between the key factory and the random factory.
[0019] In a second aspect, the present invention provides a hybrid flow shop scheduling system considering resources and machine failures, comprising:
[0020] A data acquisition module, which is configured to: acquire workshop data of a distributed hybrid flow workshop;
[0021] A scheduling model building module, which is configured to: establish a distributed hybrid flow shop scheduling model considering resource constraints and machine failures according to shop data;
[0022] The scheduling model solving module is configured to: solve the workshop scheduling model by using a multi-objective evolutionary algorithm based on block neighborhood, obtain a multi-objective optimization scheduling solution that takes into account resource waiting time and machine failure processing, and schedule the distributed hybrid flow workshop operations;
[0023] Among them, the block neighborhood-based multi-objective evolutionary algorithm developed an initialization heuristic algorithm based on the characteristics of the workshop scheduling model, and adopted a global search strategy of hybrid crossover operators to ensure the breadth and depth of the search space, and adopted an enhanced local search strategy based on key factories to improve the local search capability of the algorithm.
[0024] In a third aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in a hybrid flow shop scheduling method that considers resources and machine failures as described in the first aspect.
[0025] In a fourth aspect, the present invention provides a computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in a hybrid flow shop scheduling method considering resources and machine failures as described in the first aspect are implemented.
[0026] One or more of the above technical solutions have the following beneficial effects:
[0027] The present invention studies the distributed hybrid flow shop scheduling problem with resource constraints and machine failures in an actual production system. Taking into account the uncertainty of workpiece processing time due to the waiting time for machine failure processing, a mathematical programming model is established for the DRCHFS-MB problem to be solved based on mixed integer programming, and two objectives are considered at the same time, namely minimizing the maximum completion time and energy consumption. A multi-objective evolutionary algorithm based on block neighborhood is proposed to effectively solve the DRCHFS-MB problem, thereby improving the performance of the algorithm for solving the scheduling problem.
[0028] The multi-objective evolutionary algorithm based on block neighborhood in the present invention can effectively solve the DRCHFS-MB problem, so that in the actual distributed hybrid flow shop production process, the uncertainty of processing time can be fully considered, thereby obtaining a scheduling plan that is more in line with the actual situation.
[0029] The present invention develops an effective initialization heuristic algorithm related to problem characteristics, which effectively improves the quality and diversity of the initial population; in order to enhance the search capability, a global search strategy that mixes three crossover operators is designed; in order to prevent falling into the local optimum, the enhanced local search strategy further improves the search capability of the algorithm. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0031] Figure 1 A Gantt chart of the final solution of production scheduling in an embodiment of the present invention;
[0032] FIG. 2( a ) is an example of a solution representation in an embodiment of the present invention;
[0033] FIG2( b ) is an example of resource allocation for a machine according to an embodiment of the present invention;
[0034] Figure 3 This is an example of a local enhanced search representation in an embodiment of the present invention;
[0035] Figure 4 is a HV level diagram of parameters pc and pm in an embodiment of the present invention;
[0036] FIG5( a ) is a performance comparison diagram of the HV index ANOVA of the initialization strategy according to an embodiment of the present invention;
[0037] FIG5( b ) is a performance comparison diagram of the IGD index ANOVA of the initialization strategy according to an embodiment of the present invention;
[0038] FIG6( a ) is a performance comparison diagram of the HV index ANOVA of the global search strategy in an embodiment of the present invention;
[0039] FIG6( b ) is a graph comparing the IGD index ANOVA performance of the global search strategy in an embodiment of the present invention;
[0040] FIG. 7( a ) is a performance comparison diagram of the HV index ANOVA of the local enhanced search strategy according to an embodiment of the present invention;
[0041] FIG. 7( b ) is a performance comparison diagram of the IGD index ANOVA of the local enhanced search strategy according to an embodiment of the present invention;
[0042] FIG8( a ) is a diagram showing the performance comparison results of the HV index ANOVA of multiple algorithms in an embodiment of the present invention;
[0043] FIG8( b ) is a graph showing the ANOVA performance comparison results of the IGD index of multiple algorithms in an embodiment of the present invention;
[0044] FIG9( a ) is an EAF diagram comparing BNMOEA and AGEMOEAII in an embodiment of the present invention;
[0045] FIG9( b ) is an EAF diagram comparing BNMOEA and BiGE in an embodiment of the present invention;
[0046] FIG9( c ) is an EAF diagram comparing BNMOEA and CMOPSO in an embodiment of the present invention;
[0047] FIG9( d ) is an EAF diagram comparing BNMOEA and NSGAII in an embodiment of the present invention;
[0048] FIG. 10( a ) is a Pareto solution set diagram of a 20x4x2x5 example in an embodiment of the present invention;
[0049] FIG. 10( b ) is a Pareto solution set diagram of a calculation example 60x2x4x5 in an embodiment of the present invention. DETAILED DESCRIPTION
[0050] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0051] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0052] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0053] It should be understood that although the following mainly focuses on the application of locomotive-related materials, the embodiments of the present disclosure are not limited to this, and are also applicable to material data extraction for quota analysis in other fields, including material quota analysis of components or equipment in light and heavy industries.
[0054] The present invention relates to distributed factories, machine maintenance and resource-constrained production scheduling which play a vital role in the manufacturing industry. However, hybrid flow shops (HFS) rarely consider these realistic constraints. To fill this gap, a distributed resource-constrained hybrid flow shop scheduling problem (DRCHFSP-MB) with machine failures is studied. The problem has two optimization objectives, namely, completion time and total energy consumption (TEC). To solve this problem, a mathematical model is established and a block neighborhood-based multi-objective evolutionary algorithm (BNMOEA) is proposed to solve DRCHFSP-MB. In the proposed algorithm, an efficient hybrid initialization method is adopted to obtain high-quality individuals to participate in the evolution process of the population. To enhance the search ability of BNMOEA, three well-designed crossover operators are used in the global search. Secondly, eight local search operators based on key factories are combined with block neighborhood to improve the convergence of the proposed algorithm. Finally, BNMOEA is compared with several state-of-the-art multi-objective algorithms, and the results show that BNMOEA performs well in solving DRCHFSP-MB.
[0055] Embodiment 1
[0056] This embodiment discloses a hybrid flow shop scheduling method considering resources and machine failures, including the following steps:
[0057] Obtain the workshop data of the distributed hybrid flow workshop;
[0058] A distributed hybrid flow shop scheduling model considering resource constraints and machine failures is established based on shop floor data;
[0059] A multi-objective evolutionary algorithm based on block neighborhood is used to solve the workshop scheduling model, and a multi-objective optimization scheduling scheme that takes into account resource waiting time and machine failure handling is obtained to schedule distributed hybrid flow workshop operations;
[0060] Among them, the block neighborhood-based multi-objective evolutionary algorithm developed an initialization heuristic algorithm based on the characteristics of the workshop scheduling model, and adopted a global search strategy of hybrid crossover operators to ensure the breadth and depth of the search space, and adopted an enhanced local search strategy based on key factories to improve the local search capability of the algorithm.
[0061] In this embodiment, the specific process of establishing the distributed hybrid flow shop scheduling model DRCHF-MB considering resource constraints and machine failures is as follows:
[0062] Consider a typical real production process in the steelmaking field, where there are multiple distributed plants, each of which usually has five stages or processes. The first process is to load the molten iron into a device called a torpedo car (TPC). Next, the TPC should be processed through the second and third refining stages. The fourth stage is the pouring process, and the last stage is the continuous casting process.
[0063] Based on the analysis of the actual steelmaking process, this embodiment studies a special extension of HFS, which includes the following features: (1) There are f factories, each factory has m machines; there are j jobs, and each job has a certain number of operations to be processed without the need to preempt in a designated factory; (2) Each job can select a suitable machine from a group of available machines for processing; (3) Each machine can only process one job at a time, and each workpiece can only be processed on one machine tool at the same time; (4) Each machine requires one or more resources to cooperate with the processing, and one resource is only enough for two machines to process at the same time; (5) Each machine may encounter a failure during processing, at which time the machine will continue to occupy resources until it is repaired and the processing is completed, and then the resources will be released; (6) The goal of this embodiment is to minimize the completion time and minimize the energy consumption of machine processing and standby.
[0064] Based on this, there are five main tasks to solve this type of problem: (1) How to select a suitable factory for each workpiece; (2) How to select a suitable machine for each workpiece; (3) How to determine the start and completion time of each workpiece; (4) How to determine the scheduling sequence of workpieces; (5) How to allocate corresponding resources to each machine.
[0065] The assumptions of the problem include:
[0066] 1) Each workpiece is assigned to a unique factory, and all its processes must be processed in this factory. Changing the factory midway is not allowed;
[0067] 2) Each process of each workpiece needs to select only one available machine tool from a group of available machine tools;
[0068] 3) Every machine tool is available;
[0069] 4) Preemption is not allowed;
[0070] 5) The machine failure rate is known;
[0071] 6) After a machine breaks down, it needs to be repaired before it can continue processing;
[0072] 7) The amount of resources at each stage is limited;
[0073] 8) If the resources required by the machine are occupied, you need to wait until the resources are released before you can continue processing;
[0074] 9) The buffer between machines is infinite.
[0075] The subscripts and parameters of the DRCHFS-MB problem model include:
[0076] The subscripts are as follows:
[0077] j, j': workpiece index, s: stage index, m: machine index, f: factory index, res: resource index, r: machine processing position index, b: machine fault index.
[0078] The parameters are represented as follows:
[0079] L: number of stages, F: number of factories, N: number of workpieces, K: number of machines, R: number of resource types, H: number of machine failures;
[0080] O j,s : The operation of workpiece j at the sth position;
[0081] M s : The set of machine tools at position s;
[0082] P j,m,s : The processing time of job j on the mth machine at stage s;
[0083] B j,s,f : The start time of processing of job j in the sth stage in factory f;
[0084] E j,s,f : The end time of processing of job j in the sth stage in factory f;
[0085] BM m,r,f : The start time of the rth position on the machine tool m in factory f;
[0086] EMm,r,f : The end time of the rth position on the machine tool m in factory f;
[0087] SM m,b,r,f : The start time of the fault b corresponding to the rth position on the machine tool m of factory f;
[0088] CM m,b,r,f : The end time of the fault b corresponding to the rth position on the machine tool m of factory f;
[0089] SW m,res,r,f : The start time of waiting for resource res at position r on machine tool m in factory f;
[0090] CW m,res,r,f : The end time of waiting for resource res at position r on machine tool m in factory f;
[0091] TWR r,res,j,s,m,f : The time that factory f waits for resource res at position r on machine tool m at stage s;
[0092] TWB r,b,j,s,m,f : The time when failure b occurs at the rth position on machine tool m in factory f at stage s;
[0093] EPU: unit energy consumption excluding machine energy consumption;
[0094] TWU m : Unit energy consumption of machine m waiting for resources;
[0095] TBU m : Unit energy consumption of machine m when it fails;
[0096] TPU m : Unit energy consumption of machine m during processing;
[0097] α: extremely large number.
[0098] The decision variables are expressed as follows:
[0099] X m,j,s,r,f : 0 / 1 variable indicating whether job j is processed at position r on machine m at stage s in factory f;
[0100] Y m,j,s,r,f,res : 0 / 1 variable indicating whether job j at position r on machine m at stage s in factory f is processed using res resources;
[0101] Z j,s,f : 0 / 1 variable, indicating whether job j is processed at the sth stage of factory f;
[0102] U m,j,s,r,f,b: A 0 / 1 variable indicating whether workpiece j fails at position r on machine m at stage s in factory f.
[0103] The distributed hybrid flow shop scheduling problem considering resource constraints and machine failures is modeled as follows:
[0104]
[0105]
[0106] Among them, constraint (1) describes the two objectives of the problem, namely the maximum completion time and the total energy consumption. Constraint (2) describes that the maximum completion time is related to the completion time of each factory. Constraint (3) ensures that each workpiece has a start time corresponding to the actual production. Constraint (4) ensures that the time when the workpiece processing ends is greater than or equal to the time when the workpiece processing starts. Constraints (5) and (6) ensure that each operation time is positive. Constraints (7) and (8) ensure the processing relationship between two consecutive jobs on the same machine, where the start time of the subsequent job must be later than the completion time of the previous job. Constraints (9)-(12) represent the relationship between machine processing and resources. Constraints (13)-(16) represent the relationship between machine processing and machine failure. Constraints (17) and (18) ensure that each operation can only be processed on one machine in one factory. Constraint (19) ensures that each operation of the same workpiece should choose the same factory. Constraints (20) and (21) ensure that each processing is performed at the first available position on the machine. Constraints (22)-(25) establish the connection between the machine processing position and the corresponding operation. Constraints (26)-(29) represent the relationship between waiting resources and corresponding operations. Constraints (30)-(33) the relationship between machine failures and corresponding operations. Constraint (34) ensures that a factory can be selected for each workpiece. Constraints (35) and (36) ensure the connection between resources of process priority within the same stage. Constraints (37)-(39) represent processing energy consumption, waiting energy consumption and other energy consumption.
[0107] The objectives of the above distributed hybrid flow shop scheduling model are to minimize the maximum completion time and minimize the total energy consumption.
[0108] In this embodiment, based on the multi-objective optimization function, a block neighborhood based multi-objective evolutionary algorithm (BNMOEA) is used to solve the DRCHF-MB problem under consideration. First, the main framework of the proposed algorithm is described. Then, the heuristic algorithms for encoding, decoding and specific problems are given.
[0109] The main framework of the algorithm is as follows:
[0110]
[0111] In the multi-objective algorithm based on block neighborhood, a local enhanced search heuristic algorithm based on block neighborhood is embedded to improve the local search ability of the algorithm; considering that the dominant solution will be selected first and be at the forefront of the population in environmental selection, more results will be allocated to the dominant solution during mating selection, and the convergence of the offspring will be evaluated to select the better solution, and random selection will be made in the population to form a mating pool, and the number of iterations of the offspring population will be calculated to perform environmental selection.
[0112] Specifically include:
[0113] (1) An effective initialization heuristic algorithm related to problem characteristics was developed to effectively improve the quality and diversity of the initial population;
[0114] (2) In order to ensure the breadth and depth of the search space, a global search strategy that mixes three crossover operators is designed;
[0115] (3) A search mechanism based on key factories is designed. The enhanced local search heuristic strategy further improves the algorithm's search capability.
[0116] The specific implementation steps are as follows:
[0117] Like the classical HFSP, each solution to the considered DRCHF-MB problem is also represented by a two-dimensional vector, where one vector describes the scheduling sequence and the other vector tells the factory assignment of each job.
[0118] Figure 2(a) shows an example of a solution representation, where there are 10 jobs. Different colors indicate that the jobs are assigned to different plants, i.e., J1, J3, J4, J7, and J10 are processed in the first plant, while J2, J5, J6, J8, and J9 are assigned to the second plant. The encoding also specifies the scheduling order of each job within each plant. The scheduling sequence obtained in the figure is the overall scheduling sequence, i.e., the jobs are in the scheduling sequence of both tasks. For example, for plant 1, J1, J3, J4, J7, and J10 are assigned, and the resulting scheduling sequence is {8, 2, 5, 3, 9}. The resulting scheduling sequence is then rearranged in ascending order to obtain a new processing order, i.e., {J3, J7, J4, J1, J10}.
[0119] Figure 2(b) shows an example of resource constraint representation, where there are three different resources. Each machine has different resources to match, as shown in the figure, machine 1 requires R1, R2, and R3 in factory 1, while machine 1 requires R1 and R3 in factory 2, but does not require R2 in factory 2. In other words, even the same machine has different dependencies on resources.
[0120] According to the solution considered, the following decoding scheme is proposed:
[0121] There are two problems that need to be solved, namely, selecting a factory for processing the workpiece and selecting a machine tool for processing the workpiece.
[0122] Aiming at these problems, a decoding mechanism of the first-come-first-served (FCFS) rule and the earliest-available (EAFS) rule is proposed. First, in the first stage, processing is carried out in the order of the scheduling order until all machines are in the processing state. However, when a machine fails or waits for resources, the corresponding machine is in an unavailable state. When the machine is available, the following tasks will immediately enter the processing state. Secondly, in the subsequent stages, according to the processing order of the first stage, the earlier the job is processed, the earlier it will enter the later stage for processing.
[0123] The detailed decoding steps are shown in Algorithm 2 below:
[0124]
[0125] In this embodiment, an effective initialization heuristic algorithm related to problem characteristics is developed to effectively improve the quality and diversity of the initial population.
[0126] The initialization of the multi-objective algorithm based on block neighborhood is as follows:
[0127] The quality of the initial solution has a great impact on the speed and quality of the algorithm. The heuristic method can quickly find the target value in a short time and search space. The population initialization adopts a combination of random initialization and production scheduling heuristic rule initialization. The heuristic rules used include the first come first service rule (FCFS). The machine allocation is generated by the first idle device allocation principle. The specific steps are as follows:
[0128] For resource allocation, each resource is randomly assigned to each machine.
[0129] For the factory assignment vector, each workpiece is assigned to a random selection vector.
[0130] For the scheduling vector, traverse each factory to obtain the initial scheduling sequence. Step 1: Arrange all workpieces in descending order of processing time; Step 2: Select a workpiece from the sorted workpiece sequence and insert it into the current optimal position to minimize the completion time; Step 3: After each insertion, update the current optimal solution; Step 4: Repeat steps 2 and 3 until all workpieces are inserted into the scheduling sequence.
[0131] In this embodiment, a new global search strategy is proposed to improve the search capability of the algorithm, specifically including:
[0132] Based on the encoding representation, we propose a new cross-heuristic algorithm, including:
[0133] (1) PBX crossover (location-based crossover method)
[0134] First, several genes in a pair of chromosomes (parents) are randomly selected to non-adjacent positions, but both chromosomes are selected to the same position. Then, offspring are generated, ensuring that the selected genes in the offspring are in the same position as the genes in the parents. Finally, the position of the gene selected in the initial step in the other parent is determined, and the remaining genes are placed in the offspring generated in the previous step in order.
[0135] (2) LOX crossover (linear crossover method)
[0136] The starting and ending positions are randomly selected on the two parent chromosomes, and the fragments at the starting and ending positions in the parent chromosome are copied to the corresponding positions of the chromosomes of the corresponding offspring. Then, the offspring 1 chromosome is compared with the parent 2 chromosome, and the missing genes are inserted from the parent 2 chromosome into the offspring 1 in sequence. The same operation is performed on the offspring 2 chromosome.
[0137] (3) TPX crossover (two-point crossover method)
[0138] Two crossover points were randomly set in individual chromosomes, and then partial gene exchange was performed.
[0139] In this embodiment, in order to prevent falling into the local optimum, the enhanced local search strategy further improves the search capability of the algorithm, that is, an enhanced local search strategy based on key factories is proposed to improve the local search capability of the algorithm.
[0140] In the distributed scheduling problem, the completion time is determined by the key plant with the longest completion time. Reducing the completion time of the key plant is an effective way to reduce the completion time. Therefore, eight subsequence-based operators are designed for the key plants in the local enhanced search strategy. Figure 2 shows examples of local enhanced search representations including: subsequence internal exchange based on key plants (SIS_cf), subsequence external insertion based on key plants (SEI_cf), subsequence internal insertion based on key plants (SII_cf), subsequence external exchange based on key plants (SES_cf), two subsequence exchange between key plants and random plants (TSS_crf), two subsequence insertion between key plants and random plants (TSI_crf), selection point exchange between key plants and random plants (SPS_crf), and selection point insertion between key plants and random plants (SPI_crf).
[0141] SIS_cf: Randomly select consecutive workpieces in the key factory to form a subsequence. Perform exchange operations on the workpieces in the subsequence.
[0142] SEI_cf: Randomly select consecutive artifacts in the key factory to form a subsequence. Randomly select an artifact outside the subsequence and insert the selected artifact into the subsequence.
[0143] SII_cf: Randomly select consecutive artifacts in the key factory to form a subsequence. Perform an insert operation on the artifacts in the subsequence.
[0144] SES_cf: Randomly select consecutive artifacts in the key plant to form a subsequence. Randomly select an artifact outside the subsequence and exchange the selected artifact with the artifact in the subsequence.
[0145] TSS_crf: Randomly select consecutive workpieces in the key factory to form subsequence 1, randomly select consecutive workpieces in other factories to form subsequence 2, and perform exchange operations on these two subsequences.
[0146] TSI_crf: Randomly select consecutive workpieces in the key factory to form subsequence 1, and randomly select consecutive workpieces in other factories to form subsequence 2, and perform exchange and insertion operations on these two subsequences respectively.
[0147] SPS_crf: Randomly select a workpiece in the key factory and a workpiece in other factories, and exchange the two workpieces.
[0148] SPI_crf: Randomly select an artifact in the key factory and insert this artifact into other factories.
[0149] The eight operators are divided into four sets: OS1 = {SIS_cf, SEI_cf}, OS2 = {SII_cf, SES_cf}, OS3 = {TSS_crf, TSI_crf}, OS4 = {SPS_crf, SPI_crf}. In order to maintain the discreteness of the offspring and improve the quality of the solution, the four operator sets are implemented on the framework of the variable neighborhood search strategy (VNS).
[0150] Algorithm 3 outlines the steps involved in implementing the local reinforcement strategy.
[0151]
[0152] Experimental results and analysis
[0153] This embodiment carries out a computational experiment to test the performance of the BNMOEA algorithm. The algorithm is implemented on an Intel Core i7 3.4-Ghz PC on Plat EMO with 16GB of memory. In order to test the performance of the BNMOEA algorithm, 27 instances of different sizes are generated based on real factories.
[0154] All compared algorithms are used to solve the considered problems, including encoding and decoding methods, as well as initialization, crossover and mutation procedures. For each instance, the stopping condition is set to 1000 iterations.
[0155] In order to test the performance of the algorithm, 30 independent runs were used to test the performance of the algorithm, and the non-dominated solutions obtained by all the compared algorithms were collected for performance comparison. The comparison was made by hypervolume (HV) and inverse generation distance (IGD). The variance analysis comparison used relative percentage increase (RPI), and the calculation formula was as follows:
[0156]
[0157] Where v(s,P) represents the volume of the hypercube formed by the straight line between the solution and the reference point as the diagonal. It is also the space formed by the solutions and reference points in the non-dominated solution set. The larger the HV index value of the non-dominated solution set, the closer the solution set is to the true Pareto front in terms of convergence and diversity, and it is a better non-dominated solution set. In addition, X represents the Pareto solution set, s represents the Pareto optimal solution, and P represents the reference point. In the following experiments, (1, 1) is selected as the reference point of HV.
[0158]
[0159] IGD is used to calculate the average Euclidean distance between all solutions in the true Pareto front and the non-dominated solutions obtained by the proposed algorithm. Where X represents the solution generated by the algorithm, x* represents the solution on the Pareto front, and p* represents the Pareto front, which refers to the number of solutions in |p*|. d(x*,X) represents the minimum Euclidean distance from a point on the Pareto front to a solution.
[0160]
[0161] Where f represents the evaluation index of the current algorithm, and fb represents the maximum value of the evaluation index of all current algorithms. The evaluation index is HV or IGD.
[0162] Experimental parameter settings
[0163] 27 problem instances of different sizes are randomly generated to solve the distributed hybrid flow shop scheduling problem with resource constraints, and the effectiveness of the BNMOEA algorithm is tested based on actual production data. For example, instance 1 can represent 20 workpieces in 2 stages in 2 factories, each stage includes 3 resources, where the workpiece index is {20, 60, 100}, the factory index is {2, 3, 4}, the stage index is {2, 3, 4}, and the resource type index is {3, 4, 5}. The five algorithms are run independently 30 times respectively.
[0164] Verify the effectiveness of the initialization strategy as follows:
[0165] In order to verify the effectiveness of the discussed initialization method, it was compared with random initialization (denoted as E1), and the two algorithms were tested by variance analysis to see if there were significant differences.
[0166] Table 1 gives the comparison results of HV and IGD for 27 instances of different sizes. In Table 1, the first column is the size of the instance, and the results of HV and IGD are the following four columns.
[0167] The following conclusions can be drawn from Table 1: (1) From the performance index HV, the algorithm with the initialization strategy obtained 25 better results. (2) From the performance index IGD, the initialization strategy is efficient in most cases, and only a small part of the performance is slightly worse. (3) From the average performance index, the initialization strategy has good performance.
[0168] from Figure 4 It can be clearly seen from the variance analysis results that the initialization strategy of the BNMOEA algorithm is significantly better than that of E1, whether it is the HV indicator or the IGD indicator, which verifies the effectiveness of the proposed initialization method.
[0169] Table 1 Comparison results between BNMOEA and E1 on the evaluation indicators HV and IGD
[0170]
[0171] Verify the effectiveness of the global search strategy as follows:
[0172] In order to prove that the proposed global search strategy is effective, this embodiment conducts a comparative experiment, that is, the one without the global search strategy is denoted as E2 and the one with the global search strategy is denoted as BNMOEA. For fair comparison, the two algorithms are exactly the same except for the global search method. Both algorithms are run 30 times on 27 instances, and the results of each instance are shown in Table 2.
[0173] The first column in the table shows instances of different sizes. The following conclusions can be drawn from Table 2: (1) Compared with E2, BNMOEA obtains 27 better results; (2) The last row in the table shows the average of the evaluation indicators of all instances. The HV of BNMOEA is greater than that of E2, and the IGD of BNMOEA is less than that of E2, which proves the effectiveness of the global search strategy.
[0174] From the analysis results in Figure 5, BNMOEA has the highest RPI_HV interval (as shown in Figure 5(a)) and the lowest RPI_IGD interval (as shown in Figure 5(b)), which is better than E2. The p value is less than 0.05, which proves the effectiveness of the global search strategy. Therefore, the proposed global search strategy is effective for the improved algorithm.
[0175] Table 2 Comparison results between BNMOEA and E2 on the evaluation indicators HV and IGD
[0176]
[0177] Verify the effectiveness of the local search strategy, specifically:
[0178] In order to prove the effectiveness of the above local search, a detailed comparison is made between the algorithms with and without the strategy. The algorithm without the key plant local reinforcement is represented by E3.
[0179] The following conclusions can be drawn from Table 3: (1) According to the values of the performance indicators HV and IGD, BNMOEA obtains 27 better results than E3; (2) From the average values of the evaluation indicators of all instances represented in the last row of the table, BNMOEA's HV and IGD are better than E3.
[0180] As can be seen from Figure 6 (a) and (b), BNMOEA has the highest RPI_HV value interval (as shown in Figure 6 (a)) and the lowest RPI_IGD value interval (as shown in Figure 6 (b)), and the performance of BNMOEA is significantly better than E3. Therefore, for the proposed 27 instances of different sizes, the local enhanced search strategy based on the key plant is significantly better than the algorithm without local search.
[0181] Table 3 Comparison results of BNMOEA and E3 on evaluation indicators HV and IGD
[0182]
[0183] Verify the effectiveness of the algorithm, specifically:
[0184] In order to demonstrate the performance of the proposed algorithm (a multi-objective evolutionary algorithm based on block neighborhood), four algorithms, namely NSGAII, AGEMOEAII, CMOPSO, and BiGE, were selected. NSGAII is a widely used classical multi-objective optimization algorithm that has been verified in many fields with good performance; while CMOPSO, BiGE, and AGEMOEAII are relatively new multi-objective algorithms that perform well in solving mixed-flow shop scheduling. Each algorithm was run 30 times independently on the same computer and 27 instances were tested. Tables 4 and 5 show the performance index values of different algorithms at different scale instances.
[0185] Table 4 represents the HV information of all algorithms, and Table 5 represents the IGD values of all algorithms. The following conclusions can be drawn from the above two tables: (1) For instances of different sizes generated by the same problem, BNMOEA is significantly better than other algorithms in both performance indicators (HV and IGD); (2) From the last row of the table, which represents the average value of the evaluation indicators of all instances, BNMOEA's HV and IGD are better than other algorithms. As can be seen from Figure 7 (a) and (b), compared with other algorithms, BNMOEA has higher RPI_HV and lower RPI_IGD, and the indicator values are better. Therefore, the solution generated by the BNMOEA algorithm is closer to the global optimal solution. BNMOEA has good performance in solving the proposed problem.
[0186] Table 4 Comparison of HV performance indicators of the algorithms
[0187]
[0188] Table 5 Comparison of IGD performance indicators of algorithms
[0189]
[0190]
[0191] In addition, this embodiment also uses the empirical achievement function (EAF) to test the above five comparison algorithms, which can be obtained on github. Figure 8 shows the EAF difference between BNMOEA and AGEMOEAII, BIGE, CMOPSO and NSGAII. In EAF, this color represents the difference in the probability that the algorithm dominates the corresponding solution compared with other algorithms. The larger the difference, the darker the color, indicating that the probability that the result obtained by this algorithm dominates the solution is higher than that of other algorithms. In short, the darker the color and the larger the area, the better the algorithm. The following conclusions can be drawn from Figure 8: (1) The shaded part of BNMOEA is larger than that of other comparison algorithms, which proves that BNMOEA has better performance. (2) Under different scheduling environments, the performance of BNMOEA is also better than the other four comparison algorithms. Therefore, EAF proves that BNMOEA has excellent performance.
[0192] As shown in Figure 9, the Pareto fronts generated by several different algorithms for instances of different sizes are shown. Different colors represent the Pareto fronts generated by different algorithms. The following conclusions can be drawn from Figure 9: (1) Compared with other algorithms, the solutions generated by BNMOEA are significantly closer to the Pareto front. (2) For instances of different sizes, considering diversity and convergence, BNMOEA has better performance than the other four compared algorithms. Therefore, the proposed BNMOEA can obtain a better set of non-dominated solutions within a limited range and has stability.
[0193] In summary, this embodiment compares the improved algorithm with the previous algorithm, using the same instance, each instance is run 30 times in the same time, and the best solution, the worst solution, and the average performance of the solution are selected in the iteration process for comparison to verify the effectiveness of the improved algorithm; secondly, it is compared with BiGE, CMOPSO, AGEMOEAII, and NSGAII algorithms, and the above four algorithms are encoded and decoded in the same way and run in the same environment. For each comparison algorithm, the same instance is used to run 30 times under the same conditions to obtain the results of the algorithm. All comparison algorithms use the same stopping criterion, which has strong practicality in actual production systems. The data generated by different algorithms are tested, and the box plot can prove that the proposed algorithm has good performance.
[0194] The present invention obtains the optimal Pareto solution set based on the current basic data and the HFS multi-objective optimization model considering resource constraints, machine failures and distribution constraints; in order to make the solution algorithm have better performance, two parameters of the proposed algorithm are adjusted according to the current data basis; three problem-specific initialization heuristics are developed to consider these two goals, thereby improving the quality and diversity of the initial population, and the performance of the initialization strategy is analyzed based on the current data basis; the effectiveness of the hybrid three-crossover method for specific problems is verified by implementing two algorithms; the enhanced local search heuristic is to improve the local search capability of the proposed algorithm, and the performance of the local search strategy is analyzed based on the current data basis; four most advanced MOEAs are selected for comparison with the proposed algorithm, and the performance of the proposed algorithm is analyzed.
[0195] Embodiment 2
[0196] This embodiment provides a hybrid flow shop scheduling system that takes into account resources and machine failures, including:
[0197] A data acquisition module, which is configured to: acquire workshop data of a distributed hybrid flow workshop;
[0198] A scheduling model building module, which is configured to: establish a distributed hybrid flow shop scheduling model considering resource constraints and machine failures according to shop data;
[0199] The scheduling model solving module is configured to: solve the workshop scheduling model by using a multi-objective evolutionary algorithm based on block neighborhood, obtain a multi-objective optimization scheduling solution that takes into account resource waiting time and machine failure processing, and schedule the distributed hybrid flow workshop operations;
[0200] Among them, the block neighborhood-based multi-objective evolutionary algorithm developed an initialization heuristic algorithm based on the characteristics of the workshop scheduling model, and adopted a global search strategy of hybrid crossover operators to ensure the breadth and depth of the search space, and adopted an enhanced local search strategy based on key factories to improve the local search capability of the algorithm.
[0201] Embodiment 3
[0202] The purpose of this embodiment is to provide a computing device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method of embodiment 1 when executing the program.
[0203] Embodiment 3
[0204] The purpose of this embodiment is to provide a computer-readable storage medium, a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the steps of the method of embodiment 1 are performed.
[0205] Those skilled in the art should understand that the modules or steps of the present invention described above can be implemented by a general-purpose computer device, or alternatively, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. The present invention is not limited to any specific combination of hardware and software.
[0206] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0207] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.
Claims
1. A hybrid flow shop scheduling method considering resources and machine failures, It is characterized in that include: Obtain the workshop data of the distributed hybrid flow workshop; A distributed hybrid flow shop scheduling model considering resource constraints and machine failures is established based on shop floor data; A multi-objective evolutionary algorithm based on block neighborhood is used to solve the workshop scheduling model, and a multi-objective optimization scheduling scheme that takes into account resource waiting time and machine failure handling is obtained to schedule distributed hybrid flow workshop operations; Among them, the block neighborhood-based multi-objective evolutionary algorithm developed an initialization heuristic algorithm based on the characteristics of the workshop scheduling model, and adopted a global search strategy of hybrid crossover operators to ensure the breadth and depth of the search space, and adopted an enhanced local search strategy based on key factories to improve the local search capability of the algorithm.
2. A hybrid flow shop scheduling method considering resources and machine failures as claimed in claim 1, It is characterized in that The objectives of the distributed hybrid flow shop scheduling model are to minimize the maximum completion time and minimize the total energy consumption.
3. A hybrid flow shop scheduling method considering resources and machine failures as claimed in claim 1, It is characterized in that In the process of solving the workshop scheduling model using a block neighborhood-based multi-objective evolutionary algorithm, the scheduling problem is divided into five subtasks, including: how to select a suitable factory for each workpiece, how to select a suitable machine for each workpiece, how to determine the start and completion time of each workpiece, how to determine the scheduling sequence of workpieces, and how to allocate corresponding resources to each machine.
4. A hybrid flow shop scheduling method considering resources and machine failures as claimed in claim 1, It is characterized in that Each feasible solution of the distributed hybrid flow shop scheduling model considering resource constraints and machine failures is encoded and decoded, and each solution is represented by a two-dimensional vector, one vector describes the scheduling sequence of the workpieces, and the other vector tells the factory allocation of the workpieces.
5. A hybrid flow shop scheduling method considering resources and machine failures as claimed in claim 1, It is characterized in that In the initialization heuristic algorithm, population initialization is a combination of random initialization and heuristic rule initialization for production scheduling.
6. A hybrid flow shop scheduling method considering resources and machine failures as claimed in claim 1, It is characterized in that The global search strategy of the hybrid crossover operator includes a position-based crossover method, a linear crossover method and a two-point crossover method.
7. A hybrid flow shop scheduling method considering resources and machine failures as claimed in claim 1, It is characterized in that The enhanced local search strategy based on the key factory includes internal exchange of subsequences based on the key factory, external insertion of subsequences based on the key factory, internal insertion of subsequences based on the key factory, external exchange of subsequences based on the key factory, exchange of two subsequences between the key factory and the random factory, insertion of two subsequences between the key factory and the random factory, exchange of selection points between the key factory and the random factory, and insertion of selection points between the key factory and the random factory.
8. A hybrid flow shop scheduling system considering resources and machine failures, It is characterized in that include: A data acquisition module, which is configured to: acquire workshop data of a distributed hybrid flow workshop; A scheduling model building module, which is configured to: establish a distributed hybrid flow shop scheduling model considering resource constraints and machine failures according to shop data; The scheduling model solving module is configured to: solve the workshop scheduling model by using a multi-objective evolutionary algorithm based on block neighborhood, obtain a multi-objective optimization scheduling solution that takes into account resource waiting time and machine failure processing, and schedule the distributed hybrid flow workshop operations; Among them, the block neighborhood-based multi-objective evolutionary algorithm developed an initialization heuristic algorithm based on the characteristics of the workshop scheduling model, and adopted a global search strategy of hybrid crossover operators to ensure the breadth and depth of the search space, and adopted an enhanced local search strategy based on key factories to improve the local search capability of the algorithm.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps in a hybrid flow shop scheduling method considering resources and machine failures as described in any one of claims 1 to 7 are implemented.
10. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps in a hybrid flow shop scheduling method considering resources and machine failures as described in any one of claims 1-7 are implemented.
Citation Information
Cited By
Distributed hybrid flow shop scheduling method and system considering worker fatigue
CN119668221A
A distributed hybrid flow shop scheduling method and system considering worker fatigue
CN119668221B
Distributed heterogeneous hybrid flow shop scheduling method considering limited AGV
CN122219377A
