Distributed flexible flow shop scheduling method and system with time-of-use electricity price constraints

By applying the self-learning mechanism of the multi-objective monarch butterfly optimization algorithm and variable neighborhood search in the distributed flexible flow workshop, the problem of multi-objective optimization under time-of-use electricity prices is solved, and the effects of reducing energy costs and improving productivity are achieved.

CN116774651BActive Publication Date: 2024-09-13LANZHOU UNIVERSITY OF TECHNOLOGY
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310476583.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-28
Publication Date
2024-09-13
Estimated Expiration
2043-04-28

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively solve the distributed flexible flow workshop scheduling problem under time-of-use electricity prices. Especially in the environment of multiple geographically dispersed flexible flow workshops, it is difficult to reasonably arrange production to reduce energy costs and improve productivity.

Method used

Using the multi-objective monarch butterfly optimization algorithm based on the self-learning mechanism, by constructing an integer programming model and a multi-objective optimization model, combined with the variable neighborhood search and right shift operation, the workpiece allocation, machine allocation and processing sequence are optimized to reduce the machine's standby state. energy consumption and shift production from peak to off-peak hours.

Benefits of technology

It achieves a significant reduction in total power costs without affecting the maximum completion time, improves the efficiency and economy of distributed flexible flow shop scheduling, and provides a robust scheduling solution to cope with dynamic events and multi-objective optimization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116774651B
    Figure CN116774651B
Patent Text Reader

Abstract

The present invention belongs to the technical field of time-sharing electricity price scheduling, discloses a distributed flexible flow shop scheduling method and system with time-sharing electricity price constraints, analyzes the characteristics of the distributed flexible flow shop scheduling problem, establishes a DFFSP-TOU problem integer programming model based on the time-sharing electricity price constraint, and takes minimizing the maximum completion time and total electricity cost as the optimization index; constructs a multi-objective monarch butterfly optimization model based on a self-learning mechanism, and the migration operator and adjustment operator of the multi-objective monarch butterfly optimization model are generated by self-learning of information of historical optimal solutions; adopts variable neighborhood search to realize the local search and population diversity of the multi-objective monarch butterfly optimization model, and transfers the production in the peak period of the electricity price interval to the production in the valley period of the electricity price interval through right shift operation. The present invention adopts the organic integration of multiple strategies to significantly improve the global and local search capabilities of the optimization module, and solves the distributed flexible flow shop scheduling problem under time-sharing electricity prices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of time-of-use electricity price scheduling, and in particular relates to a distributed flexible flow shop scheduling method and system with time-of-use electricity price constraints. Background Art

[0002] At present, the Distributed Flexible Flow-shop Scheduling Problem (DFFSP) is a manufacturing model that considers multiple Flexible Flow shop Scheduling Problems (FFSP) in different geographical locations in a distributed manufacturing environment. The FFSP problem of f (f>1) factories is discussed. DFFSP is widely present in many actual production processes, such as steel, integrated circuits, and automobile manufacturing. In the FFSP problem, a group of n jobs must be processed in s stages, and each job must be processed sequentially from stage 1 to stage s (some stages can be skipped). Each stage includes m (m>1) parallel machines. In each stage, each job is processed by only one machine in that stage, and the job processing time is given. In the DFFSP problem, not only the processing order and machine allocation of the workpieces must be considered, but also the distribution of the workpieces between different factories must be solved. In DFFSP, each process of the workpiece can be processed on multiple identical or different machines, and the processing time of each parallel machine can be different. According to the production materials and actual load conditions, resources can be flexibly selected, which improves the flexibility of processing and is closer to the actual production process. Existing technologies have proven that DFFSP is a typical NP-hard problem. Therefore, how to better combine algorithms with practical problems and improve the performance of algorithms in solving practical application problems is a difficult problem that the current industry and academia urgently need to solve.

[0003] Some progress has been made in the research of DFFSP. SHAO studied the energy-saving distributed flexible flow shop scheduling problem EEDFFSP with variable machine speed and proposed a multi-objective Memetic algorithm based on multi-neighborhood to optimize the total weighted delay and energy consumption. Cai Jincao proposed a dual variable neighborhood search (DVNS) algorithm for the distributed two-stage hybrid flow shop scheduling problem (DTHPSP) with sequence-dependent setup time to simultaneously optimize and minimize the total delay time and the maximum completion time. For the DHFSP considering sequence-dependent setup time, Lei Deming et al. proposed a multi-class teaching-learning-based optimization (MTLBO) algorithm to simultaneously minimize the maximum completion time and the maximum delay time. ZHENG and WANG studied the multi-objective fuzzy DFFSP with fuzzy total processing time and fuzzy delivery time, and proposed a hybrid method combining distribution estimation algorithm and iterative greedy algorithm, using a collaborative mechanism to balance the two algorithms. LI et al. proposed a discrete artificial bee colony algorithm to solve the DFFSP with sequence-dependent setup time (SDST). The algorithm adopts a two-level encoding scheme, including a plant vector and a job permutation vector, and employs a hybrid neighborhood operator and an exchange operation of key plants to simulate the behavior of an artificial bee colony.

[0004] Manufacturing companies face huge environmental and economic challenges due to their large energy consumption. This pressure forces manufacturers to consider not only production efficiency, but also various energy consumption and costs of manufacturing systems. Electricity is one of the main energy sources for industrial production. In most parts of the world, power companies have begun to implement time-of-use electricity tariffs. Time-of-use electricity tariffs (TOU) are a method of adjusting electricity prices at different times of the day according to user needs. TOU electricity tariffs usually divide a day into several adjacent periods with alternating peaks and troughs, and assign different prices accordingly. Therefore, manufacturing companies are encouraged to shift production loads from peak periods to off-peak periods to reduce electricity costs and improve efficiency.

[0005] At present, the scheduling problem considering time-of-use electricity prices has received widespread attention. Geng Kaifeng et al. took the minimization of maximum completion time, total energy consumption cost and carbon emissions as optimization objectives, introduced the time-of-use electricity price mechanism on the basis of machine allocation and process sorting, established a scheduling model for the multi-objective green re-entrant hybrid flow shop scheduling problem (RHFSP), and used an improved multi-objective cultural gene algorithm to solve the RHFSP problem. From the perspective of production and management, SHAO et al. took the completion time and total electricity cost as optimization objectives, proposed a decomposition-based multi-objective ant colony evolutionary algorithm to solve the distributed heterogeneous hybrid flow shop scheduling problem (DHHFSP-NTOU) under time-of-use electricity prices. JIANG et al. took the total electricity cost and minimization of the maximum completion time as optimization objectives, proposed a hybrid MOEA / D algorithm, and solved the flexible job shop scheduling problem under time-of-use electricity prices. PAN et al. studied the steelmaking-refining-continuous scheduling problem under peak and valley time-of-use electricity prices, and improved the intensity Pareto evolutionary algorithm to solve this problem.

[0006] The Monarch Butterfly Optimization Algorithm (MBO) has been proven to be an efficient swarm intelligence optimization algorithm for solving continuous optimization problems. The algorithm was first proposed by Wang Gaige et al. in 2015. In the MBO algorithm, an initial population, i.e., candidate solutions, is randomly generated. The population is sorted by the fitness function value of the initial population, and the original population is divided into two sub-populations according to the sorting results. The migration operator in sub-population 1 and the adjustment operator in sub-population 2 are used to generate new sub-populations respectively, and then the two new sub-populations are merged into a new offspring population. Finally, when the termination condition is met, i.e., the maximum number of iterations is exceeded, the optimal solution is output.

[0007] In summary, the workshop scheduling problem under DFFSP and time-of-use electricity prices has received widespread attention in recent years. However, the DFFSP problem under time-of-use electricity prices has not been solved, especially in the distributed flexible flow shop environment. Due to its practical significance, it is worth proposing an effective algorithm to solve this problem. According to the current time-of-use electricity price mechanism, for the power consumption of multiple processing equipment in multiple factories in the distributed flexible flow shop scheduling environment in the running state and standby state, the production can be reasonably arranged through effective scheduling technology, which can maintain high productivity while reducing energy costs. Therefore, it is urgent to design a new distributed flexible flow shop scheduling method to solve the distributed flexible flow shop scheduling problem under time-of-use electricity prices (DFFSP-TOU).

[0008] At present, the DFFSP problem under time-of-use electricity prices has not been solved, especially in the distributed flexible flow shop environment. Solving the distributed flexible flow shop scheduling is more difficult than solving the single shop scheduling problem. The reasons are as follows:

[0009] (1) Distributed workshops involve multiple geographically dispersed workshops. Different workshops have different processing environments, and the age and processing accuracy of the processing equipment in each workshop may be different. The processing methods and processing procedures of different workshops may change. The differences between workshops increase the difficulty of solving the problem.

[0010] (2) In the actual production scheduling process of an enterprise, generally, not only one goal is considered, but multiple goals are often considered at the same time. Multi-objective optimization problems are common. Producers must not only consider meeting user needs, but also the economic benefits of the enterprise itself. On the other hand, while DFFSP optimizes multiple workshops as a whole, it should also consider the optimal processing performance of a single workshop. There is still a lack of relevant research on how to select appropriate optimization goals for each workshop and optimize multiple goals comprehensively.

