Job shop scheduling method and system based on bidirectional coupling scheduling decoding

Through the two-way coupling scheduling decoding method, combined with forward active decoding and reverse active decoding, the search space of job shop scheduling is narrowed, the delay time is reduced, the scheduling efficiency is improved, and the problem of large search space for active scheduling centralized is solved.

CN117434905BActive Publication Date: 2024-08-27UNIV OF JINAN
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311685641.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-07
Publication Date
2024-08-27
Estimated Expiration
2043-12-07

AI Technical Summary

Technical Problem

In existing job shop scheduling methods, the active scheduling set usually has a large search space and contains schedules with a large number of delay times, making it difficult to obtain an optimized process sequence.

Method used

The bidirectional coupling scheduling decoding method is adopted, and through the combination of forward active decoding and reverse active decoding, breakpoints are set to divide the encoding into two sections before and after, and complete scheduling instructions are generated according to machine constraints and process constraints, narrowing the search space and reducing delay time.

Benefits of technology

Obtain better scheduling decoding results, reduce the scheduling of process delays, maintain the diversity of the understanding space, and improve scheduling efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117434905B
    Figure CN117434905B
Patent Text Reader

Abstract

The present invention relates to a job shop scheduling method and system based on bidirectional coupling scheduling decoding, firstly, the code is decoded for forward active scheduling, and then the code is decoded for reverse active scheduling. Then, bidirectional scheduling coupling is performed, and a breakpoint is set starting from the position after the first process, and the code is divided into two sections, the forward active scheduling corresponding to the first section of the code and the reverse active scheduling corresponding to the second section of the code are taken, and then the two sections of scheduling are coupled together according to machine constraints and process constraints, so as to obtain a complete scheduling, record the maximum completion time and the split position. Then, the breakpoint is moved back to the position of a process, and then divided into two process sequences, and the above operation is repeated. And so on, until the breakpoint is set before the last process. The maximum completion times corresponding to all breakpoints are compared, and the scheduling generated by the breakpoint with the smallest maximum completion time is selected as the final result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of scheduling control, and in particular to a job shop scheduling method and system based on bidirectional coupling scheduling decoding. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] Scheduling is the process of rationally arranging the limited resources in a system within a given time so that it can complete a given task with the best possible performance. Scheduling problems exist in various fields such as production operation planning, enterprise management, transportation, aerospace, medical care, and network communications.

[0004] The job shop scheduling problem (JSP) refers to the reasonable sorting of the processing sequence of each workpiece process based on single or multiple production goals and workshop environmental conditions, while satisfying constraints, and determining the start and end time of each workpiece process based on the obtained sorting to optimize one or more scheduling performance indicators.

[0005] The JSP problem can be described as: n workpieces are processed on m machines. The set of all workpieces can be expressed as J = {, J- i .|(i=1,2,…,n)}, the set of all machines can be expressed as M={,M- k .|(k=1,2,…,m)}, the workpiece processing process needs to meet certain constraints. Among them, the scheduling decoding method has an important impact on the efficiency of solving the JSP problem. Traditional scheduling generally includes the following three types: semi-active scheduling, active scheduling, and non-delay scheduling. Semi-active scheduling means that no process can be advanced without changing the processing order on the machine; active scheduling means that no operation can be processed in advance without postponing other operations or destroying the priority order. Some existing technologies limit the search space of scheduling solutions to the active scheduling set, which is usually very large and will also contain many scheduling processes with a lot of delay time. Summary of the invention

[0006] In order to solve the technical problems existing in the above-mentioned background technology, the present invention provides a job shop scheduling method and system based on bidirectional coupling scheduling decoding. For the same coding individual, bidirectional coupling scheduling decoding can obtain better decoding results than active scheduling, which can narrow the space for searching scheduling solutions, reduce the scheduling of processes with a large amount of delay time, obtain better scheduling solutions, and maintain the diversity of scheduling solutions in the solution space.

[0007] A first aspect of the present invention provides a job shop scheduling method based on bidirectional coupling scheduling decoding, comprising the following steps:

[0008] Obtain workpiece information, machine information, process information and the processing machine corresponding to each workpiece during each process, form a list and generate a coded individual based on the process;

[0009] After the first process of the generated code is generated, a breakpoint is set and the code is divided into two sections, the earliest feasible start time of all machines obtained by forward active decoding of the first section of the code, the maximum tail length of each workpiece and each machine obtained by reverse active decoding of the second section of the code, and the corresponding machine constraints and process constraints are added to obtain a complete scheduling instruction, and the maximum completion time and corresponding breakpoint position in the instruction are determined;

