Wind power assembly workshop multi-objective optimization scheduling method based on reinforcement learning
Through the combination of reinforcement learning and cyber-physical systems, the multi-objective scheduling problem of wind power assembly workshops in a dynamic environment is solved, improving production efficiency and equipment utilization, and adapting to complex and changing assembly requirements.
Patent Information
- Application Number
- CN202410707328.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-09-24
AI Technical Summary
Existing technology is difficult to effectively solve the multi-objective scheduling problem of wind power assembly workshops in a dynamic environment, resulting in low production efficiency and low equipment utilization. Moreover, traditional algorithms are difficult to optimize the assembly sequence in real time in the face of complex and changing production environments.
A multi-objective optimization scheduling method based on reinforcement learning is used to extract signal features by establishing a Markov decision process model and stacked autoencoders, combined with the extended Kalman filter algorithm to achieve the integration of cyber-physical systems, and design a multi-agent collaborative scheduling algorithm to optimize Production process in the assembly shop.
It achieves multi-objective optimal scheduling of wind power assembly workshops in a dynamic environment, improves production efficiency and equipment utilization, ensures the stability and flexibility of the assembly process, and adapts to personalized customization needs.
Smart Images

Figure CN118690897A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of power system planning and relates to a multi-objective optimization scheduling method for a wind power assembly workshop based on reinforcement learning. Background Art
[0002] For wind power assembly companies, the previous assembly plans were mostly formulated by engineers based on experience, by analyzing the positional relationship between parts in assembly drawings and technical documents. Since wind power equipment itself has a complex structure, a large number of parts, and flexible and changeable market demand leads to frequent changes in production plans, it is difficult to meet the needs of modern production methods to simply rely on engineers to determine the assembly sequence based on experience. Therefore, the automated generation and optimization of assembly sequences are very important for improving the competitiveness of wind power equipment manufacturers.
[0003] With the increasingly fierce market competition and the sharp increase in customer-centric customized products, the multi-variety and small-batch production model has gradually become one of the mainstream production models. In this case, the product is often composed of multiple modular parts. After each part is processed in the flexible workshop, it is transported to the assembly workshop to be assembled into a finished product to meet the personalized customization needs. That is, the assembly workshop is more in line with the current production environment.
[0004] The common method to solve the job shop scheduling problem is to abstract the production and manufacturing workshop into a static environment with known production and processing properties. The production and processing process of the job only needs to follow the established plan to complete the processing task. Many scholars have focused on the problem of assembly job shop scheduling in a static environment and have achieved rich results. In the early days, the optimal assembly sequence was mainly calculated with the help of precise algorithms. Although the precise algorithm can obtain the optimal assembly sequence, it is prone to combinatorial explosion when the number of parts increases. With the deepening of research, various intelligent optimization algorithms have emerged, which can calculate the optimal solution or approximate optimal solution within a controllable time, such as genetic algorithm, ant colony algorithm, particle swarm algorithm, simulated annealing algorithm, etc.
[0005] However, the actual manufacturing environment always has unforeseen emergencies such as machine failure, urgent order insertion, and changes in processing start time. Therefore, in a static environment, the application of scheduling systems is limited to a certain extent. Therefore, academia and industry urgently need to develop a real-time, online scheduling method to deal with the dynamic job shop scheduling problem (DJSSP), so that the company's production workshop can operate more efficiently and stably.
[0006] On the other hand, in actual production, the arrival time of orders is uncertain, there are many types of parts, the process flow is complex, and the processing time also varies. It is difficult to control the production progress of each part using traditional methods. The assembly process is prone to the inability to complete the assembly of the product due to the failure of a certain part to be processed, which in turn causes a backlog of work-in-progress, a small number of finished products, and serious delays. Therefore, the dynamic flexible assembly job shop scheduling problem (FAJSP) is an extension of the flexible job shop scheduling problem with assembly processes, which is more in line with the current production reality of personalized needs.
[0007] Assembly information models are mainly divided into graphical models and matrix models according to the expression method. Although the expression method of graphical models is clear and intuitive, when the number of parts is large, graphical models will become complicated. The matrix model can express the assembly relationship information between parts in the assembly and the attribute information of the parts themselves by establishing different assembly matrices, but it is not easy to calculate when the data model is too large. At present, the research on assembly sequence optimization algorithms is mainly reflected in the following three aspects. First, the improvement of traditional ant colony algorithms, genetic algorithms, particle swarm algorithms and other algorithms is carried out with the purpose of improving algorithm performance; second, the integration of intelligent algorithms with different characteristics to design hybrid algorithms with better performance; third, the application of some newly emerging algorithms with better performance.
[0008] The present invention solves the multi-agent optimal scheduling problem in flexible flow workshops and dynamic processing conditions by establishing a multi-agent flow workshop model based on a Markov decision process and designing a corresponding reinforcement learning algorithm to solve the optimal strategy. Summary of the invention
[0009] In view of this, the purpose of the present invention is to provide a multi-objective optimization scheduling method for wind power assembly workshops based on reinforcement learning. Aiming at the assembly process of wind turbine power generation system, a multi-objective optimization scheduling algorithm with multiple constraints is designed, and a digital production intelligent optimization scheduling technology is developed. First, various sensors are used to monitor the real-time status in the physical world and map it to the information world; finally, the extended Kalman filter method is used to measure the data online to calibrate the model in the signal world. The optimal allocation and real-time control of enterprise resources are realized, and the production efficiency of the enterprise is improved.
[0010] In order to achieve the above object, the present invention provides the following technical solutions:
[0011] A multi-objective optimization scheduling method for a wind power assembly workshop based on reinforcement learning, the method comprising the following steps:
[0012] S1: Establish a cyber-physical system for wind turbine assembly workshops;
[0013] S11: Establishing the Extended Kalman Filter Fusion Algorithm
[0014] First, build the signal model:
[0015] S[k+1]=Τ{S[k],k}+Γ{S[k],k}n[k]
[0016] Where k is the discretization of continuous time t into k moments, S is the wrench force state vector, Τ is the state transfer matrix, Γ is the disturbance matrix, and n[k] is the disturbance noise; the locking signal is established according to the meshing relationship between the bolt and the nut during the processing process, Γ and n[k] are ignored, and S[k+1]=TS[k] constructs an equation that satisfies the signal model; the relationship between the observation model and the signal model is expressed as:
[0017] O[k]=M{S[k],k}+ω[k]σ ω
[0018] Where O is the observation vector at time k, M is the measurement matrix, ω[k] has a mean of 0 and a variance of σ ω The observation noise; the measurement matrix is simplified to the identity matrix, and the prediction power at time k is obtained:
[0019]
[0020] in is the filtering force at time k-1;
[0021] Forecast error variance matrix:
[0022]
[0023] in is the filter error variance matrix at time k-1;
[0024] The Kalman gain at time k is:
[0025]
[0026] The filtering force at time k is:
[0027]
[0028] The filter error variance matrix at time k is:
[0029]
[0030] Where I is the unit matrix; the wrench locking model is continuously calibrated using the real-time measured force signal, so that the original offline model has online characteristics, and the physical world and the information world are deeply integrated;
[0031] S12: Feature extraction based on stacked autoencoders
[0032] The stacked autoencoder consists of multiple layers of sparse autoencoders, where the hidden layer output of each sparse autoencoder is used as the input of the sparse autoencoder of the next layer, and finally connected to the classifier; unlike the sparse autoencoder, the stacked autoencoder imposes sparsity on the hidden units; the calculation process of the encoder constrained by sparseness is:
[0033]
[0034] Where Loss is the loss function of the sparse autoencoder; n is the number of samples in the training set; m is the dimension of the input, is the jth signal in the i-th training set, is the weight between the pth neuron in the lth layer of the network and the qth neuron in the l-1th layer, λ is the weight penalty coefficient, L is the total number of network layers, β is the sparse penalty coefficient, ρ is the sparse parameter, is the average activation of the rth neuron in the hidden layer, and a r is the activation function of the rth neuron in the hidden layer, x i is the input of the rth neuron in the hidden layer, is the Kullback-Leibler divergence of the sparse constraint on the rth neuron in the hidden layer;
[0035] In terms of network training, each sub-network introduces corresponding hyperparameter selection; greedy algorithms are used in coefficient learning networks, feature extraction networks, local prediction networks, and global prediction networks to simplify the training process; that is, the hyperparameters that make the results optimal are found in each sub-network, rather than splicing all networks together to achieve the global optimal hyperparameters; the grid search method is used to find the best parameters for each sub-network;
[0036] In the stacked autoencoder, the force signal of every 0.1 second is extracted as the training set. To verify the generalization of the model, the working conditions of the test set are completely different from those of the training set. The data is normalized to reduce the impact of data of different scales on the training process. The basic model uses the force signal at the current moment as an online update data set every second to adjust the model.
[0037] S2: Product integrated scheduling optimization model for collaborative multi-objective manufacturing entities
[0038] During the period from the beginning to the completion of the wind turbine assembly workshop, there is only one start-stop operation, and its energy consumption value is negligible;
[0039] A flexible assembly line workshop is defined as n workpieces being assembled continuously in m processes, each process being assembled by one or more machines, and at least one process having multiple machines;
[0040] Define the workpiece as N = {1,2,...,i,...,n}, the assembly process as J = {1,2,...,j,...,q}, and the assembly machine as M = {1,2,...,k,...,m}. At time t, N i On machine M k The processing time on PT ig , at time t, N i The number of machines flowing through is NPM i (t), N i The number of processes is n i , the jth process of workpiece i is O i,j , O i,j The start assembly time is S i,j,k , O i,j The final assembly time is F i,j,k , the completion time of job i is C i , O i,j The assembly time on assembly machine k is T i,j,k , integer variable, if O i,j 1 if assembled on assembly machine k, 0 otherwise U i,j,k , the assembly energy consumption of the machine is The machine's installed power is The assembly time of the machine is The standby power consumption of the machine is The standby power of the machine is The machine's standby time is
[0041] (1) Maximum completion time
[0042] The maximum completion time is the assembly completion time of all workpieces:
[0043] C1=C f =max(F i,q |i=1,2,...,n)
[0044] Where F i,q is the completion time of the last assembly process of workpiece i;
[0045] (2) Total delay cost
[0046]
[0047] Where α is the delay penalty factor, f i is the completion time of task i, D i is the delivery date of task i, J is the task size;
[0048] (3) Total energy consumption of the machine
[0049]
[0050] The total energy consumption of the machine is divided into assembly energy consumption and standby energy consumption. The assembly energy consumption is the product of the machine assembly power and assembly time; the standby energy consumption is the product of the standby power and standby time;
[0051] The specific mathematical model of the problem is the maximum completion time, total delay cost and total machine energy consumption:
[0052]
[0053] The constraints are as follows:
[0054] The next assembly process of the workpiece must be completed after the previous process:
[0055] S i,j ≥F i,j-1
[0056] Each process can only be assembled once:
[0057]
[0058] The machine can only assemble the next process after assembling the current process:
[0059] F i,k ≤S i′,k ,i∈N,i′∈N,k∈M
[0060] All processes belonging to the same workpiece must be assembled in sequence
[0061]
[0062] Unless the machine fails, the assembly of the workpiece cannot be interrupted once it has started.
[0063] The transit time of the workpiece between machines is negligible
[0064] S3: Conduct collaborative multi-objective optimization scheduling based on reinforcement learning
[0065] In the flexible flow shop scheduling problem, the position of the workpiece in the next stage is only related to the current position, and has nothing to do with the previous position. This is the Markov characteristic. The flexible flow shop is summarized as a Markov decision process; the Markov decision process is defined as a four-tuple<S,A,R,P> , where S represents a set of states; A represents a set of actions; R represents the reward function. t Next, perform an action and transfer to the next state s t+1 , and get a corresponding reward r t+1 ; P represents the state transition probability matrix, in a certain state s tExecute an action and transfer to the next state s with a certain probability t+1 ; The agent learns the strategy π by continuously interacting with the environment to obtain environmental feedback. At each time step t, the agent selects an action based on the strategy π(s) from the state s t and transfer to the next state s t+1 ;
[0066] Assembly process sequencing refers to selecting the best parts from the products to be assembled; five scheduling rules are selected as the candidate scheduling rule set for ESA:
[0067] (1) First-come-first-processing rule FCFP: In the assembly sequence of workpieces, the workpiece with the smallest release time is selected for assembly. The priority of each workpiece to be assembled is Per = minr i ;
[0068] (2) LOPNR rule for the minimum number of remaining processes: Prioritize the workpiece with the minimum number of remaining processes. The priority of each workpiece to be processed is Per = n i -NPM i (t);
[0069] (3) The longest remaining processing time rule MWKR: The workpiece with the longest remaining processing time is selected first. The priority of each workpiece to be processed is Where j′ is the current process;
[0070] (4) Random rule: Randomly select a workpiece for processing;
[0071] After selecting the available scheduling rules, these scheduling rules are encapsulated into an action group of the improved DRL algorithm, so that the scheduling rules are selected from the action group to act on the processing process of the workpiece at the scheduling time;
[0072] Assembly station allocation refers to assigning appropriate assembly stations to the parts to be assembled; ERA needs to select a processing machine from the set of available processing machines for the current process of workpiece i, considering the objective function, and adopts four heuristic scheduling rules: shortest processing time SPT, minimum processing energy consumption SEC, earliest available time EA, and shortest queue time SQT;
[0073] When the agent takes action, the environment will give a corresponding reward. The agent adjusts its strategy based on the reward. The maximization of the reward value determines the optimal action selected at each scheduling moment. According to the total assembly cost function given above, the reward function of the algorithm is set to be negatively correlated with the cost function.
[0074] (1) Completion time corresponding reward r1:
[0075] Minimize the maximum completion time and calculate the average machine utilization Uave (t), r1=U ave (t)-U ave (t-1)
[0076] (2) Reward r2 corresponding to delay cost:
[0077] In order to minimize the total delay cost, calculate the total delay G(t) of the workpiece at time t, r2 = C delay (t-1)-C delay (t)
[0078] (3) The reward r3 corresponding to the total energy consumption of the machine:
[0079] Minimize the total energy consumption of the machine and calculate the current processing energy consumption C at time t e (t) and the cumulative processing time SP(t), and then the processing time energy consumption ratio is obtained r3=ratio(t)-ratio(t-1);
[0080] The processing workshop was selected as the research object. The current production line layout adopts a linear layout. There are a total of 4 production lines in the assembly workshop. The layout of each production line is consistent, divided into transmission chain assembly, yaw assembly, frame assembly, hub assembly, and test processes. Each production line is laid out around the main frame production, divided into transmission chain assembly stations, frame assembly stations, hub assembly stations, and full-power stations, and materials are circulated according to the production process; after the parts are inspected and qualified in the temporary storage area, they are directly matched to the stations, and materials are circulated according to the production schedule to ensure the production schedule. The whole process is to send the parts required for the production and assembly of the generator set from the warehouse to the assembly site, collect production data, and process it accordingly to obtain the production scheduling example of the workshop; when the factory receives the order, the workshop converts it into a production task according to the order, that is, decomposes the product into parts that can be executed by the assembly workshop; the raw materials required for each part enter the cache area of the parts to be assembled, and finally the order is completed at the assembly station;
[0081] The two agents correspond to the assembly station selection agent ERA (equipment routing agent) and the assembly workpiece sorting agent ESA (equipment sequencing agent). Each agent learns the optimal control strategy through continuous trial and error, and can select the optimal scheduling rule according to the workshop environment to solve the flexible assembly workshop scheduling problem in a dynamic environment. At time t, if machine M k After completing the workpiece assembly, ESA needs to select the next assembly workpiece in its waiting queue Qk = {N1, N2, ..., Ni}, and ERA selects the assembly station for assembly; according to the scheduling state s at time t t , ESA output at That is, the corresponding scheduling rule selects workpiece N in the queue i Assemble and get this reward r t , enter the next state s t+1 , Q k Updated to Q k ={N1,N2,...}, and determine whether all jobs have completed scheduling, that is, whether done is true;
[0082] When ERA meets the scheduling conditions, ERA selects an available assembly machine for the workpiece according to the current assembly status and sends workpiece N to the workpiece according to the scheduling rules output by ERA. new Assigned to M k The queue Qk={N1,N2,...,Ni},Q k Updated to Q k ={N1,N2,...,N i ,N new}; Each time ESA and ERA complete the scheduling, they must send the 5-tuple t ,a t ,r t ,s t+1 ,done>stored in the experience pool, when the number in the experience pool reaches the set batch size, ESA and ERA need to learn, and a baseline algorithm of reinforcement learning is used: proximal policy optimization PPO as the parameter update algorithm of ESA and ERA;
[0083] S4: Perform multi-objective proximal strategy optimization scheduling
[0084] S41: Proximal Strategy Optimization Based on Priority Experience Replay
[0085] In the traditional agent training process, the state s1 of the workshop and the current experience pool d are first initialized, and global features are extracted from s1; the scheduling action at the current moment is randomly selected with a probability of ε, and the agent selects the optimal scheduling action a1 at the current moment through the online strategy network with a probability of 1-ε based on the global features. The workshop executes it, feeds back the immediate reward r1, and transfers to the next moment s2; the global features are extracted from the state s2, and the experience samples generated by the interaction between the agent and the workshop are<s1,a1,r1,s2> Save to the current experience pool d; repeat the current step until all production tasks are completed;
[0086] When the scheduling rule set is used as the action space, the size of the action space is the number of all processes. At each moment, only one workpiece can be processed in all machines in a process. The operation mask is applied to the output of the neural network to convert the value of the illegal operation to an infinite negative number. After the output from the Softmax function, the resampling probability of the illegal operation is close to 0.
[0087] The scheduling strategy consists of a multi-layer perceptron MLP with two hidden layers and a Softmax function To represent; the MLP network is used to extract state features and obtain the scalar score of each action, and the Softmax function is used to output the action selection strategy; the parameters of the scheduling strategy are optimized and learned by a proximal strategy tailored by an actor-critic, which is expressed as follows:
[0088]
[0089] in Obviously, r t (θ old )=1, if r t If (θ) is greater than 1, it means that the action in the current policy is more likely to be executed than the action in the old policy; if it is between 0 and 1, it means that the current policy is less likely to take that action than the old policy; In strategy π θ The estimated value of the advantage function at time t is, Indicates that when adopting strategy π θ Time state t Take action a t The value of V(s t ,w t ) indicates that the evaluator parameter is w t Time state t The expected value of; clip is a truncation function, its operation is that if the first item is less than the second item, the final value is the second item; if the first item is greater than the third item, the final value is the third item; if it is between the two, it keeps its own value; ε is a hyperparameter, and the clip function controls the change between the new and old strategies within [1-ε,1+ε];
[0090] The actor network is constructed by the scheduling strategy, and the critic network is represented by an MLP network with the same hidden layers as the actor network;
[0091]
[0092] δ t =R t +γV(s t+1 ,w t+1 )-V(s t ,w t )
[0093]
[0094] Where: G t is the cumulative reward; w t is the parameter of the evaluation network at t decision step; δ tis the time difference error value under t decision step, which is used to indicate the direction and strength of parameter update; ▽ indicates gradient derivation; θ t is the parameter of the action network at the t decision step; α w and α θ They represent the parameter update step of the evaluation network and the action network, respectively. R is the instant reward of the t decision step; γ is the reward discount factor, which ranges from 0 to 1;
[0095] In the deep reinforcement learning method based on stochastic gradient, experience replay is used to satisfy the independent and identically distributed assumption and use rare useful experience instead of just a single update; the traditional experience replay method does not distinguish the validity of the experience samples during training and samples the experience uniformly; the priority experience replay PER repeats the experience samples according to their importance and often repeats the high-expectation experience samples with the priority level measured by the temporal difference error TD-error; a proportional priority random sampling method refers to interpolation between pure greedy priority and uniform random sampling; the sampling probability of proportional priority:
[0096]
[0097] where P(i) is the priority of transition i, which is greater than 0; the index α determines the priority, and α = 0 corresponds to the uniform situation; p i = abs(TD) + δ is the proportional priority, where δ is a small positive number that makes the sampled empirical sample td error 0;
[0098] As training updates increase, the distribution of estimates deviates from the true distribution, using represents the important sample weight, correcting the sample distribution, where N is the length of the buffer, β is a parameter that changes from the initial value to 1, and β = 1 means that the non-uniform probability P is fully compensated i .
[0099] Furthermore, in S4, a hybrid experience replay method integrating uniform sampling and priority sampling is proposed. At each update, all experience samples are first repeated uniformly, and the priority of the experience samples is calculated according to the equation, and then priority experience replay is performed;
[0100] Step 41: Initialize the actor and critic network parameters and initialize the state before each iteration;
[0101] Step 42: Execute action a t , get instant reward R t and the next state s t+1 ,according to Calculate the cumulative return and store this experience sample in the memory pool;
[0102] Step 43: Randomly extract small batch samples from the memory pool;
[0103] Step 44: Update the workpiece and machine states, evaluate the state value function based on the old parameters, and use δ t =R t +γV(s t+1 ,w t+1 )-V(s t ,w t ) calculates the time difference error, and the input evaluation network is Calculate advantage function;
[0104] Step 45: By maximizing the PPO objective function Update the policy network by Update policy network parameters;
[0105] Step 46: Update the target network by minimizing the loss function, using Update critic network parameters.
[0106] Further, in S4, a multi-objective proximal strategy optimization algorithm is proposed for training with a single reward. First, the multi-objective optimization model is processed by drawing on the idea of the multi-objective problem decomposition method, and the reward functions r1, r2 and r3 are normalized. The normalization formula is:
[0107]
[0108] Where μ i and δ i are the mean and variance respectively, and then the weighted method is used to solve them;
[0109]
[0110] Where α1+α2+α3=1, which are the weights of the maximum completion time, total delay cost and total energy consumption of the machine, respectively. To ensure that all objectives are optimized, α1, α2, α3 ≥ 0.1 are guaranteed. Different weight values will lead to large fluctuations in the calculated rewards, which will lead to problems such as unstable training and overwriting of network structure parameters. A parameter transfer strategy is adopted to save the corresponding model parameters after training each set of weight values for a certain number of times, and switch to the next set of weight values with the smallest Euclidean distance to continue training until all the agent parameters corresponding to the weight values are saved. Each sub-goal is modeled as a neural network, and the network model parameters of the i-th sub-goal can be expressed as [ω i ,b i ]; [ω * ,b *] represents the parameters of the neural network model that have been optimized, and [ω, b] represents the parameters that have not been optimized; assuming that the i-th sub-goal has been solved, that is, its network parameters have been optimized to near the optimal level, then the best network parameters [ω i * ,b i * ] as the starting point for network training in the i+1th sub-goal; all sub-goals are solved sequentially by transferring network weights.
[0111] Furthermore, after S4, the step further includes: if the machine tool M m exist Failure occurs at time, and the maintenance time is Use T i d (i=1,2,...) indicates the time when a dynamic event occurs; dynamic rescheduling means that after a dynamic event occurs, the workshop regenerates the scheduling plan and rearranges production in response to the dynamic event; rescheduling involves two issues: when to rescheduling and how to rescheduling. According to the characteristics of the flexible job shop and the actual needs of this paper, event-driven rescheduling strategy and complete rescheduling rescheduling method are adopted respectively; event-driven rescheduling means rescheduling when a dynamic event occurs; complete rescheduling means rescheduling all unfinished workpieces when a dynamic event occurs; in case of emergency insertion or machine tool failure, the rescheduling object is determined according to the status of each workpiece and process, and the rescheduling window and the idle time of the machine tool are updated in real time;
[0112] Before a dynamic event occurs, the information of the workshop workpiece and machine tool is known, and processing will be carried out according to the generated scheduling plan until the workshop workpiece is assembled; if a dynamic event occurs at a certain moment, it is necessary to re-determine the assembly status of the workshop workpiece and the available information of the machine for rescheduling; the problem condition update mainly includes the machine acquisition time A (machine number), all workpieces involved in rescheduling, and the number of processes of each workpiece; when rescheduling is triggered, firstly, according to the processing status of each machine, the machines in the scheduling system are divided into three categories: fault pre-repair machines, processing machines and idle machines; the objects of rescheduling are newly arrived workpieces, workpieces that have been scheduled but not yet started to be processed, and partial processes of workpieces that have been started but not yet completed;
[0113] The dynamic rescheduling algorithm is:
[0114] Step 51: construct an initial scheduling energy-saving optimization model, generate an initial scheduling plan based on reinforcement learning and execute it;
[0115] Step 52: Determine in real time whether a dynamic event occurs, if yes, go to step 53, if no, continue to execute the initial scheduling plan;
[0116] Step 53: Determine the rescheduling object when a dynamic event occurs, and establish an energy-saving rescheduling optimization model according to the rescheduling strategy;
[0117] Step 54: Generate a rescheduling plan based on the reinforcement learning solution model, replace it with the latest scheduling plan and execute it;
[0118] Step 55: Determine whether all the workpieces in the workshop are completed. If yes, end the process; otherwise, continue to execute the latest scheduling plan.
[0119] The beneficial effects of the present invention are:
[0120] (1) A physical model-driven cyber-physical system is proposed for the establishment steps and required equipment of the cyber-physical system for assembly process monitoring, and the extended Kalman filter algorithm is used to closely integrate the physical world with the cyber world. In view of the relatively low accuracy of the physical model, the need for preliminary experiments to determine the coefficients, and the need for a large amount of training data for the data model to ensure the accuracy and generalization of the model, a stacked autoencoder is used to automatically extract signal features, avoiding the omission of key information due to insufficient empirical knowledge.
[0121] (2) Aiming at the production process of wind turbine assembly workshop, a cyber-physical system driven by physical model is designed. To address the problem of low accuracy of physical model, a sparse autoencoder is used to automatically extract signal features, thus avoiding the omission of key information due to insufficient empirical knowledge.
[0122] (3) A flexible assembly job shop scheduling model for the wind turbine power generation system assembly process was established and described as a Markov decision process problem. Combined with the objective function of dynamic flexible job shop scheduling, a new state space and reward function representation method was designed. For multi-objective scheduling indicators, a three-dimensional reward function was designed to take into account multiple optimization objectives. A more appropriate scheduling strategy was learned through weight distribution, and the dynamic flow shop scheduling algorithm based on the reinforcement learning algorithm was improved. This is a new application field for job shop scheduling problems.
[0123] (4) The assembly workshop scheduling problem is modeled as a reinforcement learning problem of multiple agents. The real-time scheduling of workshop production is realized by two agents, ESA (equipment sequencing agent) and ERA (equipment routing agent). The state information of ESA and ERA agents at the scheduling time is defined respectively. A set of scheduling rules is selected as the action space to allocate the next workpiece or machine for assembly. An action selection strategy based on the Softmax function is proposed. In view of the problem that proximal policy optimization (PPO) cannot consider multiple objectives at the same time, a multi-objective proximal policy optimization algorithm (MPPO) suitable for multi-objective problems is proposed to train the agents to learn appropriate scheduling strategies to optimize multiple objectives.
[0124] (5) Combined with the actual production environment, the dynamic event of random machine failure is considered, and the rescheduling algorithm is combined to solve the dynamic flexible job shop scheduling problem.
[0125] Other advantages, objectives and features of the present invention will be described in the following description to some extent, and to some extent, will be obvious to those skilled in the art based on the following examination and study, or can be taught from the practice of the present invention. The objectives and other advantages of the present invention can be realized and obtained through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0126] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be described in detail below in conjunction with the accompanying drawings, wherein:
[0127] Figure 1 Drive cyber-physical systems for physical models;
[0128] Figure 2 Real-time control and operation optimization of multi-objective collaborative smart workshops;
[0129] Figure 3 Assembling process flow for gearbox;
[0130] Figure 4 The processing of a multi-agent assembly line shop;
[0131] Figure 5 Block diagram for multi-objective proximal strategy optimization. DETAILED DESCRIPTION
[0132] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the illustrations provided in the following embodiments only illustrate the basic concept of the present invention in a schematic manner, and the following embodiments and features in the embodiments can be combined with each other without conflict.
[0133] Among them, the drawings are only used for illustrative explanations, and they only represent schematic diagrams rather than actual pictures, and should not be understood as limitations on the present invention. In order to better illustrate the embodiments of the present invention, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of actual products. For those skilled in the art, it is understandable that some well-known structures and their descriptions in the drawings may be omitted.
[0134] The same or similar numbers in the drawings of the embodiments of the present invention correspond to the same or similar parts; in the description of the present invention, it should be understood that if the terms "upper", "lower", "left", "right", "front", "rear", etc. indicate the orientation or position relationship, they are based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation. Therefore, the terms describing the position relationship in the drawings are only used for illustrative purposes and cannot be understood as limiting the present invention. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.
[0135] 1. Cyber-physical system for wind turbine assembly workshop
[0136] 1.1 Extended Kalman Filter Fusion Algorithm
[0137] Physical models drive cyber-physical systems. Cyber-physical systems are the next generation of intelligent systems that integrate computing, communication and control. Cyber-physical systems interact with physical processes through human-computer interaction interfaces, and use networked space to control a physical entity in a remote, reliable, real-time, secure and collaborative manner.
[0138] In the physical world, the workshop performs production tasks, and sensors collect real-time signals during the production process and transmit them to the controller. The physical module includes assembly station machine tools, workpieces, sensors, human-machine interface, etc. By installing the sensing elements to the actuators and connecting them to the corresponding accessories such as data acquisition equipment, the physical module can collect monitoring data and transmit it to the control element for diagnosis and decision-making. At the same time, the data can be visualized on the human-machine interface and saved in the storage center for tracking and further analysis.
[0139] In the information world, first, a digital twin of the workshop is generated based on the physical model and detection parameters. Then, the real-time detection signals and simulation signals are integrated. Based on the status diagnosis and prediction results of the frame fixing bolts, the control strategy is adjusted, and the processing process is controlled through controller commands to form a closed-loop system. The information module includes intelligent algorithms in control elements such as machine tool models, control strategies, prediction algorithms, and signal processing algorithms. The digital twin is a copy of the workshop processing system composed of simulation data in the information world. It is used to visualize the difficult-to-observe parts of the processing process and further analyze the processing status. The physical model drives the information-physical system framework such as Figure 1 shown.
[0140] The inherent data from the physical world, such as component geometry and processing parameters, are combined with the simulation data generated by the physical model from the information world to form the digital twin of the machine tool. Then, the extended Kalman filter algorithm is used for signal processing, integrating the signals from the information world and the physical world, and calibrating the physical model to achieve accurate diagnosis and prediction of the force applied by the screwdriver. Since the mechanism model is a nonlinear model, it needs to be linearized, that is, the mechanism model is processed using the Taylor series expansion and its high-order terms are removed. The extended Kalman filter uses the linearized mechanism model as the signal model and the real-time signal as the observation model. It uses the current observation signal and the prediction signal from the previous moment to form new information, thereby obtaining the filtered value and predicted value at the current moment, and uses the filtered signal to diagnose and predict the state.
[0141] Wind turbines use bolt specifications to refer to the hydraulic torque wrench locking value to tighten bolts of different specifications. First, they use an electric wrench to pre-tighten, and then tighten 50% according to the torque value corresponding to the bolt specification, and finally achieve the rated value of the bolt. Due to the offline characteristics of the physical model, in order to more accurately analyze the wrench state, it is necessary to correct the real-time measurement data. The extended Kalman filter fusion algorithm uses real-time measurement data to calibrate the physical model of the locking force, combining the mechanism with the actual situation to achieve accurate perception and prediction of the locking state. This method deeply integrates the physical world and the information world.
[0142] First, build the signal model:
[0143] S[k+1]=Τ{S[k],k}+Γ{S[k],k}n[k]
[0144] Where k is the discretization of continuous time t into k moments, S is the wrench force state vector, Τ is the state transfer matrix, Γ is the disturbance matrix, and n[k] is the disturbance noise. Since the locking signal is established according to the meshing relationship between the bolt and the nut during the processing process, Γ and n[k] can be simplified and ignored, and S[k+1]=TS[k] constructs an equation that satisfies the signal model. The relationship between the observation model and the signal model can be expressed as:
[0145] O[k]=M{S[k],k}+ω[k]σ ω
[0146] Where O is the observation vector at time k, M is the measurement matrix, ω[k] has a mean of 0 and a variance of σ ω The observation noise is . Since the signal model is highly consistent with the observation model, the measurement matrix can be simplified to the unit matrix. The prediction power at time k can be obtained:
[0147]
[0148] in is the filtering force at time k-1.
[0149] Prediction error variance matrix:
[0150]
[0151] in is the filter error variance matrix at time k-1.
[0152] The Kalman gain at time k is:
[0153]
[0154] The filtering force at time k is:
[0155]
[0156] The filter error variance matrix at time k is:
[0157]
[0158] Where I is the unit matrix. Using the above formula, the wrench locking model can be continuously calibrated using the real-time measured force signal, so that the original offline model has online characteristics and the physical world and the information world are deeply integrated.
[0159] 1.2 Feature extraction based on stacked autoencoders
[0160] In terms of data models, input features need to be extracted based on manual experience. To avoid missing information contained in the signal, it is necessary to extract as many features of the original signal as possible, and then screen and reduce the features, resulting in a waste of computing resources. The present invention automatically extracts signal features based on the stacked autoencoder method, and by dividing the model into two parts: pre-training and online updating, an incremental deep learning method is implemented in the training and prediction stages.
[0161] The stacked autoencoder consists of multiple layers of sparse autoencoders, where the hidden layer output of each sparse autoencoder is used as the input of the sparse autoencoder of the next layer, and then connected to the classifier at the end. Unlike sparse autoencoders, stacked autoencoders impose sparsity on hidden units, that is, there can be more hidden units than input units. The calculation process of the encoder subject to sparse constraints:
[0162]
[0163] Where Loss is the loss function of the sparse autoencoder; n is the number of samples in the training set; m is the dimension of the input, is the jth signal in the i-th training set, is the weight between the pth neuron in the lth layer of the network and the qth neuron in the l-1th layer, λ is the weight penalty coefficient, L is the total number of network layers, β is the sparse penalty coefficient, ρ is the sparse parameter, is the average activation of the rth neuron in the hidden layer, and a r is the activation function of the rth neuron in the hidden layer, x i is the input of the rth neuron in the hidden layer, is the Kullback-Leibler divergence with sparse constraints on the rth neuron in the hidden layer.
[0164] In terms of network training, each sub-network introduces corresponding hyperparameter selection. Greedy algorithms are used in coefficient learning networks, feature extraction networks, local prediction networks, and global prediction networks to simplify the training process. That is, the hyperparameters that make the results optimal are found in each sub-network, rather than splicing all networks together to achieve the global optimal hyperparameters. In order to find the best parameters for each sub-network, this experiment uses the grid search method.
[0165] In the stacked autoencoder, the force signal of every 0.1 second is extracted as the training set. To verify the generalization of the model, the working conditions of the test set are completely different from those of the training set. The data is normalized to reduce the impact of data of different scales on the training process. The basic model uses the force signal at the current moment as an online update data set every second to adjust the model.
[0166] 2. Product integrated scheduling optimization model for collaborative multi-objective manufacturing entities
[0167] The key to production scheduling is the basic scheduling of workshop production in normal order. An excellent and reasonable basic scheduling scheme can greatly improve the performance of workshop production scheduling. According to the existing problems in the workshop, the present invention focuses on the flexible job shop scheduling problem under dynamic conditions. First, a mathematical model of the basic scheduling problem of the wind turbine power generation system assembly workshop is established, and on this basis, the multi-objective scheduling optimization problem of the processing workshop is solved based on the reinforcement learning algorithm.
[0168] 2.1 Introduction to wind power generation system
[0169] Wind turbines can be divided into horizontal and vertical axis wind turbines according to the direction of the main shaft. At present, horizontal axis wind turbines are the mainstream of commercialization because of their simple structure and higher efficiency than vertical axis wind turbines. Wind turbines have large parts and components, which increase the load requirements for equipment such as hoisting, heating, transportation, and testing during the production process, and increase the requirements for production sites and layout. The rack is the basis for the installation of the main equipment of the wind turbine, and the key equipment of the wind turbine is installed on the rack. It includes transmission chain (main shaft, gearbox, etc.), yaw assembly (yaw drive, yaw brake caliper, yaw bearing, etc.), generator, coupling, hydraulic station, cooling pump (no air-cooled type), slip ring assembly, automatic lubrication, crane, cabin cabinet, cabin cover, cabin heater, converter and transformer, etc. The rack is connected to the tower on site, and personnel can enter the rack through the tower. The front end of the rack is the wind wheel, that is, the blades and hub.
[0170] Wind turbine power generation uses wind power to drive the rotor blades to rotate. The root of the blades is connected to the hub. The hub is the hub of the wind rotor and the connector between the blades and the low-speed main shaft. The low-speed main shaft transmits the torsional mechanical energy to the input stage planetary frame of the speed-increasing gearbox, which is then transmitted to the generator rotor through a coupling after multiple stages of speed increase, converting the energy from mechanical energy to electrical energy and feeding it into the power grid. The speed-increasing gearbox and the generator housing are fixed to the frame with elastic supports, and the frame and yaw bearing are installed on the tower together with bolts. The gearbox assembly process is as follows: Figure 3 shown.
[0171] 2.2 Problem Description
[0172] The production of wind turbines is arranged around the production of the main frame, which is mainly divided into the processes of transmission chain assembly, yaw assembly, frame assembly, hub assembly, and testing. It is divided into transmission chain assembly stations, frame assembly stations, hub assembly stations, and full-power stations, and materials are circulated according to the production process. After passing the inspection in the temporary storage area, the parts are directly matched to the stations, and the material turnover is carried out according to the production schedule to ensure the production schedule. The main span of the assembly workshop is used for the assembly of the whole machine, including yaw, frame, nacelle cover assembly, bench testing, and transmission chain assembly. The auxiliary span is used for hub assembly, transmission chain hot installation, and temporary storage of components. The middle auxiliary span is used for the storage of small parts and auxiliary materials. The assembly object is fixed in the main span production of the factory, and the technical staff conducts on-site tracking and guidance throughout the process, and arranges a group of skilled production workers to complete the assembly work from beginning to end; through communication testing in the workshop, the wiring is guaranteed to be correct, and the overall performance of the wind turbine is verified by transporting it to a base with test conditions for testing. The real-time control and operation optimization process of the multi-objective collaborative intelligent workshop is as follows Figure 2 shown.
[0173] The wind turbine assembly workshop has 4 independent production lines, each of which is equipped with 10 jobs. The 10 jobs adopt a pull production mode, where the demand of the later process drives the production of the previous process. The work process of each job is as follows:
[0174] (1) Yaw assembly: The yaw system is used to track the change of wind direction to ensure that the wind rotor is basically always facing the wind. After the main engine assembly is completed, the yaw is turned over and connected to the motor frame;
[0175] (2) The main shaft is hot-loaded in the auxiliary span and then transferred to the main span for transmission chain assembly;
[0176] (3) After the transmission chain is assembled, it is hoisted onto the frame and fixed;
[0177] (4) Install the generator and align it;
[0178] (5) Install engine room cabinet, frequency converter and hydraulic station;
[0179] (6) Install the water cooling unit and connect the pipes;
[0180] (7) Wiring;
[0181] (8) Install the nacelle cover;
[0182] (9) Wheel hub assembly and bench test;
[0183] (10) Joint debugging;
[0184] After the joint commissioning is qualified, the wind turbine will be disassembled, transported and reassembled. Table 1 is the detailed list of wind turbine assembly parts.
[0185] Table 1
[0186]
[0187]
[0188] The specific contents of production scheduling in the processing workshop include:
[0189] (1) The process engineer of the production planning department formulates and distributes the work instruction document, which determines the core information of the workpiece, including the pre-processing preparation including materials and tooling equipment, processing requirements including workpiece size and structure, processing accuracy and processing process requirements, and subsequent processing after processing.
[0190] (2) The planners in the production planning department start to formulate weekly production plans based on the issued documents and convey the plans to the warehouse keepers in the warehouse management department;
[0191] (3) The warehouse keeper confirms the material information required for processing according to the production plan and sends the information to the planner. The planner enters the information and then compares it with the inventory information to determine whether the production can be executed according to the plan. If it can be executed, the planner will start to formulate a daily production plan. If not, the planner will give feedback to the material specialist and cooperate with the warehouse keeper to prepare the materials;
[0192] (4) After the daily rolling plan is formulated, the dispatcher manually formulates the scheduling plan based on experience and assigns the work to the rough processing, semi-finishing and finishing production lines. The operator starts the work after receiving the work order;
[0193] (5) If the operator encounters a problem during the operation, he will feedback to the dispatcher. After the dispatcher solves the problem, he will also feedback the production progress of the workshop to the planner. The planner will adjust the production plan based on the feedback, and the process ends here.
[0194] As an important part of the wind turbine generator set, the frame is the installation base of the main wind power generation equipment, bearing the load of the wind rotor and the load of each component on the frame. For example, the frame design of a 3MW wind turbine generator set adopts a split structure of a front casting frame and a rear welding frame, which are connected by high-strength bolts.
[0195] 2.3 Model establishment
[0196] During the operation of the machine, there are generally four states: startup, no-load, assembly, and shutdown. During the period from the beginning of assembly to the completion of assembly, multiple starts and stops will reduce the life of the machine, so generally the machine remains in the no-load or assembly state after startup until the assembly is completed. Therefore, there is only one start and stop operation, and its energy consumption value is small and can be ignored.
[0197] A flexible assembly line workshop can be defined as n workpieces being assembled continuously in m processes. Each process can be assembled by one or more machines, and at least one process has multiple machines.
[0198] Define the workpiece as N = {1,2,...,i,...,n}, the assembly process as J = {1,2,...,j,...,q}, and the assembly machine as M = {1,2,...,k,...,m}. At time t, N i On machine M k The processing time on PT ig , at time t, N i The number of machines flowing through is NPM i (t), N i The number of processes is n i , the jth process of workpiece i is O i,j , O i,j The start assembly time is S i,j,k , O i,j The final assembly time is F i,j,k , the completion time of job i is C i , O i,j The assembly time on assembly machine k is T i,j,k , integer variable, if O i,j 1 if assembled on assembly machine k, 0 otherwise U i,j,k , the assembly energy consumption of the machine is The machine's installed power is The assembly time of the machine is The standby power consumption of the machine is The standby power of the machine is The machine's standby time is
[0199] (1) Maximum completion time
[0200] The maximum completion time is the assembly completion time of all workpieces:
[0201] C1=C f =max(F i,q |i=1,2,...,n)
[0202] Where F i,q is the completion time of the last assembly process of workpiece i;
[0203] (2) Total delay cost
[0204]
[0205] Where α is the delay penalty factor, f i is the completion time of task i, Di is the delivery date of task i, and J is the task size.
[0206] (3) Total energy consumption of the machine
[0207]
[0208] The total energy consumption of the machine is divided into assembly energy consumption and standby energy consumption. The assembly energy consumption is the product of the machine assembly power and the assembly time; the standby energy consumption is the product of the standby power and the standby time.
[0209] The specific mathematical model of the problem is the maximum completion time, total delay cost and total machine energy consumption:
[0210]
[0211] The constraints are as follows:
[0212] (1) The next assembly process of the workpiece must be completed after the previous process:
[0213] S i,j ≥F i,j-1
[0214] (2) Each process can only be assembled once:
[0215]
[0216] (3) The machine can only assemble the next process after assembling the current process:
[0217] F i,k ≤S i′,k ,i∈N,i′∈N,k∈M
[0218] (4) All processes belonging to the same workpiece must be assembled in sequence
[0219]
[0220] (5) Unless the machine fails, the assembly of the workpiece cannot be interrupted once it has started.
[0221] (6) The time it takes to transfer workpieces between machines is negligible.
[0222] 3. Collaborative Multi-objective Optimization Scheduling Algorithm Based on Reinforcement Learning
[0223] Reinforcement learning is usually described by Markov decision processes. In the flexible flow shop scheduling problem, obviously, the position of the next-stage workpiece is only related to the current position and has nothing to do with the previous positions, which is the Markov property. Therefore, the flexible flow shop can be classified as a Markov decision process. A Markov decision process is defined as a quadruple <S, A, R, P>, where S represents a set of states; A represents a set of actions; R represents the reward function. When an action is executed in a certain state s t and it transfers to the next state s t+1 , a corresponding reward r t+1 will be obtained; P represents the state transition probability matrix. When an action is executed in a certain state s t , it will transfer to the next state s t+1 with a certain probability. The agent learns the policy π by continuously interacting with the environment and obtaining environmental feedback. At each time step t, the agent selects an action according to the policy π(s) from the state s t and transfers to the next state s t+1 .
[0224] 3.1 State Space
[0225] In most cases, the design of the state space follows the following principles: ① The state space can describe the main characteristics and changes of the scheduling environment, including the global and local characteristics of the system; ② The state space can represent and generalize various different scheduling problems; ③ The state space is a numerical representation of state variables; ④ The state space should be easy to calculate; ⑤ The division of the state interval should be appropriate. Too many state spaces will cause the algorithm to converge slowly in the process of finding the policy and it is difficult to reach the optimum.
[0226] In order to more accurately describe the processing state of the scheduling system and the performance indicators of "minimizing the makespan", "minimizing the total tardiness cost", and "minimizing the total energy consumption of machines", this paper improves the definition of traditional state variables. At time t, the scheduling state information includes the expected average slack time of the remaining operations, the expected average remaining processing time, and the average processing energy consumption of all machines.
[0227] 3.2 Action Space
[0228] The scheduling agent calculates a processing priority value for each workpiece to be equipped according to the equipment status of the workpiece, so as to sort them and then select the best machine equipment to complete the scheduling task. The scheduling rule is a powerful tool for calculating the priority value of workpiece processing. The action performed by the intelligent agent is to select the priority processing job according to the scheduling rule. Since the present invention performs scheduling optimization for multiple goals, multiple scheduling rules are used as candidate action sets. The intelligent agent selects a suitable one from the candidate action set according to different processing states. The design of the candidate action set ensures that all objective functions of "minimizing the maximum completion time", "minimizing the total delay cost" and "minimizing the total energy consumption of the machine" can be optimized.
[0229] Assembly process sequencing refers to selecting the best parts from the products to be assembled. Five commonly used scheduling rules are selected as the candidate scheduling rule set for ESA:
[0230] (1) First-come-first-processing rule FCFP: In the assembly sequence of workpieces, the workpiece with the smallest release time is selected for assembly. The priority of each workpiece to be assembled is Per = minr i ;
[0231] (2) LOPNR rule for the minimum number of remaining processes: Prioritize the workpiece with the minimum number of remaining processes. The priority of each workpiece to be processed is Per = n i -NPM i (t);
[0232] (3) The longest remaining processing time rule MWKR: The workpiece with the longest remaining processing time is selected first. The priority of each workpiece to be processed is Where j′ is the current process;
[0233] (4) Random rule: Randomly select a workpiece for processing.
[0234] After selecting the available scheduling rules, these scheduling rules are encapsulated into an action group of the improved DRL algorithm, so that scheduling rules can be selected from the action group to act on the processing process of the workpiece at the scheduling time.
[0235] Assembly station allocation refers to assigning appropriate assembly stations to the parts to be assembled. Similarly, ERA needs to select a processing machine from the set of available processing machines for the current process of workpiece i. Considering the objective function of the research problem of this invention, four heuristic scheduling rules are adopted: shortest processing time (SPT), minimum processing energy consumption (SEC), earliest available time (EA), and shortest queue time (SQT).
[0236] 3.3 Reward Function
[0237] When the agent takes action, the environment will give a corresponding reward. The agent adjusts its strategy based on the reward. The maximization of the reward value determines the optimal action selected at each scheduling moment. According to the total assembly cost function given above, the reward function of the algorithm is set to be negatively correlated with the cost function. The reward r1 for completion time, r2 for delay cost, and r3 for total machine energy consumption are set as follows:
[0238] (1) Completion time corresponding reward r1:
[0239] Minimize the maximum completion time and calculate the average machine utilization U ave (t), r1=U ave (t)-U ave (t-1)
[0240] (2) Reward r2 corresponding to delay cost:
[0241] In order to minimize the total delay cost, calculate the total delay G(t) of the workpiece at time t, r2 = C delay (t-1)-C delay (t)
[0242] (3) The reward r3 corresponding to the total energy consumption of the machine:
[0243] Minimize the total energy consumption of the machine and calculate the current processing energy consumption C at time t e (t) and the cumulative processing time SP(t), and then the processing time energy consumption ratio is obtained r3 = ratio(t)-ratio(t-1).
[0244] 3.4 Multi-agent reinforcement learning
[0245] The processing workshop was selected as the research object. The current production line layout adopts a linear layout. There are a total of 4 production lines in the assembly workshop. The layout of each production line is consistent. It is mainly divided into transmission chain assembly, yaw assembly, frame assembly, hub assembly, testing and other processes. Each production line is laid out around the main frame production, and is divided into transmission chain assembly stations, frame assembly stations, hub assembly stations, full-power stations, etc., and materials are circulated according to the production process. After the parts are inspected and qualified in the temporary storage area, they are directly matched to the stations. Material turnover is carried out according to the production schedule to ensure the production schedule. The whole process is to produce and assemble the parts required for the generator set from the warehouse to the assembly site, collect production data, and perform corresponding processing on it, and finally obtain the production scheduling example of the workshop. When the factory receives the order, the workshop converts it into a production task according to the order, that is, decomposing the product into parts that can be executed by the assembly workshop. The raw materials required for each component enter the cache area of the components to be assembled, and finally the order is completed at the assembly station. Table 2 is a schematic table of processing information for the flexible operation workshop
[0246] Table 2
[0247]
[0248] The present invention proposes two agents corresponding to the assembly station selection agent ERA (equipment routing agent) and the assembly workpiece sequencing agent ESA (equipment sequencing agent), each of which learns the optimal control strategy through continuous trial and error, and can select the optimal scheduling rule according to the workshop environment, thereby solving the flexible assembly workshop scheduling problem in a dynamic environment. At time t, if machine M k After completing the workpiece assembly, ESA needs to wait in its queue Q k ={N1,N2,...,N i} selects the next assembly workpiece, and ERA selects the assembly station for assembly; according to the scheduling state s at time t t , ESA output a t That is, the corresponding scheduling rule selects workpiece N in the queue i Assemble and get this reward r t , enter the next state s t+1 , Q k Updated to Q k ={N1,N2,...}, and determine whether all workpieces have completed scheduling, that is, whether done is true.
[0249] Similarly, when ERA meets the scheduling conditions, ERA selects an available assembly machine for the workpiece according to the current assembly state and sends workpiece N to the workpiece according to the scheduling rules output by ERA. new Assigned to M k The queue Q k ={N1,N2,...,N i}, Q k Updated to Q k ={N1,N2,...,N i ,N new}. Each time ESA and ERA complete the scheduling, they must send the 5-tuple t ,a t ,r t ,s t+1 , done> is stored in the experience pool. When the number in the experience pool reaches the set batch size, ESA and ERA need to learn. The present invention adopts a baseline algorithm of reinforcement learning: proximal policy optimization (PPO) as the parameter update algorithm of ESA and ERA.
[0250] 4. Multi-objective proximal strategy optimization scheduling algorithm
[0251] 4.1 Proximal Strategy Optimization Algorithm Based on Priority Experience Replay
[0252] In the traditional agent training process, the state s1 of the workshop and the current experience pool d are first initialized, and global features are extracted from s1. The scheduling action at the current moment is randomly selected with a probability of ε. The agent selects the optimal scheduling action a1 at the current moment based on the global features through the online policy network with a probability of 1-ε. The workshop executes it, feeds back the immediate reward r1, and transfers to the next moment s2. The global features are extracted from the state s2, and the experience samples generated by the interaction between the agent and the workshop are<s1,a1,r1,s2> Save to the current experience pool d; repeat the current step until all production tasks are completed.
[0253] When using a scheduling rule set as the action space, the size of the action space is the number of all processes, because at any moment, all machines in a process can only process one workpiece. However, the scheduling strategy may encounter the problem of illegal operations, that is, the selected machine is processing another workpiece. To solve this problem, an operation mask is applied to the output of the neural network, converting the value of the illegal operation to a very large negative number. Therefore, after the output of the Softmax function, the resampled probability of the illegal operation is close to 0.
[0254] The scheduling strategy of the present invention is composed of a multi-layer perception network (MLP) with two hidden layers and a Softmax function The MLP network is used to extract state features and obtain a scalar score for each action. The Softmax function is used to output the action selection strategy. The parameters of our scheduling strategy are learned by an actor-critic tailored proximal strategy optimization, which is expressed as follows:
[0255]
[0256] in Obviously, r t (θ old )=1, if r t If (θ) is greater than 1, it means that the action in the current policy is more likely to be executed than the action in the old policy. If it is between 0 and 1, it means that the current policy is less likely to take that action than the old policy. In strategy π θ The estimated value of the advantage function at time t is, Indicates that when adopting strategy π θ Time state t Take action a t The value of V(s t ,w t ) indicates that the evaluator parameter is w t Time state tThe expected value of; clip is the truncation function, its operation is that if the first item is less than the second item, the final value is the second item; if the first item is greater than the third item, the final value is the third item; if it is between the two, it keeps its own value; ε is a hyperparameter, the clip function controls the change between the old and new strategies within [1-ε,1+ε].
[0257] The actor network is constructed by the scheduling policy, and the critic network is represented by an MLP network with the same hidden layers as the actor network.
[0258]
[0259] δ t =R t +γV(s t+1 ,w t+1 )-V(s t ,w t )
[0260]
[0261] Where: G t is the cumulative reward; w t is the parameter of the evaluation network at t decision step; δ t is the time difference error value at t decision step, which can be used to indicate the direction and strength of parameter update; ▽ indicates gradient derivation; θ t is the parameter of the action network at the t decision step; α w and α θ They represent the parameter update step of the evaluation network and the action network respectively. R is the immediate reward of the t decision step; γ is the reward discount factor, which is generally between 0 and 1.
[0262] In stochastic gradient-based deep reinforcement learning methods, experience replay is used to satisfy the independent and identically distributed assumption and use rare useful experiences instead of just a single update. Traditional experience replay methods do not distinguish the validity of experience samples during training and sample experience uniformly. Prioritized Experience Replay (PER) repeats experience samples according to their importance and frequently repeats high-expectation experience samples with priority levels measured using the temporal difference error (TD-error). A proportional priority random sampling method refers to interpolating between pure greedy priority and uniform random sampling. Sampling probability of proportional priority:
[0263]
[0264] where P(i) is the priority of transition i, which is greater than 0; the index α determines the priority, and α = 0 corresponds to the uniform situation; p i=abs(TD)+δ is the proportional priority, where δ is a small positive number that makes the sampled empirical sample td error zero.
[0265] As training updates increase, the distribution of estimates deviates from the true distribution, using represents the important sample weight (IS weight) to correct the sample distribution, where N is the length of the buffer, β is a parameter that changes from an initial value to 1, and β = 1 means that the non-uniform probability P is fully compensated i Furthermore, greedy prioritization focuses on a small subset of experiences whose error slowly shrinks, and this lack of diversity makes the policy network prone to overfitting, especially when using function approximations.
[0266] In this paper, we propose a hybrid experience replay method that combines uniform sampling and priority sampling. At each update, all experience samples are first repeated uniformly, and the priority of the experience samples is calculated according to the equation, and then priority experience replay is performed. In addition, we also consider the distribution correction of important sample weights of the actor network, critic network, and proximal policy optimization network.
[0267] Algorithm 1: Proximal strategy optimization algorithm based on priority experience replay
[0268] Step 41: Initialize the actor and critic network parameters and initialize the state before each iteration;
[0269] Step 42: Execute action a t , get instant reward R t and the next state s t+1 ,according to Calculate the cumulative return and store this experience sample in the memory pool;
[0270] Step 43: Randomly extract small batch samples from the memory pool;
[0271] Step 44: Update the workpiece and machine states, evaluate the state value function based on the old parameters, and use δ t =R t +γV(s t+1 ,w t+1 )-V(s t ,w t ) calculates the time difference error, and the input evaluation network is Calculate advantage function;
[0272] Step 45: By maximizing the PPO objective function Update the policy network by Update policy network parameters;
[0273] Step 46: Update the target network by minimizing the loss function, using Update critic network parameters.
[0274] Algorithm 1 describes the training process in detail, which includes two aspects: data collection and policy learning. When collecting training data, we generate T independent complete scheduling trajectories and store them in a memory buffer M. In the policy learning phase, we randomly split these data into batches of length related to the instance size and update the actor network and the critic network. Then, the priority of the experience sample is calculated based on the TD error, and PER is performed to update the actor and critic networks again. In each learning time, the scheduling agent learns from the experience sample K times. The training process ends when the event reaches the maximum number of iterations or the results converge or the time limit is reached.
[0275] 4.2 Multi-objective proximal strategy optimization
[0276] The proximal strategy optimization algorithm is trained with a single reward and is not suitable for multi-objective scheduling. This paper proposes a multi-objective proximal strategy optimization algorithm. The algorithm framework is as follows: Figure 5 First, the multi-objective optimization model is processed by referring to the idea of multi-objective problem decomposition method. The present invention first normalizes the reward functions r1, r2 and r3. The normalization formula is:
[0277]
[0278] Where μ i and δ i are the mean and variance respectively, and then the weighted method is used to solve them.
[0279]
[0280] Where α1+α2+α3=1, which are the weights of the maximum completion time, total delay cost and total energy consumption of the machine respectively. To ensure that all objectives are optimized, α1, α2, α3≥0.1. Different weight values will cause the calculated rewards to fluctuate greatly, which will lead to problems such as unstable training and overwriting of parameters of the network structure. The present invention adopts a parameter transfer strategy to save the corresponding model parameters after training each set of weight values a certain number of times, and switch to the next set of weight values with the smallest Euclidean distance to continue training until all the agent parameters corresponding to all weight values are saved. Specifically, each sub-goal is modeled as a neural network, and the network model parameters of the i-th sub-goal can be expressed as [ω i ,b i Here, [ω * ,b *] represents the parameters of the neural network model that have been optimized, and [ω,b] represents the parameters that have not been optimized. Assume that the i-th sub-goal has been solved, that is, its network parameters have been optimized to near-optimal, and then the best network parameters [ω i * ,b i * ] as the starting point for network training in the i+1th sub-goal. All sub-goals can be solved sequentially by transferring network weights.
[0281] 5. Dynamic Events
[0282] The framework of deep reinforcement learning based on multi-agent (MADRL) for real-time control of workshop production process is as follows: Figure 4 As shown in the figure. When the task arrives, the two agents obtain the workshop status data in real time, communicate and cooperate synchronously, and determine the assembly process sorting rules and assembly station allocation rules at the current moment. The machine and assembly station select the parts or products with high priority in the buffer for production, thereby ensuring real-time and uninterrupted production in the workshop. As time goes by, the dynamic events of machine tool failure are considered to form the optimal rescheduling plan, which reduces energy consumption and shortens completion time while reducing the impact of dynamic events on workshop scheduling.
[0283] If the machine tool M m exist Failure occurs at time, and the maintenance time is Use T i d (i=1,2,...) indicates the time when the dynamic event occurs. Dynamic rescheduling means that after a dynamic event occurs, the workshop regenerates the scheduling plan and rearranges production in response to the dynamic event. Rescheduling mainly involves two issues: when to reschedule and how to reschedule. According to the characteristics of the flexible job shop and the actual needs of this article, event-driven rescheduling strategy and full rescheduling rescheduling method are adopted respectively. Event-driven rescheduling means rescheduling when a dynamic event occurs; full rescheduling means rescheduling all current unfinished workpieces when a dynamic event occurs. In the event of an emergency insertion or machine tool failure, the rescheduling object is determined according to the status of each workpiece and process, and the rescheduling window and the idle time of the machine tool are updated in real time.
[0284] Before a dynamic event occurs, the information of the workshop workpiece and machine tool is known, and processing will be carried out according to the generated scheduling plan until the workpiece in the workshop is assembled. If a dynamic event occurs at a certain moment, it is necessary to re-determine the assembly status of the workshop workpiece and the machine availability information for rescheduling. The problem condition update mainly includes the machine availability time A (machine number), all workpieces involved in the rescheduling, and the number of processes of each workpiece. When rescheduling is triggered, the machines in the scheduling system are first divided into three categories according to the processing status of each machine: fault pre-repair machines, processing machines, and idle machines. Correspondingly, the objects of rescheduling are newly arrived workpieces, workpieces that have been scheduled but have not yet started processing, and partial processes of workpieces that have started but have not yet been completed.
[0285] Algorithm 2: Dynamic rescheduling algorithm
[0286] Step 51: construct an initial scheduling energy-saving optimization model, generate an initial scheduling plan based on reinforcement learning and execute it;
[0287] Step 52: Determine in real time whether a dynamic event occurs, if yes, go to step 53, if no, continue to execute the initial scheduling plan;
[0288] Step 53: When a dynamic event occurs, determine the rescheduling object, and establish an energy-saving rescheduling optimization model according to the rescheduling strategy;
[0289] Step 54: Generate a rescheduling plan based on the reinforcement learning solution model, replace it with the latest scheduling plan and execute it;
[0290] Step 55: Determine whether all the workpieces in the workshop are completed. If yes, end the process; otherwise, continue to execute the latest scheduling plan.
[0291] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution, which should be included in the scope of the claims of the present invention.
Claims
1. A multi-objective optimization scheduling method for wind power assembly workshop based on reinforcement learning, characterized by: The method comprises the following steps: S1: Establish a cyber-physical system for wind turbine assembly workshops; S11: Establishing the Extended Kalman Filter Fusion Algorithm First, build the signal model: S[k+1]=Τ{S[k],k}+Γ{S[k],k}n[k] Where k is the discretization of continuous time t into k moments, S is the wrench force state vector, Τ is the state transfer matrix, Γ is the disturbance matrix, and n[k] is the disturbance noise; the locking signal is established according to the meshing relationship between the bolt and the nut during the processing process, Γ and n[k] are ignored, and S[k+1]=TS[k] constructs an equation that satisfies the signal model; the relationship between the observation model and the signal model is expressed as: O[k]=M{S[k],k}+ω[k]σ ω Where O is the observation vector at time k, M is the measurement matrix, ω[k] has a mean of 0 and a variance of σ ω The observation noise; the measurement matrix is simplified to the identity matrix, and the prediction power at time k is obtained: in is the filtering force at time k-1; Prediction error variance matrix: in is the filter error variance matrix at time k-1; The Kalman gain at time k is: The filtering force at time k is: The filter error variance matrix at time k is: Where I is the unit matrix; the wrench locking model is continuously calibrated using the real-time measured force signal, so that the original offline model has online characteristics, and the physical world and the information world are deeply integrated; S12: Feature extraction based on stacked autoencoders The stacked autoencoder consists of multiple layers of sparse autoencoders, where the hidden layer output of each sparse autoencoder is used as the input of the sparse autoencoder of the next layer, and finally connected to the classifier; unlike the sparse autoencoder, the stacked autoencoder imposes sparsity on the hidden units; the calculation process of the encoder constrained by sparseness is: Where Loss is the loss function of the sparse autoencoder; n is the number of samples in the training set; m is the dimension of the input, is the jth signal in the i-th training set, is the weight between the pth neuron in the lth layer of the network and the qth neuron in the l-1th layer, λ is the weight penalty coefficient, L is the total number of network layers, β is the sparse penalty coefficient, ρ is the sparse parameter, is the average activation of the rth neuron in the hidden layer, and a r is the activation function of the rth neuron in the hidden layer, x i is the input of the rth neuron in the hidden layer, is the Kullback-Leibler divergence of the sparse constraint on the rth neuron in the hidden layer; In terms of network training, each sub-network introduces corresponding hyperparameter selection; greedy algorithms are used in coefficient learning networks, feature extraction networks, local prediction networks, and global prediction networks to simplify the training process; that is, the hyperparameters that make the results optimal are found in each sub-network, rather than splicing all networks together to achieve the global optimal hyperparameters; the grid search method is used to find the best parameters for each sub-network; In the stacked autoencoder, the force signal of every 0.1 second is extracted as the training set. To verify the generalization of the model, the working conditions of the test set are completely different from those of the training set. The data is normalized to reduce the impact of data of different scales on the training process. The basic model uses the force signal at the current moment as an online update data set every second to adjust the model. S2: Product integrated scheduling optimization model for collaborative multi-objective manufacturing entities During the period from the beginning to the completion of the wind turbine assembly workshop, there is only one start-stop operation, and its energy consumption value is negligible; A flexible assembly line workshop is defined as n workpieces being assembled continuously in m processes, each process being assembled by one or more machines, and at least one process having multiple machines; Define the workpiece as N = {1,2,...,i,...,n}, the assembly process as J = {1,2,...,j,...,q}, and the assembly machine as M = {1,2,...,k,...,m}. At time t, N i On machine M k The processing time on PT ig , at time t, N i The number of machines flowing through is NPM i (t), N i The number of processes is n i , the jth process of workpiece i is O i,j , O i,j The start assembly time is S i,j,k , O i,j The final assembly time is F i,j,k , the completion time of workpiece i is C i , O i,j The assembly time on assembly machine k is T i,j,k , integer variable, if O i,j 1 if assembled on assembly machine k, 0 otherwise U i,j,k , the assembly energy consumption of the machine is The machine's installed power is The assembly time of the machine is The standby power consumption of the machine is The standby power of the machine is The machine's standby time is (1) Maximum completion time The maximum completion time is the assembly completion time of all workpieces: C1=C f =max(F i,q |i=1,2,...,n) Where F i,q is the completion time of the last assembly process of workpiece i; (2) Total delay cost Where α is the delay penalty factor, f i is the completion time of task i, D i is the delivery date of task i, J is the task size; (3) Total energy consumption of the machine The total energy consumption of the machine is divided into assembly energy consumption and standby energy consumption. The assembly energy consumption is the product of the machine assembly power and assembly time; the standby energy consumption is the product of the standby power and standby time. The specific mathematical model of the problem is the maximum completion time, total delay cost and total machine energy consumption: The constraints are as follows: The next assembly process of the workpiece must be completed after the previous process: S i,j ≥F i,j-1 Each process can only be assembled once: The machine can only assemble the next process after assembling the current process: F i,k ≤S i′,k ,i∈N,i′∈N,k∈M All processes belonging to the same workpiece must be assembled in sequence Unless the machine fails, the assembly of the workpiece cannot be interrupted once it has started. The transit time of the workpiece between machines is negligible S3: Conduct collaborative multi-objective optimization scheduling based on reinforcement learning In the flexible flow shop scheduling problem, the position of the workpiece in the next stage is only related to the current position, and has nothing to do with the previous position. This is the Markov characteristic. The flexible flow shop is summarized as a Markov decision process; the Markov decision process is defined as a four-tuple<S,A,R,P> , where S represents a set of states; A represents a set of actions; R represents the reward function. t Next, perform an action and transfer to the next state s t+1 , and get a corresponding reward r t+1 ; P represents the state transition probability matrix, in a certain state s t Execute an action and transfer to the next state s with a certain probability t+1 ; The agent learns the strategy π by continuously interacting with the environment to obtain environmental feedback. At each time step t, the agent selects an action based on the strategy π(s) from the state s t and transfer to the next state s t+1 ; Assembly process sequencing refers to selecting the best parts from the products to be assembled; five scheduling rules are selected as the candidate scheduling rule set for ESA: (1) First-come-first-processing rule FCFP: In the assembly sequence of workpieces, the workpiece with the smallest release time is selected for assembly. The priority of each workpiece to be assembled is Per = minr i ; (2) LOPNR rule for the minimum number of remaining processes: Prioritize the workpiece with the minimum number of remaining processes. The priority of each workpiece to be processed is Per = n i -NPM i (t); (3) The longest remaining processing time rule MWKR: The workpiece with the longest remaining processing time is selected first. The priority of each workpiece to be processed is Where j′ is the current process; (4) Random rule: Randomly select a workpiece for processing; After selecting the available scheduling rules, these scheduling rules are encapsulated into an action group of the improved DRL algorithm, so that the scheduling rules are selected from the action group to act on the processing process of the workpiece at the scheduling time; Assembly station allocation refers to assigning appropriate assembly stations to the parts to be assembled; ERA needs to select a processing machine from the set of available processing machines for the current process of workpiece i, considering the objective function, and adopts four heuristic scheduling rules: shortest processing time SPT, minimum processing energy consumption SEC, earliest available time EA, and shortest queue time SQT; When the agent takes action, the environment will give a corresponding reward. The agent adjusts its strategy according to the reward. The maximization of the reward value determines the optimal action selected at each scheduling moment. According to the total assembly cost function given above, the reward function of the algorithm is set to be negatively correlated with the cost function. The reward r1 for the completion time, the reward r2 for the delay cost, and the reward r3 for the total energy consumption of the machine are set as follows: (1) Completion time corresponding reward r1: Minimize the maximum completion time and calculate the average machine utilization U ave (t), r1=U ave (t)-U ave (t-1) (2) Reward r2 corresponding to delay cost: In order to minimize the total delay cost, calculate the total delay G(t) of the workpiece at time t, r2 = C delay (t-1)-C delay (t) (3) The reward r3 corresponding to the total energy consumption of the machine: Minimize the total energy consumption of the machine and calculate the current processing energy consumption C at time t e (t) and the cumulative processing time SP(t), and then the processing time energy consumption ratio is obtained r3=ratio(t)-ratio(t-1); The processing workshop was selected as the research object. The current production line layout adopts a linear layout. There are a total of 4 production lines in the assembly workshop. The layout of each production line is consistent, divided into transmission chain assembly, yaw assembly, frame assembly, hub assembly, and test processes. Each production line is laid out around the main frame production, divided into transmission chain assembly stations, frame assembly stations, hub assembly stations, and full-power stations, and materials are circulated according to the production process; after the parts are inspected and qualified in the temporary storage area, they are directly matched to the stations, and materials are circulated according to the production schedule to ensure the production schedule. The whole process is to send the parts required for the production and assembly of the generator set from the warehouse to the assembly site, collect production data, and process it accordingly to obtain the production scheduling example of the workshop; when the factory receives the order, the workshop converts it into a production task according to the order, that is, decomposes the product into parts that can be executed by the assembly workshop; the raw materials required for each part enter the cache area of the parts to be assembled, and finally the order is completed at the assembly station; The two agents correspond to the assembly station selection agent ERA (equipment routing agent) and the assembly workpiece sorting agent ESA (equipment sequencing agent). Each agent learns the optimal control strategy through continuous trial and error, and can select the optimal scheduling rule according to the workshop environment to solve the flexible assembly workshop scheduling problem in a dynamic environment. At time t, if machine M k After completing the workpiece assembly, ESA needs to select the next assembly workpiece in its waiting queue Qk = {N1, N2, ..., Ni}, and ERA selects the assembly station for assembly; according to the scheduling state s at time t t , ESA output a t That is, the corresponding scheduling rule selects workpiece N in the queue i Assemble and get this reward r t , enter the next state s t+1 , Q k Updated to Q k ={N1,N2,...}, and determine whether all jobs have completed scheduling, that is, whether done is true; When ERA meets the scheduling conditions, ERA selects an available assembly machine for the workpiece according to the current assembly status and sends workpiece N to the workpiece according to the scheduling rules output by ERA. new Assigned to M k The queue Qk={N1,N2,...,Ni},Q k Updated to Q k ={N1,N2,...,N i ,N new }; Each time ESA and ERA complete the scheduling, they must send the 5-tuple t ,a t ,r t ,s t+1 ,done>stored in the experience pool, when the number in the experience pool reaches the set batch size, ESA and ERA need to learn, and a baseline algorithm of reinforcement learning is used: proximal policy optimization PPO as the parameter update algorithm of ESA and ERA; S4: Perform multi-objective proximal strategy optimization scheduling S41: Proximal Strategy Optimization Based on Priority Experience Replay In the traditional agent training process, the state s1 of the workshop and the current experience pool d are first initialized, and global features are extracted from s1; the scheduling action at the current moment is randomly selected with a probability of ε, and the agent selects the optimal scheduling action a1 at the current moment through the online strategy network with a probability of 1-ε based on the global features. The workshop executes it, feeds back the immediate reward r1, and transfers to the next moment s2; the global features are extracted from the state s2, and the experience samples generated by the interaction between the agent and the workshop are<s1,a1,r1,s2> Save to the current experience pool d; repeat the current step until all production tasks are completed; When the scheduling rule set is used as the action space, the size of the action space is the number of all processes. At each moment, only one workpiece can be processed in all machines in a process. The operation mask is applied to the output of the neural network to convert the value of the illegal operation to an infinite negative number. After the output from the Softmax function, the resampling probability of the illegal operation is close to 0. The scheduling strategy consists of a multi-layer perceptron MLP with two hidden layers and a Softmax function To represent; the MLP network is used to extract state features and obtain the scalar score of each action, and the Softmax function is used to output the action selection strategy; the parameters of the scheduling strategy are optimized and learned by a proximal strategy tailored by an actor-critic, which is expressed as follows: in Obviously, r t (θ old )=1, if r t If (θ) is greater than 1, it means that the action in the current policy is more likely to be executed than the action in the old policy; if it is between 0 and 1, it means that the current policy is less likely to take that action than the old policy; In strategy π θ The estimated value of the advantage function at time t is, Indicates that when adopting strategy π θ Time state t Take action a t The value of V(s t ,w t ) indicates that the evaluator parameter is w t Time state t The expected value of; clip is a truncation function, its operation is that if the first item is less than the second item, the final value is the second item; if the first item is greater than the third item, the final value is the third item; if it is between the two, it keeps its own value; ε is a hyperparameter, and the clip function controls the change between the new and old strategies within [1-ε,1+ε]; The actor network is constructed by the scheduling strategy, and the critic network is represented by an MLP network with the same hidden layers as the actor network; w t+1 =w t +a w d t ▽V(s t ,w t ) δ t =R t +γV(s t+1 ,w t+1 )-V(s t ,w t ) Where: G t is the cumulative reward; w t is the parameter of the evaluation network at t decision step; δ t is the time difference error value under t decision step, which is used to indicate the direction and strength of parameter update; ▽ indicates gradient derivation; θ t is the parameter of the action network at the t decision step; α w and α θ They represent the parameter update step of the evaluation network and the action network, respectively. R is the instant reward of the t decision step; γ is the reward discount factor, which ranges from 0 to 1; In the deep reinforcement learning method based on stochastic gradient, experience replay is used to satisfy the independent and identically distributed assumption and use rare useful experience instead of just a single update; the traditional experience replay method does not distinguish the validity of the experience samples during training and samples the experience uniformly; the priority experience replay PER repeats the experience samples according to their importance and often repeats the high-expectation experience samples with the priority level measured by the temporal difference error TD-error; a proportional priority random sampling method refers to interpolation between pure greedy priority and uniform random sampling; the sampling probability of proportional priority: Where P(i) is the priority of transition i, which is greater than 0; the index α determines the priority, and α = 0 corresponds to the uniform situation; p i = abs(TD) + δ is the proportional priority, where δ is a small positive number that makes the sampled empirical sample td error 0; As training updates increase, the distribution of estimates deviates from the true distribution, using represents the important sample weight, correcting the sample distribution, where N is the length of the buffer, β is a parameter that changes from the initial value to 1, and β = 1 means that the non-uniform probability P is fully compensated i .
2. The multi-objective optimization scheduling method for wind power assembly workshop based on reinforcement learning according to claim 1 is characterized in that: In S4, a hybrid experience replay method integrating uniform sampling and priority sampling is proposed. At each update, all experience samples are first repeated uniformly, and the priority of the experience samples is calculated according to the equation, and then priority experience replay is performed; Step 41: Initialize the actor and critic network parameters and initialize the state before each iteration; Step 42: Execute action a t , get instant reward R t and the next state s t+1 ,according to Calculate the cumulative return and store this experience sample in the memory pool; Step 43: Randomly extract small batch samples from the memory pool; Step 44: Update the workpiece and machine states, evaluate the state value function based on the old parameters, and use δ t =R t +γV(s t+1 ,w t+1 )-V(s t ,w t ) calculates the time difference error, and the input evaluation network is Calculate advantage function; Step 45: By maximizing the PPO objective function Update the policy network by Update policy network parameters; Step 46: Update the target network by minimizing the loss function, using w t+1 =w t +α w δ t ▽V(s t ,w t ) Update the critic network parameters.
3. The multi-objective optimization scheduling method for wind power assembly workshop based on reinforcement learning according to claim 2 is characterized in that: In S4, a multi-objective proximal strategy optimization algorithm is proposed for training with a single reward. First, the multi-objective optimization model is processed by drawing on the idea of the multi-objective problem decomposition method, and the reward functions r1, r2 and r3 are normalized. The normalization formula is: Where μ i and δ i are the mean and variance respectively, and then the weighted method is used to solve them; Where α1+α2+α3=1, which are the weights of the maximum completion time, total delay cost and total energy consumption of the machine, respectively. To ensure that all objectives are optimized, α1, α2, α3 ≥ 0.1 are guaranteed. Different weight values will lead to large fluctuations in the calculated rewards, which will lead to problems such as unstable training and overwriting of network structure parameters. A parameter transfer strategy is adopted to save the corresponding model parameters after training each set of weight values for a certain number of times, and switch to the next set of weight values with the smallest Euclidean distance to continue training until all the agent parameters corresponding to the weight values are saved. Each sub-goal is modeled as a neural network, and the network model parameters of the i-th sub-goal can be expressed as [ω i ,b i ]; [ω * ,b * ] represents the parameters of the neural network model that have been optimized, and [ω, b] represents the parameters that have not been optimized; assuming that the i-th sub-goal has been solved, that is, its network parameters have been optimized to near the optimal level, then the best network parameters [ω i * ,b i * ] as the starting point of network training in the i+1th sub-goal; All subgoals are solved sequentially by passing network weights.
4. The multi-objective optimization scheduling method for wind power assembly workshop based on reinforcement learning according to claim 3 is characterized in that: The step S4 further includes: if the machine tool M m exist Failure occurs at time, and the maintenance time is Tid (i = 1, 2, ...) represents the time when a dynamic event occurs; dynamic rescheduling means that after a dynamic event occurs, the workshop regenerates the scheduling plan and rearranges production in response to the dynamic event; rescheduling involves two issues: when to rescheduling and how to rescheduling. According to the characteristics of the flexible job shop and the actual needs of this paper, event-driven rescheduling strategy and complete rescheduling rescheduling method are adopted respectively; event-driven rescheduling means rescheduling when a dynamic event occurs; complete rescheduling means rescheduling all unfinished workpieces when a dynamic event occurs; in case of emergency insertion or machine tool failure, the rescheduling object is determined according to the status of each workpiece and process, and the rescheduling window and the idle time of the machine tool are updated in real time; Before a dynamic event occurs, the information of the workshop workpiece and machine tools is known, and processing will be carried out according to the generated scheduling plan until the workshop workpiece is assembled. If a dynamic event occurs at a certain moment, it is necessary to re-determine the assembly status of the workshop workpiece and the available information of the machine for rescheduling. The problem condition update mainly includes the machine availability time, all workpieces involved in the rescheduling, and the number of processes of each workpiece. When rescheduling is triggered, the machines in the scheduling system are first divided into three categories according to the processing status of each machine: fault pre-repair machines, processing machines, and idle machines. The objects of rescheduling are newly arrived workpieces, workpieces that have been scheduled but have not yet started processing, and partial processes of workpieces that have started but have not yet been completed. The dynamic rescheduling algorithm is: Step 51: construct an initial scheduling energy-saving optimization model, generate an initial scheduling plan based on reinforcement learning and execute it; Step 52: Determine in real time whether a dynamic event occurs, if yes, go to step 53, if no, continue to execute the initial scheduling plan; Step 53: Determine the rescheduling object when a dynamic event occurs, and establish an energy-saving rescheduling optimization model according to the rescheduling strategy; Step 54: Generate a rescheduling plan based on the reinforcement learning solution model, replace it with the latest scheduling plan and execute it; Step 55: Determine whether all the workpieces in the workshop are completed. If yes, end the process; otherwise, continue to execute the latest scheduling plan.
Citation Information
Cited By
Industrial green micro-grid multi-target flexible job shop dynamic intelligent scheduling method
CN118966715A
Full-process production scheduling method and system for high-performance non-standard hydraulic cylinder
CN119204596A
Flexible job-shop active fault-tolerant scheduling method based on multi-view transfer learning
CN119472539A
Self-adaptive control method for multi-heat-source heat management system based on reinforcement learning model predictive control
CN119535989A
Multi-stage mixed flow workshop scheduling method for forge piece forming and manufacturing under limited buffer constraint
CN119575920A
