CN109784603B - Method for solving flexible job shop scheduling based on mixed whale swarm algorithm - Google Patents

Method for solving flexible job shop scheduling based on mixed whale swarm algorithm Download PDF

Info

Publication number
CN109784603B
CN109784603B CN201811359927.9A CN201811359927A CN109784603B CN 109784603 B CN109784603 B CN 109784603B CN 201811359927 A CN201811359927 A CN 201811359927A CN 109784603 B CN109784603 B CN 109784603B
Authority
CN
China
Prior art keywords
scheduling
egk
whale
value
scheme
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811359927.9A
Other languages
Chinese (zh)
Other versions
CN109784603A (en
Inventor
蔡宗琰
栾飞
李富康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Sailing Information Technology Co ltd
Original Assignee
Changan University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Changan University filed Critical Changan University
Priority to CN201811359927.9A priority Critical patent/CN109784603B/en
Publication of CN109784603A publication Critical patent/CN109784603A/en
Application granted granted Critical
Publication of CN109784603B publication Critical patent/CN109784603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method for solving flexible job shop scheduling based on a mixed whale swarm algorithm, which comprises the steps of firstly defining a coding mode of flexible job shop scheduling as two-section random key coding, and then carrying out mapping conversion by adopting a conversion mechanism; defining an adaptability function to solve the shortest total processing time as an optimization target; initializing parameters in scheduling problems of a flexible job shop and whale population by adopting a whale swarm algorithm, wherein the initialization is divided into a sequencing scheme of a random generation procedure and a genetic variation mode adopting an improved genetic algorithm to generate a better machine allocation scheme corresponding to the procedure sequencing scheme, so as to generate a better initial population; calculating the fitness value of each scheduling scheme, and searching and reserving the best scheduling solution; and finally, outputting an optimal scheduling solution and a corresponding fitness function value thereof, namely the optimal scheduling solution is obtained, and the problems of low solving precision and low convergence speed in the existing flexible job shop scheduling problem are solved.

Description

Method for solving flexible job shop scheduling based on mixed whale swarm algorithm
Technical Field
The invention belongs to the technical field of flexible job shop scheduling, and particularly relates to a method for solving flexible job shop scheduling based on a mixed whale swarm algorithm.
Background
The Flexible Job shop scheduling problem (FJSP) is used as an extension form of the traditional Job shop scheduling problem, so that the selection problem of a Flexible processing path of a workpiece is increased, the difficulty of solving the Flexible processing path is higher, the Flexible Job shop scheduling problem is closer to the actual production, and the Flexible Job shop scheduling problem has proved to be a combined optimization problem with NP difficult characteristics. For solving the problem, various intelligent algorithms are currently the main means of the intelligent algorithms, and are also becoming research hotspots in the current production scheduling field.
In the prior art, FJSP related to processing sequence and starting time designs a tabu search algorithm for field materialization and space diversification through learning of a separation graph model, and verifies the superiority of the algorithm through testing of standard calculation examples; the method for solving the high-efficiency sequencing of the minimized finishing time FJSP based on the discrete harmony search algorithm improves the mixed wolf optimization algorithm, improves the algorithm by three aspects of population dynamic evolution, population initialization by reverse learning, optimal individual variation and the like, simulates a standard example, and shows that the improved mixed wolf optimization algorithm can effectively jump out of a local optimal value, find a better solution and has stronger result robustness. The multi-constraint model and the single-layer genetic coding mode of the flexible job shop scheduling problem are constructed by applying the girth Boolean matrix in the multicolor set theory, so that the searching range of the GA algorithm is reduced, the space and time complexity of the chromosome is effectively reduced, and the speed and the precision of solving the FJSP problem by the algorithm are further improved. A hybrid gray wolf optimization algorithm (HGWO) adopts a two-section individual coding mode to realize continuous coding of discrete scheduling solutions, and utilizes a variable neighborhood search strategy to strengthen local search capability of the algorithm, meanwhile, cross and mutation operations of a genetic algorithm are introduced to strengthen diversity of a population, and simulation tests of standard examples of scheduling problems of a flexible job shop show that the algorithm can effectively avoid premature and improve solving speed and precision. The improved Whale Optimization Algorithm (WOA) based on the quantum computing theory is applied to solve a job shop scheduling problem, convergence and correctness of the algorithm are proved, the job shop scheduling problem belongs to a discrete scheduling problem, the improved whale algorithm mainly realizes solving and optimizing by carrying out iterative operation on continuous whale individual position vectors, and a specific conversion process between the two is not given in the prior art. Therefore, the application of new algorithms to solve the production scheduling problem remains one of the hot spots of research in the manufacturing field.
WSA is a novel meta-heuristic algorithm which is developed by the guidance of ultrasonic mutual communication among individuals in the process of whale predation. WSA proves the superiority of solving the combined optimization problem in a special iteration mode. However, to solve the discrete problem, firstly, the problem solution and the inter-conversion problem between the individual position vectors are solved, so that the algorithm is applied to solve the FJSP classical combination optimization problem on the basis of introducing a classical conversion mechanism to solve the inter-conversion problem between the scheduling problem solution and the individual position vectors, and the superiority of the algorithm is verified through embodiment solution and comparative analysis, so that a new way for solving the FJSP is explored.
Disclosure of Invention
The invention aims to provide a method for solving flexible job shop scheduling based on a mixed whale swarm algorithm, which solves the problems of low solving precision and low convergence speed in the flexible job shop scheduling problem in the prior art.
The technical scheme adopted by the invention is that the method for solving the scheduling of the flexible job shop based on the mixed whale swarm algorithm is implemented according to the following steps:
step 1, defining a coding mode of flexible job shop scheduling as two-section random key coding, and then mapping and converting by adopting a conversion mechanism;
step 2, defining a fitness function to solve the shortest total processing time as an optimization target;
step 3, initializing parameters in scheduling problems of flexible job shops and whale population by adopting whale swarm algorithm, and firstly initializing upper and lower bounds epsilon and sound source intensity rho of individual position variable elements in whale swarm algorithm 0 Setting parameters of the current iteration times t and the maximum iteration times M; the population initialization is carried out in two steps, wherein the first step is to randomly generate a sequencing scheme of a working procedure, and the second step is to generate a better machine corresponding to the working procedure sequencing scheme by adopting a genetic variation mode of an improved genetic algorithmThe distribution scheme is adopted, so that a better initial population is generated;
step 4, calculating the adaptability value of each scheduling scheme, and searching and reserving the best scheduling solution S *
Step 5, outputting an optimal scheduling solution S * And the corresponding fitness function value, S * The optimal scheduling scheme is obtained.
The present invention is also characterized in that,
the conversion mechanism in the step 1 is specifically implemented according to the following steps:
a. conversion of scheduling scheme to individual location:
i) Machine selection: converting sequence numbers in the process selectable machine set into individual position vector element values according to the following steps:
x(i)=[2m/(s(i)-1)](n(i)-1)-m,s(i)≠1
wherein: x (i) represents the i-th element of the individual position vector; s (i) represents the number of machines which can be selected by the procedure corresponding to the element i; n (i) ∈ [1, s (i) ] represents the number of the selected machine within the set of selectable machines. If s (i) =1, x (i) takes any value within [ -m, m ].
ii) sequencing the working procedures: firstly, generating a group of random numbers in [ -m, m ], assigning a unique ROV value for each random number according to an ascending order ROV rule, enabling each ROV value to correspond to a procedure, rearranging the ROV values according to the coding sequence of the procedure, and enabling the random number sequence corresponding to the rearranged ROV values to be the value of each element in the individual position vector.
b. Conversion of individual location vectors to scheduling scheme:
i) Machine selection: the inverse operation of the formula in the conversion of the scheduling scheme to individual positions in said a is performed, whereby the number of machines is obtained:
ii) sequencing the working procedures: firstly, enabling each element number to correspond to a unique sequence and position element in the code, then carrying out ascending arrangement on the position elements according to an ROV rule, and constructing a sequence ordering scheme by enabling the ROV value to correspond to the element number;
the step 2 is specifically implemented according to the following steps:
step 2.1, a problem model FJSP of flexible job shop scheduling is described as follows:
assuming that M is the number of processing devices, N is the number of workpieces to be processed, P is the number of procedures, and I is the set of all the devices; i eg A set of available equipment representing the g-th pass of workpiece e,J e the number of steps of the workpiece e, x is the processing sequence of all the workpieces, S egk Indicating the start time of the processing of the g-th procedure of the workpiece e on the equipment k; e (E) egk The end time of the processing of the g-th procedure of the workpiece e on the equipment k; t (T) egk For the duration of the process of the g-th pass of the workpiece e on the apparatus k, and k.epsilon.I eg Then there is E egk =S egk +T egk ;E p Indicating the finishing time of the final process; MS represents the final finishing time of all the workpieces;
when the j-th process of the workpiece i and the g-th process of the workpiece e are performed on the same equipment, if the j-th process is processed before the g-th process, Q ijeg =1, otherwise Q ijeg =0; if the g-th step of the workpiece e is performed on the machine tool k, X egk =1, otherwise X egk =0;
If a certain FJSP has S possible processing sequences, processing sequences with the shortest total operation time are required, and the operation time corresponding to each processing sequence x (x is { 1.,. The S }) is firstly obtained; obviously, the finishing time of the last machining process in sequence x is the finishing time of all the workpieces:
MS=E p (1)
step 2.2, setting an objective function F (x) as:
F(x)=min( x MS)=min((E p ) x ) (2)
wherein x=1, …, S; q (Q) ijeg =1;
S.T.S egk -E e(g-1)n ≥0 (3)
e=1,…,N;g=1,…,J e ;X egk =1,X e(g-1)n =1
S egk -E ijk ≥0 (4)
e=1,…,N;g=1,…,J e ;X ijk =1,X egk =1,Q ijeg =1。
Step 4 is specifically implemented according to the following steps:
step 4.1, performing iterative operation by using the formula (5), which is specifically as follows
Wherein:and->Respectively refers to the iterative positions of the ith element of X in the steps t and t+1;
refers to the position of the ith element of Y in t steps of iteration;
d X,Y refers to the distance between X and Y;
representing 0 to->The random number generated in the process, wherein the value of the attenuation coefficient eta is related to the dimension, the definition domain and the peak distribution characteristic of the objective function;
step 4.2, converting the scheduling solution into whale by using a conversion mechanismIndividual position vectors, and preserve S * Corresponding individual X *
Step 4.3, performing iterative operation by using a formula (5), judging whether the termination condition of the algorithm is met, if not, making t=t+1, and repeatedly executing the steps 4.3.1-4.3.7; if yes, executing step 5, specifically as follows:
step 4.3.1, defining a distance calculating method between two whales;
step 4.3.2 for each whaleSearching for a preferred and nearest individual; if not, remain stationary;
step 4.3.3, finding all fitness values larger thanIndividuals of (E) such as->
Step 4.3.4, calculating each fitness value to be larger thanIs->And->Distance D between 1 ,D 2 ,D 3
Step 4.3.5, pair D 1 ,D 2 ,D 3 Sorting, selecting the individual corresponding to the minimum valueNamely +.>Is the most preferred and recent individual of (a);
step 4.3.6, willAnd->The values of (1) and the initialized parameters bring into the iterative formula (5) to update each individual position vector +.>
Step 4.3.7, executing the conversion mode from the individual position vector to the scheduling scheme, generating the scheduling schemes corresponding to all the individuals after updating, and returning to step 4.2.
ρ in step 4.1 0 Take the empirical value 2.
In step 4.1, the initial value of the attenuation coefficient η is determined according to the following method:
first, let the
I.e.
d max Refers to the maximum distance possible between two whales in the search area,
where n is the dimension of the objective function,and->Represents the lower and upper limits of the ith variable, respectively, so η= -20·ln (0.25)/d max
The method for solving the flexible job shop scheduling based on the mixed whale swarm algorithm has the advantages that the method realizes the mutual conversion between the FJSP scheduling solution and the whale individual position vector through a conversion mechanism, and further performs iterative solution by utilizing the strong local and global searching capability of WSA and the advantages in the aspect of maintaining population diversity so as to improve the solving precision and speed of FJSP.
Drawings
FIG. 1 is a flow chart of solving FJSP by using a whale swarm algorithm in a method for solving flexible job shop scheduling based on a mixed whale swarm algorithm;
FIG. 2 is a graph showing the convergence of WSA evolution of example 1 in a method for solving a flexible job shop schedule based on a hybrid whale swarm algorithm of the present invention;
FIG. 3 is a Gantt chart of scheduling results of example 1 in a method for solving flexible job shop scheduling based on a hybrid whale swarm algorithm of the present invention;
FIG. 4 is a graph showing the convergence of WSA evolution of example 2 of a method for solving a flexible job shop schedule based on a hybrid whale swarm algorithm of the present invention;
FIG. 5 is an example 3WSA evolution convergence curve of a method of the present invention for solving flexible job shop schedules based on a hybrid whale swarm algorithm.
Detailed Description
The invention will be described in detail below with reference to the drawings and the detailed description.
The invention discloses a method for solving flexible job shop scheduling based on a mixed whale swarm algorithm, which is implemented according to the following steps as shown in figure 1:
step 1, defining a coding mode of flexible job shop scheduling as two-section random key coding, and then carrying out mapping conversion by adopting a conversion mechanism, wherein the conversion mechanism is implemented specifically according to the following steps:
a. conversion of scheduling scheme to individual location:
i) Machine selection: converting sequence numbers in the process selectable machine set into individual position vector element values according to the following steps:
x(i)=[2m/(s(i)-1)](n(i)-1)-m,s(i)≠1
wherein: x (i) represents the i-th element of the individual position vector; s (i) represents the number of machines which can be selected by the procedure corresponding to the element i; n (i) ∈ [1, s (i) ] represents the number of the selected machine within the set of selectable machines. If s (i) =1, x (i) takes any value within [ -m, m ].
ii) sequencing the working procedures: firstly, generating a group of random numbers in [ -m, m ], assigning a unique ROV value for each random number according to an ascending order ROV rule, enabling each ROV value to correspond to a procedure, rearranging the ROV values according to the coding sequence of the procedure, and enabling the random number sequence corresponding to the rearranged ROV values to be the value of each element in the individual position vector.
b. Conversion of individual location vectors to scheduling scheme:
i) Machine selection: the inverse operation of the formula in the conversion of the scheduling scheme to individual positions in said a is performed, whereby the number of machines is obtained:
ii) sequencing the working procedures: firstly, enabling each element number to correspond to a unique sequence and position element in the code, then carrying out ascending arrangement on the position elements according to an ROV rule, and constructing a sequence ordering scheme by enabling the ROV value to correspond to the element number;
step 2, defining a fitness function to solve the shortest total processing time as an optimization target, and specifically implementing the method according to the following steps:
step 2.1, a problem model FJSP of flexible job shop scheduling is described as follows:
assuming that M is the number of processing devices, N is the number of workpieces to be processed, P is the number of procedures, and I is the set of all the devices; i eg A set of available equipment representing the g-th pass of workpiece e,J e the number of steps of the workpiece e, x is the processing sequence of all the workpieces, S egk The g-th procedure of the workpiece e is shown in the equipment kThe starting time of the upper machining; e (E) egk The end time of the processing of the g-th procedure of the workpiece e on the equipment k; t (T) egk For the duration of the process of the g-th pass of the workpiece e on the apparatus k, and k.epsilon.I eg Then there is E egk =S egk +T egk ;E p Indicating the finishing time of the final process; MS represents the final finishing time of all the workpieces;
when the j-th process of the workpiece i and the g-th process of the workpiece e are performed on the same equipment, if the j-th process is processed before the g-th process, Q ijeg =1, otherwise Q ijeg =0; if the g-th step of the workpiece e is performed on the machine tool k, X egk =1, otherwise X egk =0;
If a certain FJSP has S possible processing sequences, processing sequences with the shortest total operation time are required, and the operation time corresponding to each processing sequence x (x is { 1.,. The S }) is firstly obtained; obviously, the finishing time of the last machining process in sequence x is the finishing time of all the workpieces:
MS=E p (1)
step 2.2, setting an objective function F (x) as:
F(x)=min( x MS)=min((E p ) x ) (2)
wherein x=1, …, S; q (Q) ijeg =1;
S.T.S egk -E e(g-1)n ≥0 (3)
e=1,…,N;g=1,…,J e ;X egk =1,X e(g-1)n =1
S egk -E ijk ≥0 (4)
e=1,…,N;g=1,…,J e ;X ijk =1,X egk =1,Q ijeg =1;
Step 3, initializing parameters in scheduling problems of flexible job shops and whale population by adopting whale swarm algorithm, and firstly initializing upper and lower bounds epsilon and sound source intensity rho of individual position variable elements in whale swarm algorithm 0 Current iteration numbert, setting a maximum iteration number M parameter; the population initialization is carried out in two steps, wherein the first step is to randomly generate a sequencing scheme of a working procedure, and the second step is to generate a better machine allocation scheme corresponding to the working procedure sequencing scheme by adopting a genetic variation mode of an improved genetic algorithm, so as to generate a better initial population;
step 4, calculating the adaptability value of each scheduling scheme, and searching and reserving the best scheduling solution S * The method is implemented according to the following steps:
step 4.1, performing iterative operation by using the formula (5), which is specifically as follows
Wherein:and->Respectively refers to the iterative positions of the ith element of X in the steps t and t+1;
refers to the position of the ith element of Y in t steps of iteration;
d X,Y refers to the distance between X and Y;
representing 0 to->The random number generated in the process, wherein the value of the attenuation coefficient eta is related to the dimension, the definition domain and the peak distribution characteristic of the objective function;
step 4.2, converting the scheduling solution into whale individual position vectors by using a conversion mechanism, and reserving S * Corresponding individual X *
Step 4.3, performing iterative operation by using a formula (5), judging whether the termination condition of the algorithm is met, if not, making t=t+1, and repeatedly executing the steps 4.3.1-4.3.7; if yes, executing step 5, specifically as follows:
step 4.3.1, defining a distance calculating method between two whales;
step 4.3.2 for each whaleSearching for a preferred and nearest individual; if not, remain stationary;
step 4.3.3, finding all fitness values larger thanIndividuals of (E) such as->
Step 4.3.4, calculating each fitness value to be larger thanIs->And->Distance D between 1 ,D 2 ,D 3
Step 4.3.5, pair D 1 ,D 2 ,D 3 Sorting, selecting the individual corresponding to the minimum valueNamely +.>Is the most preferred and recent individual of (a);
step 4.3.6, willAnd->The values of (1) and the initialized parameters bring into the iterative formula (5) to update each individual position vector +.>
Step 4.3.7, executing a conversion mode from the individual position vector to the scheduling scheme, generating the scheduling schemes corresponding to all the individuals after updating, and returning to step 4.2;
ρ in step 4.1 0 Taking an experience value of 2;
in step 4.1, the initial value of the attenuation coefficient η is determined according to the following method:
first, let the
I.e.
d max Refers to the maximum distance possible between two whales in the search area,
where n is the dimension of the objective function,and->Represents the lower and upper limits of the ith variable, respectively, so η= -20·ln (0.25)/d max
Step 5, outputting an optimal scheduling solution S * And the corresponding fitness function value, S * I.e. the optimal adjustmentDegree scheme.
In order to verify the feasibility of WSA for solving the scheduling problem of the flexible job shop, the simulation experiment is respectively carried out on three embodiments by using the method, and the comparison analysis is carried out on other intelligent algorithms. The simulation environment is as follows: MATILAB2016a is used in the environment of CPU main frequency 1.9GHz, AMD A10-7300 Radeon R6 processor, windows 10 operating system.
Example 1
Example 1 is a 3 x 6 FJSP with processing task information as shown in table 1, parameters set for whale swarm algorithm as follows: population size 50, whale individual position vector dimension 30, ρ 0 Set to 2, d max =32.86, the attenuation coefficient η is taken to be 0, and the maximum number of iterations M is 400:
table 1 example 1 processing task information table
Encoding machine allocation and sequence ordering using random key based two-segment encoding, the length of individual position vector is 30, and each element is [ -3,3]The random number of 30 bits is generated by a computer and stored in a certain order as shown in Table 2, wherein OP ij The j-th step of representing the workpiece i:
TABLE 2 Individual position vector diagrams
For example 1, the WSA evolution convergence curve obtained by solving the method is shown in fig. 2, and fig. 2 shows that the whale shoal algorithm can converge from 144 to 134 faster at the 35 th generation, and the corresponding scheduling result Gantt chart is shown in fig. 3.
Example 2
To further verify the feasibility and superiority of the algorithm, document [1 ] was chosen](Fu Weiping, liu)Winter plum, laichun Wang improved genetic algorithm based on polychromatic set to solve the flexible scheduling problem of multiple varieties [ J ]]Simulation was performed in example 2 of a computer integrated manufacturing system 2011,17 (05): 1004-1010., see document [1 ] for specific process information]Parameters of whale swarm algorithm were set as follows: population size 100, whale individual position vector dimension 108, ρ in example 1 0 Set to 2, d max = 104.96, the attenuation coefficient η is taken to be 0, and the maximum number of iterations M is 200. The WSA evolutionary convergence curve is shown in fig. 4, the optimal solution is 121 minutes, and comparison between the WSA evolutionary convergence curve of fig. 4 and the evolutionary curve of example 2 shows that the whale swarm algorithm can converge from 150 to 121 quickly at 32 generations, and compared with the solution, the solution speed is obviously higher.
Example 3
To more fully compare and verify the algorithm effect, 8×8 embodiments in the Kacem reference problem of flexible job scheduling are selected for solving, and 20 times of calculation are performed. Parameters of whale swarm algorithm were set as follows: the population scale is 100, the whale individual position vector dimension is 54, ρ 0 Set to 2, d max = 117.57, the attenuation coefficient η is taken to be 0, the maximum iteration number M is 200, and the WSA evolution convergence curve of example 3 is shown in fig. 5. Table 3 compares the results obtained with the results obtained by the solution of the evolutionary algorithm, the master-slave genetic algorithm, the multi-order genetic algorithm, the ant colony algorithm:
table 3 comparison of the results of the solutions of the algorithms of the Kacem8×8 reference problem
Method name Optimum value Figure of merit Average convergence algebra Average convergence time/min
Evolutionary algorithm 15 1
Master-slave genetic algorithm 19 2 200 41.8
Multi-stage algorithm 15
Ant colony genetic algorithm 14 2 53 8.7
Whale shoal algorithm 14 3 35 7.6
Aiming at the defects of solving precision and speed of the traditional algorithm in solving the FJSP, the invention utilizes a new meta-heuristic algorithm WSA to solve the FJSP, establishes the mutual mapping between a scheduling problem solution and whale individual position vectors by adopting a two-section coding mode and introducing a conversion mechanism, then solves the FJSP by utilizing the WSA, and a simulation embodiment result shows that the WSA has certain superiority in solving the FJSP.