[0010] The breakpoint is moved to the next process in sequence until the breakpoint is set before the last process. The maximum completion time of the instructions corresponding to all breakpoint positions is obtained, and the breakpoint corresponding to the minimum value of the maximum completion time is selected. The scheduling instruction generated by decoding the breakpoint is the final result.

[0011] Furthermore, the workpiece information, machine information, process information and the corresponding processing machine of each workpiece in each process are obtained to form a list and generate a coded individual based on the process, specifically:

[0012] Get the problem data, initialize the number of workpieces JobNum, the number of machines MachNum, the set of workpieces Job{}, the set of machines Machine{}, the number of processes JobOp for each workpiece, the processing route of each workpiece, and the total number of processes Length;

[0013] According to the total number of workpieces JobNum and the number of processes of each workpiece JobOp, a process-based coding individual is randomly generated.

[0014] Furthermore, the processing route of each workpiece includes the processing sequence of each process, the processing time of each process, and the processing machine corresponding to each process.

[0015] Furthermore, the generated code is actively decoded forward, and after each process is scheduled for processing, the actual processing sequence of the scheduled processing processes and the earliest feasible start time of all current processes and all machines are recorded;

[0016] Furthermore, the generated code is actively decoded in reverse, the process route is reversed, the code is read from back to front for active decoding, the last process in the code is scheduled to start processing at time zero on the corresponding machine, the second to last process in the code is taken, with the goal of minimizing the maximum completion time and considering the process route constraints, it is inserted into the best feasible start time of the corresponding machine for processing, until all processes in the code are scheduled to be processed at the best feasible time.

[0017] Furthermore, during the reverse active decoding process, each time a process is completed, the processing order of the currently scheduled processing process and the earliest feasible start time of all current processes and all machines are recorded. After reversing the processing order of the processes, the processing order of the processes according to the normal process route is obtained. This earliest feasible start time is the maximum tail length of the processes on each workpiece and each machine after the process route is normalized.

[0018] Furthermore, the tail length is defined as the distance between the process start time and the maximum scheduled completion time.

[0019] Furthermore, a breakpoint is set after the first step of generating the code and the code is divided into two sections, namely, the division starts from the position after the first step, at which time the first step is the first section, and all steps after the first step are the second section, and so on. The division position is recorded as i.

[0020] Furthermore, based on the addition of the corresponding machine constraints and process constraints, a complete scheduling instruction is obtained, and the maximum completion time and the corresponding breakpoint position in the instruction are determined. Specifically, two arrays of machine dimension and workpiece dimension are obtained after addition. The maximum value of the two arrays is taken as the maximum completion time of the entire scheduling instruction, and this maximum completion time and the corresponding split position are recorded.

[0021] Further, the breakpoint is moved to the next process in sequence until the breakpoint is set before the last process, and the maximum completion time of the instructions corresponding to all breakpoint positions is obtained. The breakpoint corresponding to the minimum value of the maximum completion time is selected, and the scheduling instruction generated by the decoding of the breakpoint is the final result; specifically:

[0022] Move the split position backward by one process at a time to obtain the maximum completion time of the instructions corresponding to all breakpoint positions, until the split position moves to the last process of the coding sequence, and select the split position final-i corresponding to the smallest value of the maximum completion time;

[0023] According to final-i, the workpiece processing sequence obtained by the forward active decoding and the reverse active decoding corresponding to the position is spliced ​​together to obtain the final process processing sequence and the start and completion time of each process, and the decoding is completed.

[0024] A second aspect of the present invention provides a job shop scheduling system based on bidirectional coupling scheduling decoding, comprising:

[0025] The information collection module is configured to: obtain workpiece information, machine information, process information and the processing machine corresponding to each workpiece during each process, form a list and generate a coded individual based on the process;

[0026] The breakpoint generation module is configured to: set a breakpoint after generating the first process of the code and divide it into two sections, take the earliest feasible start time of all machines obtained by forward active decoding of the first section of the code, take the maximum tail length of each workpiece and each machine obtained by reverse active decoding of the second section of the code, and add them based on the corresponding machine constraints and process constraints to obtain a complete scheduling instruction, and determine the maximum completion time and the corresponding breakpoint position in the instruction;

[0027] The breakpoint selection module is configured as follows: the breakpoint moves to the next process in sequence until the breakpoint is set before the last process, the maximum completion time of the instructions corresponding to all breakpoint positions is obtained, and the breakpoint corresponding to the minimum value of the maximum completion time is selected. The scheduling instruction generated by decoding the breakpoint is the final result.