[0011] (3) Compared with the traditional single-workshop scheduling problem, distributed workshop scheduling requires optimizing multiple workshops at the same time. The number of machines and workpieces involved is large, and the scale of the solution space is much larger than that of the single-workshop scheduling problem, making it difficult to find the global optimal solution to the problem.

[0012] (4) Lack of effective solution methods and domain knowledge. Approximate optimization methods are widely used to solve single-shop scheduling problems. Especially under the guidance of problem domain knowledge, the solution effect can be significantly improved. However, for distributed shop scheduling, on the one hand, approximate optimization methods have limited ability to search the solution space, and more effective solution methods still need to be explored; on the other hand, the domain knowledge mining of distributed scheduling problems is very insufficient, making it difficult to guide the design of efficient algorithms.

[0013] (5) In the actual production scheduling of enterprises, there are various random dynamic events, such as production equipment failure, energy and material shortage, processing time change, urgent workpiece insertion, workpiece delivery change, logistics, warehousing and other uncertain factors, etc., which require dynamic adjustment. The adjustment of dynamic events should not only consider the scheduling plan of the workshop, but also optimize from a global perspective, especially to improve the flexibility of the distributed manufacturing system.

[0014] Therefore, based on the above description of the theoretical research background and actual production, it is urgent to model and optimize the complex distributed flexible assembly line scheduling problem according to different constraints, decision variables, and optimization objectives, and provide a more robust scheduling solution to solve the actual scheduling problem under the constraints of time-of-use electricity prices.

[0015] Through the above analysis, the problems and defects of the existing technology are: the DFFSP problem under time-of-use electricity prices has not yet been solved, especially in the distributed flexible assembly line environment, solving the scheduling problem of the distributed flexible assembly line is more difficult than solving the scheduling problem of a single workshop. Summary of the invention

[0016] In view of the problems existing in the prior art, the present invention provides a distributed flexible flow shop scheduling method and system with time-of-use electricity price constraints.

[0017] The present invention is implemented as follows: a distributed flexible flow shop scheduling method with time-sharing electricity price constraints, the distributed flexible flow shop scheduling method with time-sharing electricity price constraints comprising: taking the flexible flow shop scheduling problem in a distributed manufacturing environment as an analysis object, analyzing the characteristics of the distributed flexible flow shop scheduling problem; based on the time-sharing electricity price constraints, establishing a DFFSP-TOU problem integer programming model, with minimizing the maximum completion time and the total electricity cost as optimization indicators; according to the distributed flexible flow shop scheduling problem characteristics DFFSP-TOU under time-sharing electricity prices, constructing a multi-objective monarch butterfly optimization model based on a self-learning mechanism, the migration operator and the adjustment operator of the multi-objective monarch butterfly optimization model are generated by self-learning of information of historical optimal solutions; using variable neighborhood search to realize local search and population diversity of the multi-objective monarch butterfly optimization model, and transferring production in a peak period of an electricity price range to production in a valley period of an electricity price range through a right shift operation.

[0018] Furthermore, the distributed flexible flow shop scheduling method with time-of-use electricity price constraints includes the following steps:

[0019] Step 1: Determine the DFFSP-TOU problem and establish a DFFSP integer programming model for time-of-use electricity prices;

[0020] Step 2: Construct a multi-objective monarch butterfly optimization model based on learning mechanism;

[0021] Step three, use the multi-objective monarch butterfly optimization model based on learning mechanism to solve the DFFSP problem.

[0022] Furthermore, the DFFSP problem based on time-of-use electricity prices in step one includes factory allocation problem, machine allocation problem and sorting problem; among them, the factory allocation problem is to assign the most reasonable processing factory to each workpiece, the machine allocation problem is to determine the processing machine for each process in each workshop, and the sorting problem is to arrange a reasonable processing sequence for the workpieces in each workshop; the DFFSP-TOU problem is regarded as a multi-objective optimization problem, including the maximum completion time and the total electricity cost.

[0023] Furthermore, the DFFSP integer programming model of the time-of-use electricity price in step 1 includes:

[0024] Define the optimization objectives of DFFSP-TOU, including the maximum completion time C max (x) and the total electricity cost TEC, TEC includes the electricity cost of the machine in the running state and the standby state, and the objective function is as follows:

[0025] min(f1,f2);

[0026] f1=C max ;

[0027] f2=TEC=PE+IE;

[0028] The constraints are:

[0029]

[0030]

[0031] S i,k+1 -(S i,k +p i.k )≥0;

[0032] Y i,j,k,f +Y i+1,j,k,f ≤1;

[0033] S i+1,k -(S i,k +p i.k )-B(2-Y i,j,k,f -Y i,j,k,f +Y i+1,j,k,f )≥0;

[0034] Define the completion time of each workpiece in each stage as:

[0035] C i,k =S i,k +p i.k ;

[0036] C i,s ≤T;

[0037]

[0038] Define the working state of the machine as:

[0039]

[0040]

[0041] The power generated by the machine in the working state PE is defined as:

[0042]

[0043] The power generated by the machine in standby mode IE is defined as:

[0044]

[0045] Where F is the number of factories; n is the number of workpieces; S is the number of processing stages; T is the total number of time periods; f is the factory number f∈{1,2,...,F}; i is the workpiece number, i∈{1,2,...,n}; j is the machine number, j∈{1,2,...,m f,k}; t represents the time period number, t∈{1,2,...,T}; k represents the stage number, k∈{1,2,...,S}; m f,k represents the number of parallel machines in the kth stage of factory f; p i.k represents the processing time of workpiece i in the kth stage; S i,k represents the start time of workpiece i in stage k; C i,k represents the completion time of job i in stage k; C max represents the maximum completion time; b i,k,t indicates that workpiece i is executed at stage k at time t; P kR represents the operating power of the machine at the kth stage; P kI represents the idle power of the machine at the kth stage; TEC represents the total electricity cost; B represents an integer; X i,f ∈(0,1) means that if job i is assigned to factory f, it is 1, otherwise it is 0; Y i,j,k,f ∈(0,1) means that if job i is processed on machine j in stage k of factory f, it is 1, otherwise it is 0; Z i,j,k,f,t ∈(0,1) means that if job i is processed on machine j in stage k of factory f for time t, it is 1, otherwise it is 0; It means that if workpiece i is in working state in the kth stage of factory f during period t, it is 1, otherwise it is 0; It means that if job i is in idle state in stage k of factory f during period t, it is 1, otherwise it is 0.

[0046] The electricity price function of the factory in period t is:

[0047]

[0048] In the formula, E q represents the electricity price in the Qth interval, and [T1,T q ]’s period is divided into q interval periods.

[0049] Furthermore, the construction of the multi-objective monarch butterfly optimization model based on the learning mechanism in step 2 includes:

[0050] A multi-objective monarch butterfly optimization model based on self-learning mechanism is constructed, and the NEH artifact allocation rules, migration operators, adjustment operators, variable neighborhood search operations and right shift operations are designed according to the encoding and decoding rules.

[0051] Furthermore, the construction of the multi-objective monarch butterfly optimization model based on the learning mechanism in step 2 also includes:

[0052] (1) Encoding and decoding

[0053] The multi-objective monarch butterfly optimization model based on the self-learning mechanism initially generates a matrix of population size * number of jobs according to the number of jobs and the size of the population. Each solution is randomly composed of decimals between -100 and 100; the decimals are converted into integer sequences according to their size, and then the integer sequences are encoded and decoded.

[0054] All workpieces are assigned to each factory through the NEH rule, and the processing order of workpieces in the factory is determined by the permutation-based encoding mechanism; the processing machine is determined by the first-input first-output rule and the earliest available machine rule; the permutation-based encoding mechanism is as follows: there is a set of F sublists π = [π 1 ,π 2 ,...,π f ] is a list of assignments that represent solutions, where each π f represents a factory, π f =[π f (1),π f (2),...,π f (n),] represents the job processing sequence of the first stage workpieces in the fth factory.

[0055] Use the earliest completion time rule to decode the job order of each stage; in the first stage, all jobs are processed in the order of their appearance in the solution representation π; according to the completion time of the first stage, all jobs are sorted in ascending order of the completion time of the first stage. If the workpieces have the same preparation time at the beginning of stage k, k=2,...,S, they are arranged in the same corresponding order as stage k-1. Use the earliest available machine rule to select the machine for the workpiece, specifically including: 1) Let k=1,C i,0 =0, i=1,2,...n; 2) Determine the number of each workpiece J of machine j at stage k i The earliest allowed processing time - the maximum release time r j or C i,k-1 , r j is the release time of machine j, C i,k-1 is the completion time of job i in stage k-1; 3) for each job J i , select the machine with the smallest maximum machine release time for processing, P i,kis the processing time of job i in stage k, C i,k-1 +P i,k Release time for the machine; 4) Update workpiece J i The release time and completion time of machine j in stage k; 5) let k=k-1; 6) repeat steps 2) to 6) until all stages are completed.

[0056] (2) Population initialization