Claims (2)

1. The method for solving the flexible job shop scheduling based on the mixed whale swarm algorithm is characterized by comprising the following steps:
step 1, defining a coding mode of flexible job shop scheduling as two-section random key coding, and then mapping and converting by adopting a conversion mechanism;
the conversion mechanism in the step 1 is specifically implemented according to the following steps:
a. conversion of scheduling scheme to individual location:
i) Machine selection: converting sequence numbers in the process selectable machine set into individual position vector element values according to the following steps:
x(i)=[2m/(s(i)-1)](n(i)-1)-m,s(i)≠1
wherein: x (i) represents the i-th element of the individual position vector; s (i) represents the number of machines which can be selected by the procedure corresponding to the element i; n (i) ∈ [1, s (i) ] represents the number of the selected machine in the set of selectable machines, and if s (i) =1, x (i) is arbitrarily valued within [ -m, m ];
ii) sequencing the working procedures: firstly, generating a group of random numbers in [ -m, m ], assigning a unique ROV value for each random number according to an ascending order ROV rule, enabling each ROV value to correspond to a procedure, rearranging the ROV values according to the coding sequence of the procedure, and enabling the random number sequence corresponding to the rearranged ROV values to be the value of each element in the individual position vector;
b. conversion of individual location vectors to scheduling scheme:
i) Machine selection: the inverse operation of the formula in the conversion of the scheduling scheme to individual positions in said a is performed, whereby the number of machines is obtained:
ii) sequencing the working procedures: firstly, enabling each element number to correspond to a unique sequence and position element in the code, then carrying out ascending arrangement on the position elements according to an ROV rule, and constructing a sequence ordering scheme by enabling the ROV value to correspond to the element number;
step 2, defining a fitness function to solve the shortest total processing time as an optimization target;
the step 2 is specifically implemented according to the following steps:
step 2.1, a problem model FJSP of flexible job shop scheduling is described as follows:
assuming that M is the number of processing devices, N is the number of workpieces to be processed, P is the number of procedures, and I is the set of all the devices; i eg A set of available equipment representing the g-th pass of workpiece e,J e the number of steps of the workpiece e, x is the processing sequence of all the workpieces, S egk Indicating the start time of the processing of the g-th procedure of the workpiece e on the equipment k; e (E) egk The end time of the processing of the g-th procedure of the workpiece e on the equipment k; t (T) egk For the duration of the process of the g-th pass of the workpiece e on the apparatus k, and k.epsilon.I eg Then there is E egk =S egk +T egk ;E p Indicating the finishing time of the final process; h represents the final finishing time of all the workpieces;
when the j-th process of the workpiece i and the g-th process of the workpiece e are performed on the same equipment, if the j-th process is processed before the g-th process, Q ijeg =1, otherwise Q ijeg =0; if the g-th step of the workpiece e is performed on the machine tool k, X egk =1, otherwise X egk =0;
If a certain FJSP has S possible machining sequences, a machining sequence with the shortest total working time is required, working time corresponding to each machining sequence x is firstly obtained, and x is { 1..once, S }; obviously, the finishing time of the last machining process in sequence x is the finishing time of all the workpieces:
H=E p (1)
step 2.2, setting an objective function F (x) as:
F(x)=min(H)=min((E p ) x ) (2)
wherein x=1, …, S; q (Q) ijeg =1;
S.T. S egk -E e(g-1)n ≥0 (3)
e=1,…,N;g=1,…,J e ;X egk =1,X e(g-1)n =1
S egk -E ijk ≥0 (4)
e=1,…,N;g=1,…,J e ;X ijk =1,X egk =1,Q ijeg =1;
Step 3, initializing parameters in scheduling problems of flexible job shops and whale population by adopting whale swarm algorithm, and firstly initializing upper and lower bounds epsilon and sound source intensity rho of individual position variable elements in whale swarm algorithm 0 Setting parameters of the current iteration times t and the maximum iteration times M; the population initialization is carried out in two steps, wherein the first step is to randomly generate a sequencing scheme of a working procedure, and the second step is to generate a better machine allocation scheme corresponding to the working procedure sequencing scheme by adopting a genetic variation mode of an improved genetic algorithm, so as to generate a better initial population;
step 4, calculating the adaptability value of each scheduling scheme, and searching and reserving an optimal scheduling solution S *
The step 4 is specifically implemented according to the following steps:
step 4.1, performing iterative operation by using the formula (5), which is specifically as follows
Wherein:and->Respectively refers to the iterative positions of the ith element of X in the steps t and t+1;
refers to the position of the ith element of Y in t steps of iteration;
d X,Y refers to the distance between X and Y;
representing 0 to->The random number generated in the process, wherein the value of the attenuation coefficient eta is related to the dimension, the definition domain and the peak distribution characteristic of the objective function;
in the step 4.1, the initial value of the attenuation coefficient η is determined according to the following method:
first, let the
I.e.
d max Refers to the maximum distance possible between two whales in the search area,
where n is the dimension of the objective function,and->Represents the lower and upper limits of the ith variable, respectively, so η= -20·ln (0.25)/d max
Step 4.2, converting the scheduling solution into whale individual position vectors by using a conversion mechanism, and reserving S * Corresponding individual X *
Step 4.3, performing iterative operation by using a formula (5), judging whether the termination condition of the algorithm is met, if not, making t=t+1, and repeatedly executing the steps 4.3.1-4.3.7; if yes, executing step 5, specifically as follows:
step 4.3.1, defining a distance calculating method between two whales;
step 4.3.2 for each whaleSearching for a preferred and nearest individual; if not, remain stationary;
step 4.3.3, finding all fitness values larger thanIndividuals of (E) such as->
Step 4.3.4, calculating each fitness value to be larger thanIs->And->Distance D between 1 ,D 2 ,D 3
Step 4.3.5, pair D 1 ,D 2 ,D 3 Sorting, selecting the smallest one as D 3 D is then 3 Corresponding individualsNamely +.>Is "preferred and most recent" individuals;
step 4.3.6, willAnd->The values of (1) and the initialized parameters bring into the iterative formula (5) to update each individual position vector +.>
Step 4.3.7, executing a conversion mode from the individual position vector to the scheduling scheme, generating the scheduling schemes corresponding to all the individuals after updating, and returning to step 4.2;
step 5, outputting an optimal scheduling solution S * And the corresponding fitness function value, S * The optimal scheduling scheme is obtained.
2. The method for solving flexible job shop scheduling according to claim 1, wherein ρ in step 4.1 is 0 Take the empirical value 2.
CN201811359927.9A 2018-11-15 2018-11-15 Method for solving flexible job shop scheduling based on mixed whale swarm algorithm Active CN109784603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811359927.9A CN109784603B (en) 2018-11-15 2018-11-15 Method for solving flexible job shop scheduling based on mixed whale swarm algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811359927.9A CN109784603B (en) 2018-11-15 2018-11-15 Method for solving flexible job shop scheduling based on mixed whale swarm algorithm