[0028] Compared with the prior art, one or more of the above technical solutions have the following beneficial effects:

[0029] For the same coding individual, through the bidirectional scheduling coupling of forward active scheduling solution and reverse active scheduling decoding, and setting breakpoints starting from the position after the first process, the coding is divided into two sections, the forward active scheduling corresponding to the first section of the coding and the reverse active scheduling corresponding to the second section of the coding are taken, and then the two sections of scheduling are coupled together according to machine constraints and process constraints to obtain a complete scheduling. By moving the breakpoint backward one process step at a time, comparing the maximum completion time corresponding to all breakpoints, and selecting the scheduling instruction generated by the breakpoint with the smallest maximum completion time as the final result, the space for searching scheduling solutions can be narrowed, the scheduling of processes with a large amount of delay time can be reduced, and better scheduling solutions can be obtained, while maintaining the diversity of scheduling solutions in the solution space. 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 is a schematic diagram of a decoding process provided by one or more embodiments of the present invention;

[0032] Figure 2 is a schematic diagram of segmentation positions provided by one or more embodiments of the present invention;

[0033] Figure 3 It is the previous section of the coding forward active scheduling Gantt chart provided by one or more embodiments of the present invention;

[0034] Figure 4 It is a Gantt chart for reverse active scheduling of the latter section of coding provided by one or more embodiments of the present invention;

[0035] Figure 5 A bidirectional coupling scheduling Gantt chart provided by one or more embodiments of the present invention;

[0036] Figure 6 A positive active scheduling Gantt chart provided by one or more embodiments of the present invention;

[0037] Figure 7 A reverse active scheduling Gantt chart provided by one or more embodiments of the present invention;

[0038] Figure 8 A bidirectional coupling scheduling Gantt chart is provided by one or more embodiments of the present invention. DETAILED DESCRIPTION

[0039] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0040] 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.

[0041] As introduced in the background technology, the JSP problem can be described as: n workpieces are processed on m machines. The set of all workpieces can be expressed as J = {, J- i .|(i=1,2,…,n)}, the set of all machines can be expressed as M={,M- k .|(k=1,2,…,m)}, the workpiece processing needs to meet certain constraints:

[0042] 1) At the same time, a workpiece can only be processed on one machine at most;

[0043] 2) Process processing needs to comply with the process route requirements of the corresponding workpiece, that is, the processing order of the processes to be processed on the workpiece;

[0044] 3) A machine can only process one workpiece at a time;

[0045] 4) Once each process starts, it cannot be stopped until it is completed.

[0046] Among them, the scheduling decoding method has an important impact on the efficiency of solving the JSP problem. Traditional scheduling generally includes the following three types: semi-active scheduling, active scheduling, and delay-free scheduling (for example, "PI NEDO M. Scheduling theory, algorithms, and system [M]. 2nd ed. New Jersey: Prentice Hall, Upper Saddle River, 2002." and other documents). Semi-active scheduling means that no process can be advanced without changing the processing order on the machine; active scheduling means that no operation can be processed in advance without delaying other operations or destroying the priority order. Some existing technologies limit the search space of scheduling solutions to the active scheduling set, which is usually very large and will also contain many scheduling processes with a lot of delay time.

[0047] Therefore, the following embodiments provide a job shop scheduling method and system based on bidirectional coupling scheduling decoding. For the same coding individual, bidirectional coupling scheduling decoding can sometimes obtain better decoding results than active scheduling, and can be applied to related problems such as flexible job shop scheduling problems and distributed job shop scheduling problems.

[0048] Embodiment 1:

[0049] like Figure 1 As shown, the job shop scheduling method based on bidirectional coupling scheduling decoding includes the following steps:

[0050] Step 1: Read the problem data, initialize the number of workpieces JobNum, the number of machines MachNum, the set of workpieces Job{}, the set of machines Machine{}, the number of processes of each workpiece JobOp, the processing route of each workpiece (including the processing order of each process, the processing time of each process and the corresponding processing machine for each process), and the total number of processes Length;

[0051] Step 2: According to the total number of workpieces JobNum and the number of processes of each workpiece JobOp, randomly generate a process-based coding individual;

[0052] Step 3: Forward and actively decode the code generated in step 2. After each process is processed, record the actual processing order of the scheduled processes and the earliest feasible start time of all current processes and all machines;