[0057] According to the initial decoding sorting results, the population is divided into two sub-populations. Sub-population 1 uses the learning transfer operator to update the offspring individuals, and sub-population 2 uses the learning adjustment operator to update all offspring individuals. The number of individuals in sub-population 1 is NP1, and the number of individuals in sub-population 2 is NP2, then:

[0058]

[0059] NP2=N-NP1;

[0060] Where p = 5 / 12 represents the migration rate in subpopulation 1, and N represents the population size.

[0061] (3) Learning Transfer Operator

[0062] In the MOLMBO algorithm, the candidate solutions in subpopulation 1 are generated as:

[0063]

[0064]

[0065] Where, L MO is the learning rate, L for the first iteration of subpopulation 1 MO Set to 0.5, and self-learning is generated in subsequent iterations until the algorithm reaches the stopping condition; is a randomly selected individual from the original population, represents the i-th solution of the t+1th generation, is the i-th solution of generation t; is an individual randomly selected from the first N×rand solutions of the tth generation, N is the population size, F i is the solution x of the mutation operator F i , parameter F∈[0,1]; is a randomly selected individual from subpopulation 1; and is an individual randomly selected from subpopulation 2.

[0066] (4) Learning and Adjusting Operators

[0067] In the MOLMBO algorithm, the candidate solutions in subpopulation 2 are generated as follows:

[0068]

[0069]

[0070] Where, L BAO is the learning rate in subpopulation 2; is the jth solution of the t+1th generation, is the jth solution of the tth generation; is the best individual among all populations in generation t, is the worst individual in the entire population in generation t; F is the mutation operator that controls the amplitude of mutation, F j is x j The parameters of the mutation operator used are F∈[0,1], is an individual randomly selected from subpopulation 1, and An individual randomly selected from the entire population.

[0071] (5) Local Search

[0072] A variable neighborhood search is adopted. The reverse operation is to randomly select two workpieces i and j (i≠j, 1≤i, j≤n) from the factory f, sort all the workpieces between workpieces i and j in reverse order, and obtain new offspring individuals; the exchange operation is to randomly select a workpiece i from the factory f, exchange the positions of workpiece i with the remaining n-1 workpieces, and then obtain new offspring individuals; the insertion operation is to randomly select a workpiece i from the factory f, insert workpiece i into the n gaps of n-1 workpieces, and obtain new offspring individuals; let the objective function value corresponding to the original sequence be fitness(n), and calculate the objective function value fitness(i), i∈(1,n-1) after the exchange; judge the dominance relationship, take the sequence corresponding to the optimal solution set as the optimal exchange sequence and record its objective function value.

[0073] (6) Right shift operation

[0074] Under the condition that the maximum completion time remains unchanged, the production in the peak period of the electricity price range is transferred to the production in the valley period of the electricity price range through the right shift operation. Limited by the characteristics of the DFFSP problem, the right shift operation is adjusted forward from the last stage in sequence; the right shift operation is performed from the first factory to the last factory in sequence; the machine idle time is searched in sequence from the last stage of the first factory, that is, the S stage to the 1st stage. The idle time in the S stage can be obtained by Calculated, the idle time in the remaining stages is calculated by Calculate; if space time>0, determine whether the workpiece right shift will be in the low electricity price range; if so, perform the right shift operation, otherwise, do not perform the right shift operation.

[0075] (7) Non-dominated sorting elite retention strategy

[0076] The final population generated includes a set of solutions and the corresponding C max The two objective function values ​​of and TEC are used for non-dominated sorting, and the Pareto dominance relationship and Pareto level are calculated; the entire population is sorted and the crowding degree is calculated according to the Pareto level from small to large; elite retention selection is performed, and solutions of the same level are selected into the elite population according to the order of Pareto level from low to high; if the solutions of the same level cannot be put in, they are selected in the order of crowding from large to small, and the selected elite population is put into the next iteration; the algorithm continuously iterates until the termination condition is met, and the optimal individual population is output to obtain the best solution.

[0077] Another object of the present invention is to provide a distributed flexible flow shop scheduling system with time-sharing electricity price constraints using the distributed flexible flow shop scheduling method with time-sharing electricity price constraints, the distributed flexible flow shop scheduling system with time-sharing electricity price constraints comprising:

[0078] Multi-objective optimization problem determination module, used to determine the distributed flexible flow shop scheduling problem;

[0079] Integer programming model building module, used to build the DFFSP integer programming model of time-of-use electricity price;

[0080] The optimization model building module is used to build a multi-objective monarch butterfly optimization model based on learning mechanism;

[0081] The problem solving module uses the constructed multi-objective monarch butterfly optimization model to solve the DFFSP problem.

[0082] Another object of the present invention is to provide a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the distributed flexible assembly line scheduling method with time-of-use electricity price constraints.

[0083] Another object of the present invention is to provide a computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to execute the steps of the distributed flexible assembly line scheduling method with time-of-use electricity price constraints.

[0084] Another object of the present invention is to provide an information data processing terminal, which is used to implement the distributed flexible flow shop scheduling system with time-of-use electricity price constraints.

[0085] In combination with the above technical solutions and the technical problems solved, the advantages and positive effects of the technical solutions to be protected by the present invention are as follows:

[0086] First, the present invention takes the Distributed Flexible Flow-shop Scheduling Problem (DFFSP) in a distributed manufacturing environment as the analysis object, and focuses on analyzing the characteristics of the distributed flexible flow-shop scheduling problem; considering the time-of-use electricity tariffs (TOU) constraints, an integer programming model for the DFFSP-TOU problem is established, and the optimization index is to minimize the maximum completion time and the total electricity cost. According to the characteristics of the distributed flexible flow-shop scheduling problem DFFSP-TOU under time-of-use electricity tariffs, the present invention proposes a multi-objective monarch butterfly optimization algorithm (MOLMBO) based on a self-learning mechanism. The migration operator and adjustment operator of the optimization algorithm are generated by self-learning of the information of the historical optimal solution to enhance the self-learning and self-adaptive ability of the algorithm; variable neighborhood search is used to improve the local search performance and population diversity of the optimization algorithm; the production in the peak period of the electricity price range is transferred to the production in the valley period of the electricity price range through the right shift operation, reducing the energy consumption of the machine in the standby state, thereby reducing the electricity cost. The experimental results show that the MOLMBO algorithm of the present invention is an effective method for solving the distributed flexible flow shop scheduling problem.

[0087] The present invention analyzes the distributed flexible flow shop scheduling problem with the goal of minimizing the maximum completion time and total electricity cost, and establishes the MILP model of the problem. For the DFFSP-TOU problem, the present invention proposes a multi-objective monarch butterfly optimization algorithm MOLMBO based on a self-learning mechanism, which uses the problem's own prior knowledge to achieve the overall evolution of multi-objective distributed scheduling through information interaction and fusion between populations. The organic fusion of multiple strategies significantly improves the algorithm's global and local search capabilities. Compared with the two more classic multi-objective algorithms, the effectiveness and superiority of the MOLMBO algorithm are verified on examples of different scales. The present invention considers the distributed scheduling problem in static mode, but in the actual production scheduling process of the enterprise, there are a variety of random dynamic events with uncertain factors such as equipment failure, personnel scheduling, emergency orders, logistics warehousing, etc., which require dynamic adjustments to dynamic events.

[0088] In view of the excellent performance of the monarch butterfly optimization algorithm in solving continuous problems, the present invention combines the characteristics of the distributed flexible flow shop scheduling problem on the basis of MBO, designs an efficient multi-objective monarch butterfly optimization algorithm based on self-learning mechanism to solve DFFSP, and solves the distributed flexible flow shop scheduling problem (DFFSP-TOU) under time-of-use electricity price. The present invention discretizes the continuous problem through an effective encoding and decoding strategy through a multi-objective monarch butterfly optimization algorithm based on a learning mechanism, designs a NEH workpiece allocation rule to reasonably and orderly allocate the workpieces to the corresponding factories, guides the self-learning and self-adaptation capabilities of the algorithm through learning migration operators and learning adjustment operators; maintains the diversity of the population through a variable neighborhood search operation strategy, and improves the local search capability of the algorithm; and transfers the production of workpieces during peak electricity price periods to low electricity price periods for production without affecting the processing procedures and the maximum completion time through a right shift operation strategy, which greatly reduces the total electricity cost, achieves the purpose of energy saving and consumption reduction, reduces the production cost of the enterprise, and improves the core competitiveness of the enterprise.

[0089] Second, the present invention models and optimizes the complex distributed flexible assembly line scheduling problem according to different constraints, decision variables, and optimization objectives, provides a highly robust scheduling solution and conducts in-depth analysis, and proposes an efficient meta-heuristic multi-objective monarch butterfly optimization algorithm to address the energy consumption problem in a distributed flexible assembly line environment. This algorithm considers the actual scheduling problem under the constraints of time-of-use electricity prices, and has important theoretical significance and application value.

[0090] Third, as auxiliary evidence of the inventiveness of the claims of the present invention, it is also reflected in the following important aspects:

[0091] (1) The expected benefits and commercial value of the technical solution of the present invention after transformation are as follows: Scheduling optimization problems are everywhere. Aiming at the scheduling problem of distributed flexible flow shop, the present invention adopts a multi-objective monarch butterfly optimization algorithm based on learning mechanism. Through effective encoding and decoding strategies, the continuous problem is discretized, and the NEH workpiece allocation rule is designed to reasonably and orderly allocate the workpieces to the corresponding factories. The self-learning and self-adaptive capabilities of the algorithm are guided by the learning migration operator and the learning adjustment operator. The diversity of the population is maintained through the variable neighborhood search operation strategy, and the local search capability of the algorithm is improved. Through the right shift operation strategy, the production of workpieces in the peak electricity price period is transferred to the low electricity price period without affecting the processing procedures and the maximum completion time, which greatly reduces the total electricity cost, achieves the purpose of energy saving and consumption reduction, reduces the production cost of the enterprise, and then improves the core competitiveness of the enterprise. According to the specific enterprise, the specific solution is designed, especially for high-power and energy-consuming enterprises such as steel forging, automobile manufacturing, and food processing. After transformation, the technical solution of the present invention will save energy and reduce consumption for the enterprise, and reduce electricity costs, which has high expected benefits and commercial value.

[0092] (2) The technical solution of the present invention fills the technical gap in the industry at home and abroad: In the distributed flexible assembly line workshop scheduling system, the technical solution of the present invention is proposed for the first time, filling the technical gap in the industry. BRIEF DESCRIPTION OF THE DRAWINGS

[0093] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0094] Figure 1 It is a flow chart of a scheduling method for a distributed flexible assembly line workshop with time-of-use electricity price constraints provided by an embodiment of the present invention;

[0095] Figure 2 This is a schematic diagram of distributed flexible flow shop scheduling provided by an embodiment of the present invention;

[0096] Figure 3 is an example diagram of TEC calculation provided by an embodiment of the present invention;

[0097] Figure 4 is a coding schematic diagram provided by an embodiment of the present invention;

[0098] Figure 5 is a schematic diagram of a local search provided by an embodiment of the present invention;

[0099] Fig. 6A This is a Gantt chart before a right shift operation provided by an embodiment of the present invention;

[0100] Figure 6B is a Gantt chart after a right shift operation provided by an embodiment of the present invention;

[0101] Fig. 7A It is a Gantt chart of 10-5-7-100 factory 1 before right shift provided by an embodiment of the present invention;

[0102] Figure 7B This is the Gantt chart after the 10-5-7-100 factory 1 is shifted right provided by an embodiment of the present invention;

[0103] Figure 7C It is a Gantt chart of 10-5-7-100 factory 2 before right shift provided by an embodiment of the present invention;

[0104] Fig.7D This is the Gantt chart after the 10-5-7-100 factory 2 is shifted right provided by an embodiment of the present invention;

[0105] Fig. 8A It is a Gantt chart of 15-5-8-100 factory 1 before right shift provided by an embodiment of the present invention;

[0106] Figure 8B It is a Gantt chart after the 15-5-8-100 factory 1 is shifted right provided by an embodiment of the present invention;

[0107] Figure 8C It is a Gantt chart of 15-5-8-100 factory 2 before right shift provided by an embodiment of the present invention;

[0108] Fig.8D This is the Gantt chart after the 15-5-8-100 factory 2 is shifted right provided by an embodiment of the present invention;

[0109] Fig.9A It is a Gantt chart of 20-5-9-100 factory 1 before right shift provided by an embodiment of the present invention;

[0110] Fig. 9B It is a Gantt chart after the 20-5-9-100 factory 1 is shifted right provided by an embodiment of the present invention;

[0111] Fig. 9C It is a Gantt chart of 20-5-9-100 factory 2 before right shift provided by an embodiment of the present invention;

[0112] Fig.9D It is a Gantt chart after the 20-5-9-100 factory 2 is shifted right provided by an embodiment of the present invention;

[0113] Fig. 10A It is a Gantt chart of 30-5-12-100 factory 1 before right shift provided by an embodiment of the present invention;

[0114] Fig. 10B It is a Gantt chart after the 30-5-12-100 factory 1 is shifted right provided by an embodiment of the present invention;

[0115] Fig. 10C It is a Gantt chart of 30-5-12-100 factory 2 before right shift provided by an embodiment of the present invention;

[0116] Fig. 10D It is a Gantt chart after the 30-5-12-100 factory 2 is shifted right provided by an embodiment of the present invention;

[0117] Fig.11A It is a Gantt chart of 40-5-13-100 factory 1 before right shift provided by an embodiment of the present invention;

[0118] Fig. 11B It is a Gantt chart after the 40-5-13-100 factory 1 is shifted right provided by an embodiment of the present invention;

[0119] Fig. 11C It is a Gantt chart of 40-5-13-100 factory 2 before right shift provided by an embodiment of the present invention;

[0120] Fig.11D It is a Gantt chart after the 40-5-13-100 factory 2 is shifted right provided by an embodiment of the present invention;

[0121] Fig. 12A It is a Gantt chart of 50-5-17-100 factory 1 before right shift provided by an embodiment of the present invention;

[0122] Fig. 12B It is a Gantt chart after the 50-5-17-100 factory 1 is shifted right provided by an embodiment of the present invention;

[0123] Fig. 12C It is a Gantt chart of 50-5-17-100 factory 2 before right shift provided by an embodiment of the present invention;

[0124] Fig.12D It is a Gantt chart after the 50-5-17-1000 factory 2 is shifted right provided by an embodiment of the present invention;

[0125] Fig.13A It is a Gantt chart of 60-5-20-100 factory 1 before right shift provided by an embodiment of the present invention;

[0126] Fig. 13B It is a Gantt chart after the 60-5-20-100 factory 1 is shifted right provided by an embodiment of the present invention;

[0127] Fig. 13C It is a Gantt chart of 60-5-20-100 factory 2 before right shift provided by an embodiment of the present invention;

[0128] Fig.13D This is the Gantt chart of the 60-5-20-100 factory 2 after right shifting provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0129] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0130] In view of the problems existing in the prior art, the present invention provides a distributed flexible flow shop scheduling method and system with time-of-use electricity price constraints. The present invention is described in detail below with reference to the accompanying drawings.

[0131] like Figure 1 As shown, the distributed flexible flow shop scheduling method with time-of-use electricity price constraints provided by the embodiment of the present invention includes the following steps:

[0132] S101, taking the flexible flow shop scheduling problem in a distributed manufacturing environment as the analysis object, analyzes the characteristics of the distributed flexible flow shop scheduling problem;

[0133] S102, based on the time-of-use electricity price constraint, an integer programming model for the DFFSP-TOU problem is established, with minimizing the maximum completion time and total electricity cost as the optimization index;

[0134] S103, according to the characteristics of the distributed flexible flow shop scheduling problem DFFSP-TOU under time-of-use electricity prices, a multi-objective monarch butterfly optimization model based on a self-learning mechanism is constructed, and the migration operator and adjustment operator of the multi-objective monarch butterfly optimization model are generated through self-learning of information on historical optimal solutions;

[0135] S104, using variable neighborhood search to achieve local search and population diversity of the model, and transferring the production in the peak period of the electricity price range to the production in the valley period of the electricity price range through right shift operation.

[0136] As a preferred embodiment, the distributed flexible flow shop scheduling method with time-of-use electricity price constraints provided by the embodiment of the present invention specifically includes the following steps:

[0137] 1. Distributed Flexible Flow Shop Scheduling Problem

[0138] 1.1 Problem Description

[0139] The DFFSP considering time-of-use electricity prices can be described as follows: n workpieces are assigned to F factories with different geographical locations. Each factory f contains a flexible flow shop. All assigned workpieces need to go through S stages. The kth stage consists of m f,k unrelated parallel machines. Different constraints and assumptions will lead to different scheduling problems. To better describe the problem, consider the following assumptions: once a workpiece is assigned to a factory, its processing operation must be completed in this factory; each workpiece can be processed from time zero, and the processing process cannot be interrupted; at any time, a workpiece can only be processed on one machine, and a machine can only process one job at a time; the preparation time of the machine and the transportation time of the workpiece are not considered, that is, all machines are available at any time; the buffer between any two adjacent stages is infinite. Therefore, DFFSP can be decomposed into three sub-problems: (1) assigning the most reasonable processing workshop to each workpiece, that is, factory allocation; (2) determining the processing machine for each process in each workshop, that is, machine allocation; (3) arranging a reasonable processing order for the workpieces in each workshop, that is, the sorting problem. The schematic diagram of DFFSP is shown in the figure below. Figure 2 shown.

[0140] DFFSP-TOU is a multi-objective problem. maxFor TEC, the two objectives conflict with each other, because lower processing time requires higher processing efficiency, which leads to more energy consumption. The task of DFFSP-TOU is to find a set of feasible solutions (factory allocation, workpiece sequence, machine selection) that have a good trade-off between the objectives. Therefore, the DFFSP-TOU problem can be regarded as a multi-objective optimization problem.

[0141] 1.2 Symbol Definition

[0142] The symbol definitions used in the problem description and modeling of the present invention are shown in Table 1.

[0143] Table 1 Symbols

[0144]

[0145]

[0146] 1.3 Model establishment