Publications (2)

Publication Number Publication Date
CN109784603A CN109784603A (en) 2019-05-21
CN109784603B true CN109784603B (en) 2024-02-02

Family

ID=66496457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811359927.9A Active CN109784603B (en) 2018-11-15 2018-11-15 Method for solving flexible job shop scheduling based on mixed whale swarm algorithm

Country Status (1)

Country Link
CN (1) CN109784603B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110490372B (en) * 2019-07-26 2022-03-01 华中农业大学 Mixed distributed evolution method for solving large-scale workshop operation scheduling problem
CN110425084B (en) * 2019-08-09 2020-09-22 湘电风能有限公司 Whale swarm PID (proportion integration differentiation) independent pitch control method of large wind turbine generator
CN110543151B (en) * 2019-08-12 2021-04-09 科大智能物联技术有限公司 Method for solving workshop energy-saving scheduling problem based on improved NSGA-II
CN110782085B (en) * 2019-10-23 2022-03-29 武汉晨曦芸峰科技有限公司 Casting production scheduling method and system
CN110632907B (en) * 2019-10-30 2020-11-20 山东师范大学 Scheduling optimization method and system for distributed assembly type replacement flow shop
CN111598297B (en) * 2020-04-15 2023-04-07 浙江工业大学 Flexible job shop scheduling machine selection method based on residual process maximum value optimization
CN111967654A (en) * 2020-07-27 2020-11-20 西安工程大学 Method for solving flexible job shop scheduling based on hybrid genetic algorithm
CN112016746B (en) * 2020-08-26 2021-12-17 广东电网有限责任公司广州供电局 Dispatching method and device for power generation car, computer equipment and storage medium
CN112783172B (en) * 2020-12-31 2023-03-31 重庆大学 AGV and machine integrated scheduling method based on discrete whale optimization algorithm
CN113408951B (en) * 2021-07-16 2022-08-12 山东大学 Optimal flexible scheduling method and system based on dynamic information accumulated lion group
CN114861971A (en) * 2022-03-23 2022-08-05 合肥工业大学 Hybrid vehicle path optimization method and system with minimized cost as objective
CN114819370A (en) * 2022-05-09 2022-07-29 国网浙江省电力有限公司 Improved hybrid algorithm-based electric vehicle charging station location and volume selection method and device
CN114692345A (en) * 2022-06-02 2022-07-01 河南科技学院 Intelligent scheduling method for crane boom production

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104880949A (en) * 2015-05-27 2015-09-02 江南大学 Method of acquiring workpiece-processing optimal scheduling based on improved chicken flock algorithm
CN105096004A (en) * 2015-08-18 2015-11-25 中水东北勘测设计研究有限责任公司 Real-time scheduling method for reservoir group water supply and transfer system
CN105929690A (en) * 2016-04-29 2016-09-07 南京信息工程大学 Flexible workshop robustness scheduling method based on decomposition multi-target evolution algorithm
WO2016169286A1 (en) * 2015-04-20 2016-10-27 海安县申菱电器制造有限公司 Workshop layout method for discrete manufacturing system
CN106610654A (en) * 2015-12-29 2017-05-03 四川用联信息技术有限公司 Improved genetic algorithm for flexible workshop scheduling
CN108776461A (en) * 2018-05-21 2018-11-09 北京石油化工学院 A kind of flexible job shop scheduling method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070127527A1 (en) * 2005-12-06 2007-06-07 International Business Machines Corporation Methods and apparatus for implementing a flexible multi-user advance reservation system where reservation requests are specified in terms of multiple options and where each option has an associated business value
US10417614B2 (en) * 2016-05-06 2019-09-17 General Electric Company Controlling aircraft operations and aircraft engine components assignment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016169286A1 (en) * 2015-04-20 2016-10-27 海安县申菱电器制造有限公司 Workshop layout method for discrete manufacturing system
CN104880949A (en) * 2015-05-27 2015-09-02 江南大学 Method of acquiring workpiece-processing optimal scheduling based on improved chicken flock algorithm
CN105096004A (en) * 2015-08-18 2015-11-25 中水东北勘测设计研究有限责任公司 Real-time scheduling method for reservoir group water supply and transfer system
CN106610654A (en) * 2015-12-29 2017-05-03 四川用联信息技术有限公司 Improved genetic algorithm for flexible workshop scheduling
CN105929690A (en) * 2016-04-29 2016-09-07 南京信息工程大学 Flexible workshop robustness scheduling method based on decomposition multi-target evolution algorithm
CN108776461A (en) * 2018-05-21 2018-11-09 北京石油化工学院 A kind of flexible job shop scheduling method and system

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
A hybrid harmony search algorithm for the flexible job shop scheduling problem;Yuan Yuan 等;《Applied Soft Computing》;20131231;第13卷(第07期);第3259-3272页 *
具有行为效应的含AGV柔性车间调度研究;徐云琴 等;《计算机应用研究》;20180709;第1-11页 *
改进鲸鱼群算法及其在炼钢连铸调度中的应用;曾冰 等;《郑州大学学报(工学版)》;20180814;第39卷(第06期);第14-22、35页 *
混合灰狼优化算法求解柔性作业车间调度问题;姜天华;《控制与决策》;20170913;第1-7页 *