[0053] Step 4: Perform reverse active decoding on the code generated in step 2. Reverse the process route, read the code from back to front for active decoding, first take the last process on the code and schedule it to start processing at time zero on the corresponding machine, then take the second-to-last process on the code, consider the process route constraints and the goal of minimizing the maximum completion time, insert it into the best feasible start time of the corresponding machine to schedule processing, and continue in this way until all processes on the code are scheduled to be processed at the best feasible time;

[0054] Step 5: During the decoding process of step 4, each time a process is scheduled to be processed, the processing order of the currently scheduled processes and the earliest feasible start time of all current processes and all machines are recorded. The processing order of the processes is reversed to obtain the processing order of the processes according to the normal process route. This earliest feasible start time represents the maximum tail length of the processes on each workpiece and each machine after the process route is normalized. The tail length is defined as the distance from the process start time to the maximum scheduled completion time;

[0055] Step 6: Couple the forward active scheduling decoding and the reverse active scheduling decoding results, and split the code generated in step 2 into two segments, starting from the position after the first process. At this time, the first process is the first segment, and all processes after the first process are the second segment, and so on. The segmentation position is recorded as i;

[0056] Step 7: Take the earliest feasible start time of all machines and all processes corresponding to the last process coded in the previous section in step 3;

[0057] Step 8: Take the maximum tail length of all machines and all workpieces corresponding to the first process of the next section of coding in step 5;

[0058] Step 9: Add the data obtained in steps 7 and 8 to the corresponding machines and workpieces to obtain two arrays of machine dimension and workpiece dimension. The maximum value of the two arrays is the maximum completion time of the entire scheduling. Record this maximum completion time and the split position i.

[0059] Step 10: Move the segmentation position backward by one process at a time, and repeat steps 7-9 until the segmentation position moves to before the last process of the encoding sequence;

[0060] Step 11: Select the split position final-i corresponding to the value of the smallest maximum completion time;

[0061] Step 12: According to final-i, the process processing sequence obtained in step 3 and step 5 corresponding to the position is spliced ​​together to obtain the final process processing sequence and the start and completion time of each process, and the decoding is completed.

[0062] This embodiment takes an FT06 calculation example as an example, which includes 6 workpieces and 6 machines, and the total number of processes is 36. The numbers in the table represent the processing time of each process. As shown in Table 1.

[0063] Table 1: Example of FT06 job shop scheduling problem

[0064]

[0065]

[0066] Step 1: Read the problem data, initialize the number of workpieces JobNum = 6, the number of machines MachNum = 6, the number of processes for each workpiece JobOp = 6, the workpiece set Job{J1, J2, J3, J4, J5, J6}, the machine set Machine{M1, M2, M3, M4, M5, M6}, the processing route of each workpiece (including the processing order of each process, the processing time of each process and the corresponding processing machine for each process), and the total number of processes Length = 36.

[0067] Step 2: According to the total number of workpieces JobNum and the number of operations of each workpiece JobOp, a process-based code is randomly generated, as shown in Table 2:

[0068] Table 2, Coding based on process

[0069] Location 1 2 3 4 5 6 7 8 9 coding 1 6 6 4 2 4 6 5 2 Process O11 O61 O62 O41 O21 O42 O63 O51 O22 Location 10 11 12 13 14 15 16 17 18 coding 6 3 1 3 3 1 2 6 5 Process O64 O31 O12 O32 O33 O13 O23 O65 O52 Location 19 20 21 22 23 24 25 26 27 coding 5 1 1 4 3 5 2 2 3 Process O53 O14 O15 O43 O34 O54 O24 O25 O35 Location 28 29 30 31 32 33 34 35 36 coding 4 6 5 2 4 5 4 3 1 Process O44 O66 O55 O26 O45 O56 O46 O36 O16

[0070] The first line indicates the position of the process, the second line indicates the code based on the process, the number "1" indicates workpiece J1, the number "2" indicates workpiece J2, and so on. The third line indicates the represented process, such as the first O11 represents the first process of workpiece J1, O12 represents the second process of workpiece J1, O21 represents the first process of workpiece J2, and so on.

[0071] Step 3: Forward active decoding is performed on the code generated in step 2. The first process on the code is arranged for processing first, and then the second process on the code is inserted into the best feasible processing time on the corresponding machine for processing. This is done until all processes on the code are arranged at the best feasible place. After each process is arranged for processing, the processing order of the scheduled processes and the earliest feasible start time of all current processes and all machines are recorded. The results after forward active decoding are shown in Table 3:

[0072] Table 3. Results after forward active decoding