[0147] The DFFSP integer programming model considering time-of-use electricity prices is as follows:

[0148] Objective function:

[0149] min(f1,f2) (1)

[0150] f1=C max (2)

[0151] f2=TEC=PE+IE (3)

[0152] Constraints:

[0153]

[0154]

[0155] S i,k+1 -(S i,k +p i.k )≥0 (6)

[0156] Y i,j,k,f +Y i+1,j,k,f ≤1 (7)

[0157] S i+1,k -(S i,k +p i.k )-B(2-Y i,j,k,f -Y i,j,k,f +Y i+1,j,k,f )≥0 (8)

[0158] C i,k =S i,k +pi.k (9)

[0159] C i,s ≤T (10)

[0160]

[0161]

[0162]

[0163]

[0164]

[0165] Formulas (1) to (3) define the optimization objective of DFFSP-TOU, namely, the maximum completion time C max (x) and the total electricity cost TEC, TEC includes the electricity cost of the machine in running state and standby state; Formula (4) ensures that each workpiece must be accurately assigned to a factory; Formula (5) ensures that each operation can be processed in each stage it must pass through and can only select one available machine; Formula (6) ensures that the operation of a job can only start the operation of the next stage after the operation of the previous stage is completed. Formulas (7) to (8) ensure that two jobs processed on the same machine can only start the next job after the previous job is completed. Formula (9) defines the completion time of each workpiece in each stage. Formula (10) ensures that the completion time of each job cannot be greater than the total number of time periods. Formula (11) ensures that the processing time of each workpiece i in each stage k is equal to p i,k ; Formula (12) defines the working state of the machine; Formula (13) ensures that each machine can only be in one of the two states: working and standby; Formula (14) defines the power generated by the machine in the working state PE; Formula (15) defines the power generated by the machine in the standby state IE. Due to the delay in the arrival of the workpiece, the energy consumption generated by the machine while waiting for processing.

[0166]

[0167] Power is the amount of electricity consumed by an electrical device in one second, and the amount of electricity consumed is proportional to the duration of electricity consumption. The amount of electricity consumed in one second is called power, and power can indicate how fast an electrical device consumes electricity. From this, we can know that within a specified time, the amount of electricity consumed is also proportional to power. That is: electricity consumption = electrical power × electricity consumption time. The unit of power is watt (W), the unit of time is hour (h), and the unit of electricity consumption is watt-hour (Wh). Formula (16) represents the electricity price of the factory in time period t, E q represents the electricity price in the Qth interval. q ]’s period is divided into q interval periods.

[0168] 1.4 Simple example of calculating TEC

[0169] The total electricity cost TEC under DFFSP-TOU refers to the sum of the electricity consumption costs of all processing equipment in different electricity price ranges during the entire scheduling cycle in a distributed scheduling environment. In the DFFSP problem, the processing of workpieces goes through different periods of time, and the energy consumption is difficult to match a certain electricity price range. Therefore, the sum of the electricity consumption of equipment in different electricity price ranges should be considered and then added up to calculate the electricity cost. Figure 3 An example of electricity cost calculation.

[0170] According to the different electricity prices corresponding to 24 hours, the DFFSP-TOU scheduling cycle is divided into three time intervals, namely [T1, T2], [T2, T3] and [T3, T4], where T1 = 0, T2 = 8, T3 = 16, T4 = 24, and the corresponding electricity prices are P1 = 0.8, P2 = 2.9. and P3 = 1.5, respectively, in units of yuan / kWh. The electricity cost tec of workpiece i operating on machine j in the DFFSP problem. According to Figure 3 The Gantt chart of AF workpiece processing is shown in Table 2. Table 2 shows the start time and completion time of each workpiece. Suppose S ij is the start time of the workpiece, C ij is the completion time of the workpiece, P C is the power consumption per unit time, which is set to 1 here. The power cost of each workpiece can be calculated using formula (17).

[0171] Table 2 Start time and completion time of each workpiece

[0172]

[0173] Atec=P C (C ij -S ij )P1=4

[0174] Btec=P C (T2-S ij )P1+P C (C ij -T2)P2=11.9

[0175] Ctec=P C (T2-S ij )P1+P C (T3-T2)P2+P C (C ij -T3)P3=27

[0176] Dtec=P C (C ij-S ij )P2=17.4

[0177] Etec=P C (T3-S ij )P2+P C (C ij -T3)P3=13.3

[0178] Ftec=P C (C ij -S ij )P3=7.5 (17)

[0179] 2. Solving DFFSP with a multi-objective monarch butterfly optimization algorithm based on learning mechanism

[0180] 2.1 Monarch butterfly multi-objective optimization algorithm based on learning mechanism

[0181] Since each iteration of the monarch butterfly optimization algorithm is not self-learning, the collaborative mechanism of swarm intelligence is random and blind here. The present invention proposes a multi-objective monarch butterfly optimization algorithm (Multi-Objective Learning Monarch Butterfly Optimization algorithm, MOLMBO) based on a self-learning mechanism to enhance the self-learning and self-adaptive capabilities of the algorithm. According to the encoding and decoding rules, the NEH workpiece allocation rule, migration operator, adjustment operator, variable neighborhood search operation and right shift operation are designed. In order to compare the effectiveness of the algorithm and the MOLMBO algorithm without neighborhood search, the algorithm is recorded as MOLMBO-VNS here, and its algorithm pseudo code is shown in Table 3.

[0182] Table 3 MOLMBO-VNS algorithm

[0183]

[0184] 2.2 Encoding and Decoding

[0185] The MOLMBO algorithm starts by generating a matrix of population size * number of jobs according to the number of jobs and the size of the population. Each solution is randomly composed of decimals between -100 and 100. Then, according to the size of the decimals, they are converted into integer sequences, and then the integer sequences are encoded and decoded according to the following rules.

[0186] DFFSP is divided into three sub-problems: factory allocation, machine selection, and determination of workpiece processing order. First, all workpieces are allocated to each factory through the NEH (Nawaz Enscore Ham) rule. Secondly, the processing order of workpieces in the factory is determined by the permutation-based encoding mechanism of the literature "FERNANDEZ-VIAGASV, PEREZ-GONZALEZ P, FRAMINAN J. Efficiency of the solution representations for the hybrid flow shop scheduling problem with makespan objective [J]. Computers and Operations Research, 2019, 109: 77-88.", "SHAO W, SHAO Z, PI D. Modeling and multi-neighborhood iterated greedy algorithm for distributed hybrid flow shops scheduled problem [J]. Knowledge-Based Systems, 2020, 194: 105527.". Finally, the first-input first-output rule and the earliest available machine rule are used to determine which machine to process (machine selection). The permutation-based encoding mechanism is as follows: There is a set of F sublists π = [π 1 ,π 2 ,...,π f ] to represent the solution, where each π f represents a factory, π f =[π f (1),π f (2),...,π f (n),] represents the processing sequence of the first stage workpiece in the fth factory. The coding diagram is as follows Figure 4 shown.

[0187] In order to decode the job sequence of each stage, the present invention uses the Earliest Completion Time rule (ECT). In the first stage, all jobs are processed in the order in which they appear in the solution representation π. In the next stage, all jobs are sorted in ascending order of the completion time of the previous stage according to the completion time of the previous stage. If some workpieces have the same preparation time at the beginning of stage k (k=2,...,S), the present invention arranges them into the same corresponding order as stage k-1. In terms of machine selection of workpieces, the First Available Machine rule (FAM) is used. The specific process is as follows: (1) Let k=1, C i,0 =0, i = 1, 2, ... n; (2) Determine the number of each workpiece J of machine j at stage k i The earliest allowed processing time, i.e. the maximum release time r j or C i,k-1 , r j is the release time of machine j, C i,k-1 is the completion time of job i in stage k-1; (3) for each job J i , select the machine with the smallest maximum machine release time for processing, P i,k is the processing time of job i in stage k, C i,k-1 +P i,k Release time for the machine; (4) Update workpiece J i The release time and completion time of machine j in stage k; (5) let k = k-1; (6) repeat steps (2) to (6) until all stages are completed.

[0188] 2.3 Population Initialization

[0189] According to the initial decoding sorting results, the population is divided into two sub-populations. Sub-population 1 uses the learning transfer operator (LMO) to update the offspring individuals, and sub-population 2 uses the learning adjustment operator (LBAO) to update all offspring individuals. The number of individuals in sub-population 1 is NP1, and the number of individuals in sub-population 2 is NP2.

[0190]

[0191] NP2=N-NP1 (19)

[0192] Where p=5 / 12 represents the migration rate in subpopulation 1, and N represents the population size.

[0193] 2.4 Learning Transfer Operator

[0194] In the MOLMBO algorithm, the candidate solutions in subpopulation 1 are generated as:

[0195]

[0196]

[0197] Among them, L MO Represents the learning rate, L for the first iteration of subpopulation 1 MO It is set to 0.5, and self-learning is generated in subsequent iterations until the algorithm reaches the stopping condition. is a randomly selected individual from the original population, represents the i-th solution of the t+1th generation, is the i-th solution of generation t. is an individual randomly selected from the first N×rand (N is the population size) solutions of the tth generation, F i is the solution x of the mutation operator F i , parameter F∈[0,1]. is a randomly selected individual from subpopulation 1. and is an individual randomly selected from subpopulation 2.