Also Published As

Publication number Publication date
CN109784603A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
CN109784603B (en) Method for solving flexible job shop scheduling based on mixed whale swarm algorithm
CN109886589B (en) Method for solving low-carbon workshop scheduling based on improved whale optimization algorithm
CN109886588B (en) Method for solving flexible job shop scheduling based on improved whale algorithm
CN110796355B (en) Flexible job shop scheduling method based on dynamic decoding mechanism
CN112700060B (en) Station terminal load prediction method and prediction device
CN110543151A (en) Method for solving workshop energy-saving scheduling problem based on improved NSGA-II
CN112381343B (en) Flexible job shop scheduling method based on genetic-backbone particle swarm hybrid algorithm
CN111967654A (en) Method for solving flexible job shop scheduling based on hybrid genetic algorithm
CN111369000A (en) High-dimensional multi-target evolution method based on decomposition
CN108038538A (en) Multi-objective Evolutionary Algorithm based on intensified learning
CN107798413B (en) Method for optimizing fast-forwarding path in leather multi-contour machining
CN115034615A (en) Method for improving feature selection efficiency in genetic programming scheduling rule for job shop scheduling
CN116880424A (en) Multi-robot scheduling method and device based on multi-objective optimization
CN116985146B (en) Robot parallel disassembly planning method for retired electronic products
CN114819728A (en) Flexible workshop production scheduling method capable of self-adaptive local search
CN114648232A (en) Cloud resource flexible job scheduling method based on improved chimpanzee optimization algorithm
Ma et al. A memetic algorithm based on immune multi-objective optimization for flexible job-shop scheduling problems
CN114021934A (en) Method for solving workshop energy-saving scheduling problem based on improved SPEA2
CN110989538B (en) Closed-loop scheduling optimization method for complex production process
CN117521788A (en) Multi-mode and multi-target evolution method with double reference vector guidance
CN113743566A (en) Product disassembly sequence optimization method and device, computer equipment and storage medium
CN110516807B (en) Semiconductor product yield extreme value calculating method and extreme value calculating system thereof
CN117726119A (en) Graph bionic learning method for solving distributed mixed flow shop group scheduling
CN117217487A (en) Resource scheduling method based on improved multi-neighborhood local enhancement search algorithm
CN114089699B (en) Method for solving mixed flow shop scheduling based on cell type membrane calculation model

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240514

Address after: 215500 Building 1, No. 2, Jianye Road, high tech Industrial Park, Changshu Economic and Technological Development Zone, Suzhou City, Jiangsu Province

Patentee after: Suzhou Sailing Information Technology Co.,Ltd.

Country or region after: China

Address before: 710064 central section of south two ring road, Yanta District, Xi'an, Shaanxi

Patentee before: CHANG'AN University

Country or region before: China

TR01 Transfer of patent right