[0073] Location 1 2 3 4 5 6 7 8 9 coding 1 6 1 5 4 6 6 2 4 Process O11 O61 O12 O51 O41 O62 O63 O21 O42 Location 10 11 12 13 14 15 16 17 18 coding 3 3 6 1 2 3 2 4 1 Process O31 O32 O64 O13 O22 O33 O23 O43 O14 Location 19 20 21 22 23 24 25 26 27 coding 5 3 1 4 6 4 5 6 3 Process O52 O34 O15 O44 O65 O45 O53 O66 O35 Location 28 29 30 31 32 33 34 35 36 coding 3 5 2 5 1 5 2 4 2 Process O36 O54 O24 O55 O16 O56 O25 O46 O26

[0074] This process sequence is a new processing order sequence of the process formed after actively decoding the code generated in step 2.

[0075] Step 4: Actively decode the code generated in step 2 in reverse, that is, shift the process to the right. First, reverse the process route, that is, reverse the process processing order of each workpiece, reverse the first process of the workpiece to the sixth process, reverse the second process of the workpiece to the fifth process, and so on. As shown in Table 4. Then actively decode the code from back to front: first take the last process on the code and arrange it to the corresponding machine for processing, then take the second to last process on the code, consider the process constraints and the goal of minimizing the maximum completion time, and insert it into the best feasible processing time of the corresponding machine to arrange processing, in this way until all processes on the code are arranged in the best feasible place for processing.

[0076] Table 4, process route after inversion of FT06 example

[0077]

[0078]

[0079] The process sequence obtained by reversing the process route is shown in Table 5:

[0080] Table 5. Actual order after reverse active decoding

[0081] Location 1 2 3 4 5 6 7 8 9 coding 6 4 2 6 1 2 4 6 3 Process O61 O41 O21 O62 O11 O22 O42 O63 O31 Location 10 11 12 13 14 15 16 17 18 coding 1 1 2 3 6 5 3 1 6 Process O12 O13 O23 O32 O64 O51 O33 O14 O65 Location 19 20 21 22 23 24 25 26 27 coding 4 5 1 5 2 3 4 4 2 Process O43 O52 O15 O53 O24 O34 O44 O45 O25 Location 28 29 30 31 32 33 34 35 36 coding 3 3 5 4 1 2 5 5 6 Process O35 O36 O54 O46 O16 O26 O55 O56 O66

[0082] Step 5: During the decoding process of step 4, each time a process is completed, the processing order of the currently scheduled process and the earliest feasible start time of all current processes and all machines are recorded. After reversing the process processing order, the process processing order according to the normal process route is obtained. This earliest feasible start time represents the maximum tail length of the process on each workpiece and each machine after the process route is normalized. The tail length is defined as the distance from the process start time to the scheduled maximum completion time.

[0083] Step 6: Couple the forward active scheduling decoding and reverse active scheduling decoding results, and split the code generated in step 2 into two segments, starting from the position after the first process. At this time, the first process is the first segment, and all processes after the first process are the second segment, and so on. The segmentation position is recorded as i. Take the segmentation after the 12th process as an example. Figure 2 As shown in Tables 6 and 7, the two codes formed after segmentation are as follows:

[0084] Table 6, previous section coding

[0085] Location 1 2 3 4 5 6 7 8 9 10 11 12 coding 1 6 6 4 2 4 6 5 2 6 3 1 Process O11 O61 O62 O41 O21 O42 O63 O51 O22 O64 O31 O12

[0086] Table 7, the latter part of the code

[0087] Location 13 14 15 16 17 18 19 20 21 22 23 24 coding 3 3 1 2 6 5 5 1 1 4 3 5 Process O32 O33 O13 O23 O65 O52 O53 O14 O15 O43 O34 O54 Location 25 26 27 28 29 30 31 32 33 34 35 36 coding 2 2 3 4 6 5 2 4 5 4 3 1 Process O24 O25 O35 O44 O66 O55 O26 O45 O56 O46 O36 O16

[0088] Step 7: Take the minimum feasible start processing time of all machines and all processes corresponding to the last process coded in the previous section.

[0089] Taking split position 12 as an example, when the second process of workpiece 1 is completed, the earliest feasible start time of each machine and each process is obtained by step 3, as shown in Tables 8 and 9:

[0090] Table 8, Earliest feasible start time of each machine

[0091]

[0092] Table 9, Minimum feasible start processing time for each process

[0093]

[0094] Step 8: Take the maximum tail length of all machines and all workpieces corresponding to the first process of the next section of the code in step 5, and still take the segmentation position 12 as an example. The results are shown in Tables 10 and 11:

[0095] Table 10, Maximum tail length of each machine

[0096] machine M1 M2 M3 M4 M5 M6 Maximum tail length 24 41 29 40 40 36

[0097] Table 11, Maximum tail length of each workpiece

[0098] Workpiece J1 J2 J3 J4 J5 J6 Maximum tail length 41 40 40 29 29 30

[0099] Step 9: Add the data obtained in steps 7 and 8 to the corresponding machines and workpieces to obtain two arrays of machine dimension and workpiece dimension, as shown in Tables 12 and 13. The maximum value in these two arrays is the maximum completion time of the entire scheduling. Record this maximum completion time and the split position i:

[0100] Table 12, Completion time of each machine

[0101] machine M1 M2 M3 M4 M5 M6 Completion time 49 57 50 46 40 51

[0102] Table 13, Completion time of each workpiece

[0103] Workpiece J1 J2 J3 J4 J5 J6 Completion time 45 61 55 42 39 55

[0104] Here, the machine or workpiece represents the machine or workpiece corresponding to the two processes when the processes are coupled. The maximum completion time is 61, which can also be expressed by a Gantt chart, such as Figure 3 , 4 、5 as shown: Figure 5 The vertical line in the figure indicates the coupling position, and the maximum completion time is 61.

[0105] Step 10: Move the segmentation position backward by one process at a time, and repeat steps 7-9 until the segmentation position moves to before the last process of the encoding sequence.

[0106] Step 11: Select the segmentation position final-i corresponding to the value of the smallest maximum completion time. Taking this encoding as an example, the optimal segmentation position is 12 and the maximum completion time is 61.

[0107] Step 12: According to final-i, take the process processing sequence obtained in step 3 and step 5 corresponding to the position, as shown in Tables 14 and 15, and splice these two processing sequences together to obtain the final process processing sequence, as shown in Table 16.

[0108] Experience shows that positive active scheduling, i.e., shifting the process to the left, can concentrate the processes as much as possible on the left to shorten the maximum completion time; reverse active scheduling, i.e., shifting the process to the right, can concentrate the processes as much as possible on the right, which can also achieve the purpose of shortening the maximum completion time. For different encodings, shifting the process to the left and shifting the process to the right may have their own advantages and disadvantages. The bidirectional coupling scheduling decoding method in this paper combines the advantages of shifting the process to the left and shifting the process to the right, achieving a balance between shifting the process to the left and shifting the process to the right, so it will present a better decoding result.

[0109] Taking this code as an example, its active scheduling, reverse active scheduling and bidirectional coupling scheduling Gantt chart is as follows Figure 6 , 7 , 8. It can be seen that the decoding result of the forward active scheduling is 68, the decoding result of the reverse active scheduling is 66, and the decoding result of the bidirectional coupling scheduling is 61, which has a shorter completion time, verifying its effectiveness. At the same time, since the bidirectional coupling scheduling decoding originates from the coupling of the forward active scheduling and the reverse active scheduling, it is an extension made on the basis of the forward active scheduling and the reverse active scheduling, so its decoding result is theoretically not inferior to the forward active scheduling decoding and the reverse active scheduling decoding.

[0110] Table 14, the processing sequence of the previous section coding positive active scheduling

[0111] Location 1 2 3 4 5 6 7 8 9 10 11 12 coding 1 6 1 5 4 6 6 2 4 3 6 2 Process O11 O61 O12 O51 O41 O62 O63 O21 O42 O31 O64 O22

[0112] Table 15, the sequence of the subsequent process is automatically scheduled in reverse order.

[0113] Location 13 14 15 16 17 18 19 20 21 22 23 24 coding 1 2 3 3 1 6 4 5 1 5 2 3 Process O13 O23 O32 O33 O14 O65 O43 O52 O15 O53 O24 O34 Location 25 26 27 28 29 30 31 32 33 34 35 36 coding 4 4 2 3 3 5 4 1 2 5 5 6 Process O44 O45 O25 O35 O36 O54 O46 O16 O26 O55 O56 O66

[0114] Table 16, complete process sequence after bidirectional coupling

[0115] Location 1 2 3 4 5 6 7 8 9 coding 1 6 1 5 4 6 6 2 4 Process O11 O61 O12 O51 O41 O62 O63 O21 O42 Location 10 11 12 13 14 15 16 17 18 coding 3 6 2 1 2 3 3 1 6 Process O31 O64 O22 O13 O23 O32 O33 O14 O65 Location 19 20 21 22 23 24 25 26 27 coding 4 5 1 5 2 3 4 4 2 Process O43 O52 O15 O53 O24 O34 O44 O45 O25 Location 28 29 30 31 32 33 34 35 36 coding 3 3 5 4 1 2 5 5 6 Process O35 O36 O54 O46 O16 O26 O55 O56 O66