[0198] 2.5 Learning to Adjust Operators

[0199] In the MOLMBO algorithm, the candidate solutions in subpopulation 2 are generated as follows:

[0200]

[0201]

[0202] Among them, L BAO is the learning rate in subpopulation 2. is the jth solution of the t+1th generation, is the jth solution of the tth generation. is the best individual among all populations in generation t, is the worst individual in the entire population in generation t. F is the mutation operator that controls the amplitude of mutation, F j is x j The parameters of the mutation operator used are f∈[0,1], is an individual randomly selected from subpopulation 1, and An individual randomly selected from the entire population.

[0203] In the learning transfer operator, formula (21) improves the convergence speed of the algorithm. In the later iterations, formula (22) increases the diversity of subpopulation 1. In the learning adjustment operator, formula (24) avoids poor solutions and finds the optimal solution. Formula (25) ensures the optimization ability of the algorithm in the later iterations and prevents subpopulation 2 from falling into the local optimal state. In the algorithm, the operation of the t+1th iteration is guided by the prior knowledge of the tth iteration. L MO and L BAO In the t+1 iteration process, the production is calculated based on the historical data information in the archive, and the parameter adaptive self-learning is completed. The MOLMBO algorithm transmits neighborhood information to future generations by learning migration operators and adjustment operators, realizing the self-learning mechanism of swarm intelligence.

[0204] 2.6 Local Search

[0205] The present invention adopts variable neighborhood search (VNS) to improve the local search performance and population diversity of the algorithm. Figure 5 The figure is a schematic diagram of the local search reversal operation, crossover operation and insertion operation. The reversal operation is to randomly select two workpieces i and j (i≠j, 1≤i, j≤n) from the factory f, sort all the workpieces between workpieces i and j in reverse order, and obtain new offspring individuals; the exchange operation is to randomly select a workpiece i from the factory f, exchange the positions of workpiece i with the remaining n-1 workpieces, and then obtain new offspring individuals; the insertion operation is to randomly select a workpiece i from the factory f, insert workpiece i into the n gaps of n-1 workpieces, and then obtain new offspring individuals. Finally, let the objective function value corresponding to the original sequence be fitness(n), calculate the objective function value after the exchange fitness(i), i∈(1,n-1); and judge its dominance relationship, take the sequence corresponding to the optimal solution set as the optimal exchange sequence and record its objective function value.

[0206] 2.7 Right Shift Operation

[0207] The present invention considers the DFFSP problem with maximum completion time and total electricity cost as the target, and refers to the reference "SHAOW, SHAO Z, PI D. Multi-local search-based general variable neighborhood search for distributed flow shop scheduling in heterogeneous multi-factories [J]. Applied Soft Computing, 2022, 125." The right shift operation, while keeping the maximum completion time unchanged, transfers the production in the peak period of the electricity price range to the production in the valley period of the electricity price range through the right shift operation, which can reduce the energy consumption of each machine in the standby state, thereby reducing the total electricity cost. Limited by the characteristics of the DFFSP problem, the right shift operation is adjusted from the last stage to the front. First, the right shift operation is performed from the first factory to the last factory in sequence; secondly, the machine idle time is searched in sequence from the last stage of the first factory, that is, from the S stage to the 1st stage. The idle time in the S stage can be obtained by Calculated, the idle time in the remaining stages can be calculated by Calculate, if the idle time>0, determine whether the workpiece right shift will be in the low electricity price range, if so, perform the right shift operation, otherwise, do not perform the right shift operation. Fig. 6A This is the Gantt chart before moving right. Figure 6B This is the Gantt chart after right shift. If 20-40 is the high electricity price interval and 40-60 is the low electricity price interval, it can be seen from the figure that by right shifting the second stage workpiece 1 and the third stage workpiece 4 from the high electricity price interval to the low electricity price interval for production, the maximum completion time is not changed, and the electricity cost is reduced, thereby improving the solution.

[0208] 2.8 Non-dominated sorting elite retention strategy

[0209] After the above operations, the final population generated includes a set of solutions and the corresponding C max The two objective function values ​​of TEC are first sorted by non-dominance, and the Pareto dominance relationship and Pareto level are calculated. Then, the entire population is sorted from small to large according to the Pareto level. Secondly, in order to make the solution more uniform and convenient to select in the target space, the crowding degree is calculated. Finally, the elite retention selection is performed. According to the order of Pareto level from low to high, the solutions of the same level are selected into the elite population. If the solutions of the same level cannot be put in, they are selected in the order of crowding from large to small, and then the selected elite population is put into the next iteration. The algorithm continuously iterates until the termination condition is met, outputs the optimal individual population, and obtains the best solution.

[0210] The distributed flexible flow shop scheduling system with time-of-use electricity price constraints provided by the embodiment of the present invention includes:

[0211] Multi-objective optimization problem determination module, used to determine the distributed flexible flow shop scheduling problem;

[0212] Integer programming model building module, used to build the DFFSP integer programming model of time-of-use electricity price;

[0213] The optimization model building module is used to build a multi-objective monarch butterfly optimization model based on learning mechanism;

[0214] The problem solving module uses the constructed multi-objective monarch butterfly optimization model to solve the DFFSP problem.

[0215] The present invention designs small-scale and medium-large-scale actual distributed flexible flow shop scheduling problem test algorithms, and performs flexible flow sorting production on 10 workpieces in 7 machines in 2 factories, 15 workpieces in 8 machines in 2 factories, 20 workpieces in 9 machines in 2 factories, 30 workpieces in 12 machines in 2 factories, 40 workpieces in 13 machines in 2 factories, 50 workpieces in 17 machines in 2 factories, 60 workpieces in 17 machines in 2 factories, 70 workpieces in 23 machines in 2 factories, 80 workpieces in 23 machines in 2 factories, 90 workpieces in 23 machines in 2 factories, and 100 workpieces in 23 machines in 2 factories.

[0216] Figure 7A to Figure 7D to FIG. 13A to FIG. 13D They are the effect diagrams of adding right shift operation and not adding right shift operation in MOLMBO-VNS algorithm, 10 to 100 workpieces are arranged in different distributions in two factories, and each production cycle is divided into four intervals. The corresponding electricity prices are 0.8 yuan, 2.9 yuan, 1.5 yuan and 1.2 yuan respectively. The electricity price when the machine is idle is 0.5 yuan. Table 4 is Figure 7A to Figure 7D to FIG. 13A to FIG. 13D The total electricity cost before and after the right shift operation, where TEC represents the total electricity cost without the right shift operation, TEC-new represents the electricity cost after adding the right shift operation, and TEC-es represents the total electricity cost saved after the right shift operation. From Table 4, we can intuitively see that in the distributed flexible flow shop scheduling problem, after adding the right shift operation strategy, under the premise of not affecting the process and completion time, the production of workpieces in the peak electricity price period is transferred to the low electricity price period for production, which greatly reduces the total electricity cost, thereby reducing the production cost of the enterprise.

[0217] Table 4 Total power cost and total power cost savings before and after MOLMBO-VNS plus right shift operation

[0218] Problem TEC TEC-new TEC-es 10-5-7-100 6.30E+03 6.19E+03 1.10E+02 15-5-8-100 8.63E+03 8.21E+03 4.14E+02 20-5-9-100 1.02E+04 9.94E+03 2.37E+02 30-5-12-100 1.50E+04 1.49E+04 1.25E+02 40-5-13-100 1.90E+04 1.89E+04 1.68E+02 50-5-17-100 2.54E+04 2.50E+04 3.87E+02 60-5-20-100 3.17E+04 3.14E+04 2.75E+02 70-5-23-100 3.86E+04 3.82E+04 3.79E+02 80-5-23-100 4.59E+04 4.55E+04 3.81E+02 90-5-23-100 4.06E+04 4.04E+04 1.57E+02 100-5-30-100 4.45E+04 4.43E+04 2.38E+02

[0219] Simulation results and experimental analysis: In order to test the performance of MOLMBO-VNS algorithm in solving DFFSP-TOU problem, MOLMBO-VNS algorithm is compared with MOLMBO algorithm without VNS local search mechanism, Multi-Objective Evolutionary Algorithm Based on Decomposition (MOEA / D) and Non-dominated Sorting Genetic Algorithm NSGA-II with elite strategy. The algorithm programming is implemented by MATLAB R2016b, the experimental computer equipment operating system is Windows 10, the processor is Intel(R) Core(TM) i5-9400, CPU@2.90GHz 2.90GHz, and the memory is 8G.

[0220] 1. Experimental Design

[0221] The present invention selects the test set in the document "FERNANDEZ-VIAGAS V, PEREZ-GONZALEZ P, FRAMINANJ. Efficiency of the solution representations for the hybrid flow shopscheduling problem with makespan objective [J]. Computers and Operations Research, 2019, 109: 77-88." as a test case, where n = {10, 15, 20, 25, 30, 35, 40}, S = 5, the workpiece processing time obeys a discrete uniform distribution in the interval [1, 99], the number of the same parallel machines in each stage is uniformly generated in the interval [1, 3], and the problem scale is represented by "number of workpieces - number of stages - number of machines - number of iterations", for example, "10-5-7-100" represents a case of 10 workpieces, 5 stages, 7 machines and 100 iterations. Each case is run 30 times separately and the average value is taken. In order to make a fair comparison between algorithms, the algorithm population size is set to 100, the crossover probability is set to 1, the mutation probability is set to 0.2, and the number of iterations is set to 100. The energy consumption during the processing is set to P kR =2kW*h, the energy consumption during idle time is P kI =1kW*h, the time-of-use electricity price is the relevant data in the example of the present invention. At the same time, the number of factories in this experiment is set to 2, the simulated binary crossover parameter in the NSGA-II and MOEA / D algorithms is 2, and the polynomial variation parameter is 5.

[0222] 2. Performance evaluation indicators

[0223] The present invention adopts two commonly used performance evaluation methods, Inverted Generational Distance (IGD) and Hyper-Volume (HV), to evaluate the four algorithms. IGD and HV can simultaneously measure the convergence and diversity of the solution set, and both are comprehensive indicators.

[0224] IGD measures the distance between a given set and the true or reference Pareto set and is calculated as follows:

[0225] IGD(P,PF)=(∑ v∈PF dist(v,P)) / |PF| (26)

[0226] Among them, |PF| represents the number of reference solution sets sampled from the true Pareto frontier, and dist(v,P) represents the minimum Euclidean distance between the uniformly sampled solution in the true Pareto frontier and the points in the solution set obtained by the algorithm. It can be seen that the smaller the value of IGD, the better the performance of the algorithm in terms of diversity and convergence.

[0227] The definition of HV is as follows: Assume is the reference point dominated by the Pareto optimal solution in the target space. The set S is the optimal solution obtained by the algorithm. HV is used to measure the value of S and z. r The volume of the controlled hyperspace, m represents the number of function targets, and the calculation formula is as follows:

[0228]

[0229] Among them, VOL(*) represents the Lebesgue measure. It can be seen that the larger the HV value, the better the algorithm's solution performance. Similar to the IGD indicator, HV can simultaneously measure the diversity and convergence of the solution set. Compared with the IGD indicator, the HV indicator does not require knowing the optimal solution set to solve the problem in advance.

[0230] 3. Analysis of the effectiveness of right shift operation

[0231] Figure 7A to Figure 7D to FIG. 13A to FIG. 13D They are the effect diagrams of adding right shift operation and not adding right shift operation in MOLMBO-VNS algorithm, 10 to 100 workpieces are arranged in different distributions in two factories, and each production cycle is divided into four intervals. The corresponding electricity prices are 0.8 yuan, 2.9 yuan, 1.5 yuan and 1.2 yuan respectively. The electricity price when the machine is idle is 0.5 yuan. Table 4 is Figure 7A to Figure 7D to FIG. 13A to FIG. 13DThe total electricity cost before and after the right shift operation, where TEC represents the total electricity cost without the right shift operation, TEC-new represents the electricity cost after adding the right shift operation, and TEC-es represents the total electricity cost saved after the right shift operation. From Table 4, we can intuitively see that in the distributed flexible flow shop scheduling problem, after adding the right shift operation strategy, under the premise of not affecting the process and completion time, the production of workpieces in the peak electricity price period is transferred to the low electricity price period for production, which greatly reduces the total electricity cost, thereby reducing the production cost of the enterprise.

[0232] 4. Results and Analysis

[0233] Tables 5 and 6 are the IGD values ​​and HV values ​​of the MOLMBO-VNS algorithm and the three comparison algorithms on the test problems, respectively. It can be seen from Tables 5 and 6 that MOLMBO-VNS achieves better results on this problem and can obtain the optimal solution for all problems.

[0234] In Table 5, among the four algorithms, MOLMBO-VNS has the smallest IGD value on the test problem. This is because IGD is the sum of the minimum distances between each point on the real Pareto front and the individual set obtained by the algorithm, indicating that the algorithm has the best performance in terms of diversity and convergence. In the 10-5-7-100 test series, the mean and standard deviation of the MOLMBO algorithm are only second to the MOLMBO-VNS algorithm, and are better than the MOEA / D and NSGA-II algorithms. In the remaining test cases, the IGD value of the NSGA-II algorithm is better than that of MOLMBO. LMBO and MOEA / D algorithms, it can be seen that the MOLMBO-VNS algorithm with the local search strategy is better than the MOLMBO algorithm without the local search strategy, which proves that the local search strategy proposed in this invention improves the local search ability and population diversity of the algorithm; HV measures the diversity and convergence of the solution set. From the experimental results in Table 6, it can be seen that the algorithm MOLMBO-VNS obtains the optimal solution compared with the classic MOEA / D and NSGA-II algorithms, which proves that the MOLMBO-VNS method is effective in solving the DFFSP-TOU problem.

[0235] Table 5 IGD values ​​of the comparison algorithms on the test problems

[0236]

[0237] Table 6 HV values ​​of the comparison algorithms on the test problems

[0238]

[0239] Comparing the distribution of the final solutions obtained by the algorithms on the test problems, only the solution of MOLMBO-VNS is shown in the small-scale problem 15-5-7-100. This is because the solution obtained by MOLMBO-VNS covers the other three algorithms in terms of distribution. On the small-scale problems 10-5-7-100 and 15-5-7-100, the four algorithms can quickly converge to obtain distribution. On large-scale problems, that is, more than 20 workpieces, MOLMBO-VNS can obtain a better distribution and converge to the Pareto frontier. It can be seen that when solving the DFFSP-TOU problem, the MOLMBO-VNS algorithm has obvious advantages in convergence and diversity.

[0240] It should be noted that the embodiments of the present invention can be implemented by hardware, software, or a combination of software and hardware. The hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. A person of ordinary skill in the art will understand that the above-mentioned devices and methods can be implemented using computer executable instructions and / or contained in a processor control code, such as a carrier medium such as a disk, CD or DVD-ROM, a programmable memory such as a read-only memory (firmware), or a data carrier such as an optical or electronic signal carrier. Such code is provided on the carrier medium. The device and its modules of the present invention can be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above-mentioned hardware circuits and software, such as firmware.

[0241] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principle of the present invention should be covered by the protection scope of the present invention.

Claims