[0116] The above process first decodes the code for forward active scheduling, and then decodes the code for reverse active scheduling. Then, bidirectional scheduling coupling is performed, and the breakpoint is set starting from the position after the first process, and the code is divided into two sections, the forward active scheduling corresponding to the first section of the code and the reverse active scheduling corresponding to the second section of the code are taken, and the two sections of scheduling are coupled together according to the machine constraints and process constraints, so as to obtain a complete schedule, record the maximum completion time and the split position. Then move the breakpoint back to the position of one process, and then divide it into two process sequences, and repeat the above operation. And so on, until the breakpoint is set before the last process. Compare the maximum completion times corresponding to all breakpoints, and select the schedule generated by the breakpoint with the smallest maximum completion time as the final result.

[0117] Embodiment 2:

[0118] The job shop scheduling system based on bidirectional coupling scheduling decoding includes:

[0119] The information collection module is configured to: obtain workpiece information, machine information, process information and the processing machine corresponding to each workpiece during each process, form a list and generate a coded individual based on the process;

[0120] The breakpoint generation module is configured to: set a breakpoint after generating the first process of the code and divide it into two sections, take the earliest feasible start time of all machines obtained by forward active decoding of the first section of the code, take the maximum tail length of each workpiece and each machine obtained by reverse active decoding of the second section of the code, and add them based on the corresponding machine constraints and process constraints to obtain a complete scheduling instruction, and determine the maximum completion time and the corresponding breakpoint position in the instruction;

[0121] The breakpoint selection module is configured as follows: the breakpoint moves to the next process in sequence until the breakpoint is set before the last process, the maximum completion time of the instructions corresponding to all breakpoint positions is obtained, and the breakpoint corresponding to the minimum value of the maximum completion time is selected. The scheduling instruction generated by decoding the breakpoint is the final result.

[0122] 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.

Claims

1. Job shop scheduling method based on bidirectional coupling scheduling decoding, It is characterized in that The following steps are involved: Obtain workpiece information, machine information, process information and the processing machine corresponding to each workpiece during each process, form a list and generate a coded individual based on the process; After the first process of the generated code is generated, a breakpoint is set and the code is divided into two sections, the earliest feasible start time of all machines obtained by forward active decoding of the first section of the code, the maximum tail length of each workpiece and each machine obtained by reverse active decoding of the second section of the code, and the corresponding machine constraints and process constraints are added to obtain a complete scheduling instruction, and the maximum completion time and corresponding breakpoint position in the instruction are determined; The breakpoint is moved to the next process in sequence until the breakpoint is set before the last process, and the maximum completion time of the instructions corresponding to all breakpoint positions is obtained. The breakpoint corresponding to the minimum value of the maximum completion time is selected, and the scheduling instruction generated by the decoding of the breakpoint is the final result; The forward active decoding is specifically as follows: forward active decoding is performed on the generated code, and after each process is arranged and processed, the actual processing sequence of the arranged processing process and the earliest feasible start time of all current processes and all machines are recorded; The reverse active decoding is specifically as follows: reverse active decoding is performed on the generated code, the process route is reversed, the code is read from the back to the front for active decoding, the last process on the code is arranged to start processing at time zero on the corresponding machine, the penultimate process on the code is taken, and the maximum completion time is minimized and the process route constraints are considered, and it is inserted into the best feasible start time of the corresponding machine for processing, until all processes on the code are arranged to be processed at the best feasible time; The maximum tail length is specifically: during the reverse active decoding process, each time a process is scheduled to be processed, the processing order of the currently scheduled process and the earliest feasible start time of all current processes and all machines are recorded. After reversing the process processing order, the process processing order according to the normal process route is obtained. This earliest feasible start time is the maximum tail length of the process on each workpiece and each machine after the process route is normalized. The tail length is defined as the distance between the process start time and the maximum scheduled completion time; The addition of the machine constraints and process constraints is specifically as follows: based on the addition of the corresponding machine constraints and process constraints, a complete scheduling instruction is obtained, and the maximum completion time and the corresponding breakpoint position in the instruction are determined, specifically as follows: after the addition processing, two arrays of machine dimension and workpiece dimension are obtained, the maximum value of the two arrays is taken as the maximum completion time of the entire scheduling instruction, and this maximum completion time and the corresponding split position are recorded.