1. A distributed flexible flow shop scheduling method with time-of-use electricity price constraints, characterized in that: The distributed flexible flow shop scheduling method with time-of-use electricity price constraints includes: taking the flexible flow shop scheduling problem in a distributed manufacturing environment as the analysis object, analyzing the characteristics of the distributed flexible flow shop scheduling problem; based on the time-of-use electricity price constraints, establishing an integer programming model for the distributed flexible flow shop scheduling problem under time-of-use electricity prices, taking minimizing the maximum completion time and total electricity cost as optimization indicators; according to the characteristics of the distributed flexible flow shop scheduling problem under time-of-use electricity prices, namely DFFSP-TOU, constructing a multi-objective monarch butterfly optimization model based on a self-learning mechanism, and the migration operator and adjustment operator of the multi-objective monarch butterfly optimization model are generated through self-learning of information of historical optimal solutions; using variable neighborhood search to realize local search and population diversity of the multi-objective monarch butterfly optimization model, and transferring production in the peak period of the electricity price range to production in the valley period of the electricity price range through right shift operation; The distributed flexible flow shop scheduling method with time-of-use electricity price constraints includes the following steps: Step 1: Determine the distributed flexible flow shop scheduling problem under time-of-use electricity prices and establish a distributed flexible flow shop scheduling problem DFFSP integer programming model under time-of-use electricity prices; Step 2: Construct a multi-objective monarch butterfly optimization model based on learning mechanism; Step 3, using the multi-objective monarch butterfly optimization model based on learning mechanism to solve the distributed flexible flow shop scheduling problem; The distributed flexible flow shop scheduling integer programming model with time-of-use electricity price in step 1 includes: Define the optimization objectives of the distributed flexible flow shop scheduling problem under time-of-use electricity prices, including the maximum completion time C max (x) and the total electricity cost TEC, TEC includes the electricity cost of the machine in the running state and the standby state, and the objective function is as follows: min(f1,f2); f1=C max ; f2=TEC=PE+IE; The constraints are: S i,k+1 -(S i,k +p i.k )≥0; AND i,j,k,f +Y i+1,j,k,f ≤1; S i+1,k -(S i,k +p i.k )-B(2-Y i,j,k,f -Y i,j,k,f +Y i+1,j,k,f )≥0; Define the completion time of each workpiece in each stage as: C i,k =S i,k +p i.k ; C i,s ≤T; Define the working state of the machine as: The power generated by the machine in the working state PE is defined as: The power generated by the machine in standby mode IE is defined as: Where F is the number of factories; n is the number of workpieces; S is the number of processing stages; T is the total number of time periods; f is the factory number f∈{1,2,...,F}; i is the workpiece number, i∈{1,2,...,n}; j is the machine number, j∈{1,2,...,m f,k }; t represents the time period number, t∈{1,2,...,T}; k represents the stage number, k∈{1,2,...,S}; m f,k represents the number of parallel machines in the kth stage of factory f; p i.k represents the processing time of workpiece i in the kth stage; S i,k represents the start time of workpiece i in stage k; C i,k represents the completion time of job i in stage k; C max represents the maximum completion time; b i,k,t indicates that workpiece i is executed at stage k at time t; P kR represents the operating power of the machine at the kth stage; P kI represents the idle power of the machine at the kth stage; TEC represents the total electricity cost; B represents an integer; X i,f ∈(0,1) means that if job i is assigned to factory f, it is 1, otherwise it is 0; Y i,j,k,f ∈(0,1) means that if job i is processed on machine j in stage k of factory f, it is 1, otherwise it is 0; Z i,j,k,f,t ∈(0,1) means that if job i is processed on machine j in stage k of factory f for time t, it is 1, otherwise it is 0; It means that if workpiece i is in working state in the kth stage of factory f during period t, it is 1, otherwise it is 0; It means that if job i is in the idle state in the kth stage of factory f during period t, it is 1, otherwise it is 0; The electricity price function of the factory in period t is: In the formula, E q represents the electricity price in the qth interval, and [T1,T q ] is divided into q interval periods; The construction of the multi-objective monarch butterfly optimization model based on learning mechanism in step 2 also includes: (1) Encoding and decoding The multi-objective monarch butterfly optimization model based on the self-learning mechanism generates a matrix of population size * number of jobs based on the number of jobs and the size of the population. Each solution is randomly composed of decimals between -100 and 100. The decimals are converted into integer sequences according to their size, and then the integer sequences are encoded and decoded. All workpieces are assigned to each factory through the NEH rule, and the processing order of workpieces in the factory is determined by the permutation-based encoding mechanism; the processing machine is determined by the first-input first-output rule and the earliest available machine rule; the permutation-based encoding mechanism is as follows: there is a set of F sublists π = [π 1 ,π 2 ,...,π f ] is a list of assignments that represent solutions, where each π f represents a factory, π f =[π f (1),π f (2),...,π f (n),] represents the job processing sequence of the first-stage workpieces in the f-th factory; Decode the job order of each stage using the earliest completion time rule; in the first stage, all jobs are processed in the order of their appearance in the solution representation π; according to the completion time of the first stage, all jobs are sorted in ascending order of the completion time of the first stage; if the workpieces have the same preparation time at the beginning of stage k, k=2,...,S, they are arranged in the same corresponding order as stage k-1; use the earliest available machine rule to select the machine for the workpiece, specifically including: 1) let k=1,C i,0 =0, i=1,2,...n; 2) Determine the number of each workpiece J of machine j at stage k i The earliest allowed processing time - the maximum release time r j or C i,k-1 , r j is the release time of machine j, C i,k-1 is the completion time of job i in stage k-1; 3) for each job J i , select the machine with the smallest maximum machine release time for processing, P i,k is the processing time of job i in stage k, C i,k-1 +P i,k Release time for the machine; 4) Update workpiece J i The release time and completion time of machine j in stage k; 5) Let k = k-1; 6) Repeat steps 2) to 6) until all stages are completed; (2) Population initialization According to the initial decoding sorting results, the population is divided into two sub-populations. Sub-population 1 uses the learning transfer operator to update the offspring individuals, and sub-population 2 uses the learning adjustment operator to update all offspring individuals. The number of individuals in sub-population 1 is NP1, and the number of individuals in sub-population 2 is NP2, then: NP2=N-NP1; In the formula, p = 5 / 12 represents the migration rate in subpopulation 1, and N represents the population size; (3) Learning Transfer Operator In the multi-objective monarch butterfly optimization algorithm based on self-learning mechanism, the candidate solutions in subpopulation 1 are generated as follows: Where, L MO is the learning rate, L for the first iteration of subpopulation 1 MO Set to 0.5, and self-learning is generated in subsequent iterations until the algorithm reaches the stopping condition; is a randomly selected individual from the original population, represents the i-th solution of the t+1th generation, is the i-th solution of generation t; is an individual randomly selected from the first N×rand solutions of the tth generation, where N is the population size; M i is the solution x of the mutation operator M i , parameter M∈[0,1], is a randomly selected individual from subpopulation 1; and is an individual randomly selected from subpopulation 2; (4) Learning and Adjusting Operators In the multi-objective monarch butterfly optimization algorithm based on self-learning mechanism, the candidate solutions in subpopulation 2 are generated as follows: Where, L BAO is the learning rate in subpopulation 2; is the jth solution of the t+1th generation, is the jth solution of the tth generation; is the best individual among all populations in generation t, is the worst individual in the entire population in generation t; is an individual randomly selected from subpopulation 1, and Individuals randomly selected from the entire population; M is the mutation operator that controls the amplitude of mutation, M j is x j The parameter of the mutation operator used is M∈[0,1] (5) Local Search Adopt variable neighborhood search. The reverse operation is to randomly select two workpieces i and j (i≠j, 1≤i, j≤n) from factory f, sort all the workpieces between workpieces i and j in reverse order, and obtain new offspring individuals; the exchange operation is to randomly select a workpiece i from factory f, exchange the positions of workpiece i and the remaining n-1 workpieces, and then obtain new offspring individuals; the insertion operation is to randomly select a workpiece i from factory f, insert workpiece i into the n gaps of n-1 workpieces, and obtain new offspring individuals; let the objective function value corresponding to the original sequence be fitness(n), calculate the objective function value after exchange fitness(i), i∈(1,n-1); judge the dominance relationship, take the sequence corresponding to the optimal solution set as the optimal exchange sequence and record its objective function value; (6) Right shift operation Under the condition that the maximum completion time remains unchanged, the production in the peak period of the electricity price range is transferred to the production in the valley period of the electricity price range through the right shift operation; limited by the characteristics of the distributed flexible flow shop scheduling problem, the right shift operation is adjusted forward from the last stage in sequence; the right shift operation is performed from the first factory to the last factory in sequence; the machine idle time is searched in sequence from the last stage of the first factory, that is, the S stage to the 1st stage. The idle time in the S stage can be Calculated, the idle time in the remaining stages is calculated by Calculate; if the idle time > 0, determine whether the workpiece rightward movement will be in the low electricity price range; if so, perform the rightward movement operation, otherwise, do not perform the rightward movement operation; (7) Non-dominated sorting elite retention strategy The final population generated includes a set of solutions and the corresponding C max The two objective function values ​​of and TEC are used for non-dominated sorting, and the Pareto dominance relationship and Pareto level are calculated; the entire population is sorted and the crowding degree is calculated according to the Pareto level from small to large; elite retention selection is performed, and solutions of the same level are selected into the elite population according to the order of Pareto level from low to high; if the solutions of the same level cannot be put in, they are selected in the order of crowding from large to small, and the selected elite population is put into the next iteration; the algorithm continuously iterates until the termination condition is met, and the optimal individual population is output to obtain the best solution.

2. The distributed flexible flow shop scheduling method with time-of-use electricity price constraints according to claim 1 is characterized in that: The distributed flexible flow shop scheduling problem based on time-of-use electricity prices in step one includes factory allocation problem, machine allocation problem and sorting problem; among them, the factory allocation problem is to assign the most reasonable processing workshop to each workpiece, the machine allocation problem is to determine the processing machine for each process in each workshop, and the sorting problem is to arrange a reasonable processing sequence for the workpieces in each workshop; the distributed flexible flow shop scheduling problem under time-of-use electricity prices is regarded as a multi-objective optimization problem, including the maximum completion time and the total electricity cost.

3. A distributed flexible flow shop scheduling system with time-of-use electricity price constraints using the distributed flexible flow shop scheduling method with time-of-use electricity price constraints as described in any one of claims 1 to 2, characterized in that: The distributed flexible flow shop scheduling system with time-of-use electricity price constraints includes: Multi-objective optimization problem determination module, used to determine the distributed flexible flow shop scheduling problem; Integer programming model building module, used to establish a distributed flexible flow shop scheduling integer programming model with time-of-use electricity price; The optimization model building module is used to build a multi-objective monarch butterfly optimization model based on learning mechanism; The problem-solving module uses the constructed multi-objective monarch butterfly optimization model to solve the distributed flexible flow shop scheduling problem.

4. A computer device, characterized in that: The computer device includes a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor executes the steps of the distributed flexible flow shop scheduling method with time-of-use electricity price constraints as described in any one of claims 1 to 2.

5. A computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to execute the steps of the distributed flexible flow shop scheduling method with time-of-use electricity price constraints as described in any one of claims 1 to 2.

6. An information data processing terminal, characterized in that: The information data processing terminal is used to implement the distributed flexible flow shop scheduling system with time-of-use electricity price constraints as described in claim 3.

Citation Information

Patent Citations

  • Power energy supply scheduling planning method based on dynamic optimization monarch butterfly algorithm

    CN114091746A

  • Proton exchange membrane fuel cell subspace identification method based on ALMBO optimization algorithm

    CN114137829A

  • Distributed flexible flow shop scheduling system and method, terminal and medium

    CN114677027A

  • Temporal difference-based hybrid flow-shop scheduling method

    WO2022135066A1