2. The job shop scheduling method based on bidirectional coupling scheduling decoding as claimed in claim 1, It is characterized in that Obtain workpiece information, machine information, process information and the corresponding processing machine for each workpiece in each process, form a list and generate process-based coding individuals, specifically: Obtain problem data, initialize the number of workpieces, the number of machines, the set of workpieces, the set of machines, the number of processes for each workpiece, the processing route for each workpiece, and the total number of processes; According to the total number of workpieces and the number of processes for each workpiece, process-based coded individuals are randomly generated.

3. The job shop scheduling method based on bidirectional coupling scheduling decoding as claimed in claim 2, It is characterized in that The processing route of each workpiece includes the processing order of each process, the processing time of each process, and the corresponding processing machine for each process.

4. The job shop scheduling method based on bidirectional coupling scheduling decoding as claimed in claim 1, It is characterized in that After the first process of generating the code, a breakpoint is set and the code is divided into two sections, namely, the division starts from the position after the first process. At this time, the first process is the first section, and all processes after the first process are the second section, and so on.

5. The job shop scheduling method based on bidirectional coupling scheduling decoding as claimed in claim 1, It is characterized in that The breakpoint is moved to the next process in sequence until the breakpoint is set before the last process. The maximum completion time of the instructions corresponding to all breakpoint positions is obtained, and the breakpoint corresponding to the minimum value of the maximum completion time is selected. The scheduling instruction generated by decoding the breakpoint is the final result; specifically: Move the split position backward by one process at a time to obtain the maximum completion time of the instructions corresponding to all breakpoint positions, until the split position moves to the last process of the coding sequence, and select the split position final-i corresponding to the smallest value of the maximum completion time; According to final-i, the workpiece processing sequence obtained by the forward active decoding and the reverse active decoding corresponding to the position is spliced ​​together to obtain the final process processing sequence and the start and completion time of each process, and the decoding is completed.

6. Job shop scheduling system based on bidirectional coupling scheduling decoding, It is characterized in that include: The information collection module is configured to: obtain workpiece information, machine information, process information and the processing machine corresponding to each workpiece during each process, form a list and generate a coded individual based on the process; The breakpoint generation module is configured to: set a breakpoint after generating the first process of the code and divide it into two sections, take the earliest feasible start time of all machines obtained by forward active decoding of the first section of the code, take the maximum tail length of each workpiece and each machine obtained by reverse active decoding of the second section of the code, and add them based on the corresponding machine constraints and process constraints to obtain a complete scheduling instruction, and determine the maximum completion time and the corresponding breakpoint position in the instruction; The breakpoint selection module is configured as follows: the breakpoint is moved to the next process in sequence until the breakpoint is set before the last process, the maximum completion time of the instructions corresponding to all breakpoint positions is obtained, and the breakpoint corresponding to the minimum value of the maximum completion time is selected. The scheduling instruction generated by decoding the breakpoint is the final result; The forward active decoding is specifically as follows: forward active decoding is performed on the generated code, and after each process is arranged and processed, the actual processing sequence of the arranged processing process and the earliest feasible start time of all current processes and all machines are recorded; The reverse active decoding is specifically as follows: reverse active decoding is performed on the generated code, the process route is reversed, the code is read from the back to the front for active decoding, the last process on the code is arranged to start processing at time zero on the corresponding machine, the penultimate process on the code is taken, and the maximum completion time is minimized and the process route constraints are considered, and it is inserted into the best feasible start time of the corresponding machine for processing, until all processes on the code are arranged to be processed at the best feasible time; The maximum tail length is specifically: during the reverse active decoding process, each time a process is scheduled to be processed, the processing order of the currently scheduled process and the earliest feasible start time of all current processes and all machines are recorded. After reversing the process processing order, the process processing order according to the normal process route is obtained. This earliest feasible start time is the maximum tail length of the process on each workpiece and each machine after the process route is normalized. The tail length is defined as the distance between the process start time and the maximum scheduled completion time; The addition of the machine constraints and process constraints is specifically as follows: based on the addition of the corresponding machine constraints and process constraints, a complete scheduling instruction is obtained, and the maximum completion time and the corresponding breakpoint position in the instruction are determined, specifically as follows: after the addition processing, two arrays of machine dimension and workpiece dimension are obtained, the maximum value of the two arrays is taken as the maximum completion time of the entire scheduling instruction, and this maximum completion time and the corresponding split position are recorded.