An algorithm configurable system for multi-stage production resource scheduling simulation optimization
By designing an algorithm-configurable system for simulation optimization of multi-stage production resource scheduling, the problems of low algorithm search efficiency and poor adaptability in existing technologies are solved, and fast and flexible production resource scheduling optimization is achieved to meet the multi-stage needs of complex product manufacturing.
Patent Information
- Application Number
- CN202311522542.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-15
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-11-15
AI Technical Summary
Existing intelligent optimization algorithms have low search efficiency in complex product manufacturing, are difficult to adapt quickly to the needs of large-scale tasks, and have difficulty adjusting the algorithm library quickly, resulting in low optimization efficiency of production resource scheduling schemes and difficulty in meeting the multi-stage needs of complex product manufacturing.
Design a configurable algorithm system for simulation optimization of multi-stage production resource scheduling, including a model configuration and generation module for multi-stage production resource scheduling problem in the manufacturing process, an automatic connection module between simulation model and algorithm, and an automatic operator configuration module. By automatically configuring the objective function and simulation model, the algorithm can be quickly adjusted and optimized.
It enables rapid adaptation to multi-stage production resource scheduling problems, improves the algorithm's flexibility and response speed, and can quickly obtain near-optimal solutions in cross-stage manufacturing processes, reducing engineering application and research costs.
Smart Images

Figure CN117763943B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of manufacturing system modeling and simulation, and relates to a configurable algorithm system for simulation optimization of multi-stage production resource scheduling. Background Technology
[0002] Complex products refer to a class of products with complex customer requirements, complex system composition, complex product technology, and complex working environments. They are characterized by high design difficulty, high testing and maintenance costs, stringent quality requirements, and significant demand for intelligent features. Simultaneously, they face major challenges in manufacturing, such as achieving success on the first attempt, on-time delivery, and continuously reducing cycle time and costs. To resolve these contradictions, modeling and simulation are essential. Existing models of complex products involve components and subsystems from various fields, including mechanical, electrical, hydraulic, thermal, pneumatic, and magnetic domains. Each domain has different modeling and simulation methods, standards, specifications, and supporting tools.
[0003] With the continuous emergence of new technologies in the information age, the manufacturing environment is undergoing fundamental changes. The research and development and manufacturing of complex products in modern society are not only related to one discipline, but also to multiple disciplines and fields. This requires the establishment of closer and more reliable collaborative relationships among various disciplines.
[0004] Production resource scheduling problems in multiple stages of complex product manufacturing processes include supplier selection, material selection and inventory optimization, flexible resource scheduling in distributed workshop mixed-flow production lines, and tool scheduling in mixed-flow production lines. Existing intelligent optimization algorithms include genetic algorithms, particle swarm optimization, and ant colony optimization. These algorithms can solve complex optimization problems that are difficult to solve with traditional optimization algorithms, and researchers have improved these algorithms to achieve better search performance.
[0005] However, existing intelligent optimization algorithms still have the following drawbacks:
[0006] First: Existing intelligent optimization algorithms have low search efficiency.
[0007] When faced with new problems, it remains difficult to determine which intelligent optimization algorithm is the best solution or to select the appropriate parameter configuration algorithm without testing and human judgment.
[0008] Second: Existing intelligent optimization algorithms are insufficient to meet the demands of large-scale tasks.
[0009] In the various stages of complex product manufacturing, the heterogeneous production resource scheduling problem is usually characterized by a large amount of data and a large scale. Iterative search takes a long time and is difficult to meet the response time requirements.
[0010] Existing algorithm libraries integrating multiple intelligent optimization algorithms cannot quickly adjust the structure and parameters of the algorithms. Designing hybrid algorithms and testing them is inefficient. They require manually designing objective functions to describe the problem, which are often insufficient to accurately depict uncertainties in industrial settings. Algorithms must be designed and implemented based on specified mathematical models, and the resulting production resource scheduling schemes must be imported into relevant simulation models for verification. However, simulation-based production resource scheduling schemes suffer from low optimization efficiency, extremely low timeliness, and difficulty in quickly obtaining near-optimal solutions to multi-stage production resource scheduling problems. Furthermore, the interface design between the problem and the algorithm lacks compatibility, making it difficult to adapt to the simulation optimization needs of cross-stage manufacturing problems. Summary of the Invention
[0011] The technical problem solved by this invention is to overcome the shortcomings of the prior art and propose an algorithm-configurable system for simulation optimization of multi-stage production resource scheduling.
[0012] The solution of the present invention is:
[0013] A configurable algorithm system for simulation optimization of multi-stage production resource scheduling includes a model configuration and generation module for multi-stage production resource scheduling problems in the manufacturing process, an automatic connection module between simulation models and algorithms, and an automatic operator configuration module.
[0014] The multi-stage production resource scheduling problem model configuration and generation module in the manufacturing process configures the model template based on the specific stage task parameters imported from the manufacturing system and user input to obtain the objective function for solving the current problem.
[0015] Simulation model and algorithm automatic connection module: In each iteration, the simulation model of the corresponding stage receives a set of production resource scheduling schemes for a specific stage generated by the operator automatic configuration module. The simulation model performs simulation calculations on each scheduling scheme and sends the simulation calculation results to the operator automatic configuration module.
[0016] Operator auto-configuration module: In each simulation optimization closed-loop iteration, it selects operators to solve the current problem, combines them to generate a set of scheduling schemes, calls the objective function generated by the multi-stage production resource scheduling problem model configuration generation module, and calculates the first fitness value of each scheduling scheme; it calls the simulation calculation results of each scheduling scheme sent by the simulation model and algorithm auto-connection module as the second fitness value, and selects the optimal scheduling scheme in each iteration based on the first fitness value and the second fitness value; through multiple simulation optimization closed-loop iterations, it obtains the optimal solution to the current problem.
[0017] Preferably, the multi-stage production resource scheduling problem model configuration generation module includes a general model template describing the variables, constraints, and objectives involved in the mathematical model of the multi-stage production resource scheduling problem, a typical production resource scheduling variable decoding sub-function library, and a typical production resource scheduling scheme evaluation sub-function library;
[0018] Each general model template includes variable encoding format, constraint rule interface and content, and objective function interface and content for solving the corresponding problem. The variable encoding format and constraint rule interface in the model template are configured according to user input. The objective function input / output interface and objective function content in the model template are configured according to the specific stage task parameters imported by the manufacturing system. After configuration, the production resource scheduling variable decoding sub-function and optimization objective solving sub-function of the corresponding stage are called to generate the specific objective function.
[0019] The typical production resource scheduling variable decoding sub-function library pre-stores variable decoding sub-functions that map continuous encoding, discrete encoding, and ordered encoding to variable decoding. These sub-functions call a constraint rule interface of a specific format and determine the mapping domain of each encoding according to the constraint rules configured by the user, thereby ensuring the feasibility of the scheduling scheme after variable decoding.
[0020] The typical production resource scheduling scheme evaluation sub-function library pre-stores several optimization objective solution sub-functions for historical production resource scheduling problems, including continuous optimization functions for calculating processing accuracy and reliability, and discrete optimization functions for calculating the execution time of multi-process manufacturing tasks;
[0021] The objective function calls the corresponding variable decoding subfunction and the optimization objective solution subfunction.
[0022] Preferably, the objective function F(X) generated based on the general model template configuration is as follows:
[0023] F(X) = [f1(X), ..., f i (X),…,f N (X)]
[0024] Where X = γ(Z) is the decoded variable, Z represents the variable encoding, and γ(·) represents the selected variable decoding sub-function; Where, μ j (j = 1, 2, ..., M) are coefficients, g j (X) is a single optimization objective solution subfunction in the typical production resource scheduling scheme evaluation subfunction library, and M is the selected component of the single objective f. i The optimization subfunction g of (X) j The number of (X) and N is the number of optimization objectives.
[0025] Preferably, the simulation model and algorithm automatic connection module includes a simulation data information interface, a simulation model integration submodule based on dynamic linking, a data flow simulation model integration submodule based on the native environment, a parametric simulation model integration submodule based on the native environment, and a simulation model submodule;
[0026] Simulation data information interface: It consists of two parts: simulation data input end and simulation data output end. The simulation data input end receives the scheduling scheme generated by the operator automatic configuration module as the initial information of the simulation task. The simulation data output end returns the simulation calculation result to the operator automatic configuration module as the second fitness value for evaluating the scheduling scheme.
[0027] The simulation model integration submodule based on dynamic linking integrates the simulation model. Before simulation, the model must be packaged into a DLL format dynamic link library, and the model information required for dynamic linking must be stored in the database. When used, the dynamic link library of the corresponding simulation model is called, and the function and input and output variables corresponding to the model are obtained from the database.
[0028] The data flow simulation model integration submodule based on the native environment enables information interaction between the integrated model's environment and the native environment, transmitting simulation model creation, data loading, and simulation-related information to the native environment;
[0029] The native environment-based parametric simulation model integration submodule integrates parametric models, where instances of the parametric models are represented in file form, and multiple different model instances are obtained by differentiating the parameter settings of different model files;
[0030] Simulation Model Submodule: Selects a suitable simulation model from the dynamic link-based model integration submodule, the native environment-based dataflow model integration submodule, and the native environment-based parametric model integration submodule for simulation calculation, and sends the simulation calculation results to the simulation data information interface.
[0031] Preferably, the data information template in the simulation data information interface is defined as follows:
[0032] The data information template is data = {di, dp, do}, where the input information is di = {ti}. q ,ni q |q=1,…,N i}, ti q Let ni be the type of the q-th input. q For the name / index of the q-th input, N i The number of input variables; the parameter information is dp = {tp} w ,np w |w=1,…,N p}, tp wnp is the type of the w-th parameter. w For the name / index of the w-th parameter, N p The number of parameters; the output information is do = {to e ,no e |e=1,…,N o}, to e For the type of the o-th output, no e N represents the name / index of the o-th output. p This specifies the number of output variables.
[0033] Preferably, the operator automatic configuration module includes an initialization submodule, a hyperheuristic strategy selection submodule, an operator selection submodule, an evaluation submodule, and an intelligent optimization algorithm submodule;
[0034] Initialization submodule: Initializes the parameters of various pre-loaded operators and the initial variable encoding set representing the initial feasible scheduling scheme set of the problem to be solved, i.e. the initial population of the iterative search; sets the population size and number of iterations during the iterative search process;
[0035] In each iteration:
[0036] The hyperheuristic strategy selection submodule includes hyperheuristic strategies based on randomness, semi-randomness, and rules. It selects a suitable hyperheuristic strategy and sends it to the operator selection submodule for operator selection.
[0037] Operator selection submodule: Invokes the selected hyperheuristic strategy, selects the specific operator to solve the current problem, and sends it to the intelligent optimization algorithm submodule;
[0038] Evaluation Submodule: This module calls the objective function generated by the multi-stage production resource scheduling problem model configuration generation module, takes the new scheduling scheme set generated by the intelligent optimization algorithm submodule as input, calculates the objective function, and obtains the first fitness value for each scheduling scheme. It then calls the simulation calculation results of each scheduling scheme sent by the simulation model and algorithm automatic connection module, using these as the second fitness value. Finally, it calculates the average of the first and second fitness values for each scheduling scheme, which is the overall fitness value of that scheme. The scheduling scheme with the highest overall fitness value in the current set of new scheduling schemes is selected as the preferred scheduling scheme for the current iteration and stored.
[0039] Intelligent optimization algorithm submodule: Calls the operator combination selected by the operator selection submodule to generate a new set of scheduling schemes, i.e. a new population, and sends it to the evaluation submodule and the simulation model and algorithm automatic connection module;
[0040] After reaching the required number of iterations, the evaluation submodule sorts the best scheduling schemes from all previous iterations according to their overall fitness values, selects the best scheduling scheme with the highest overall fitness value as the optimal solution to the current problem, and outputs it.
[0041] Preferably, in the initialization submodule, the parameters of the operators refer to the inputs of each operator, including various constant coefficients, type selection parameters, and scope parameters.
[0042] Preferably, the operator selection submodule determines the current problem type based on the mathematical model information for solving the current problem. If the current problem is a multi-objective problem, it calls a hyperheuristic strategy to select multi-objective optimization operators based on Pareto, decomposition, and index search. For a single-objective problem, it calls a hyperheuristic strategy to select multiple selection operators and update operators with scheduling schemes.
[0043] Preferably, the selection operators include roulette selection and tournament selection.
[0044] Preferably, the scheduling scheme update operator includes the simulated binary crossover operator, the sequence-preserving crossover operator, the polynomial mutation operator, the differential evolution crossover operator, the differential evolution mutation operator, and the particle swarm optimization learning operator.
[0045] The advantages of this invention compared to the prior art are:
[0046] (1) This invention designs a configurable algorithm system for simulation optimization of multi-stage production resource scheduling. When encountering a new multi-stage production resource scheduling problem, it can quickly configure the problem requirements and adaptively adjust the structure and parameters of the algorithm. The objective function of the simulation model and the mathematical model representing the problem provides bidirectional guidance for the algorithm search process, quickly obtaining an approximate optimal solution to the cross-stage production resource scheduling problem. It has a fast response and the interface design between the problem and the algorithm is matched, adapting to the simulation optimization requirements of the cross-stage production resource scheduling problem.
[0047] (2) From the perspective of algorithm expansion, the present invention aims to establish a multi-platform algorithm system with high dynamism and flexibility. It can not only serially cascade multiple algorithms for cross-stage production resource scheduling problems, but also allow multi-stage simulation models of complex product manufacturing to be parallelized heterogeneously or homogeneously coordinated with algorithms on multiple parallel platforms to realize parallel cascade dynamic configuration and closed-loop parallel simulation optimization. Attached Figure Description
[0048] Figure 1 This is a schematic diagram of the invention. Detailed Implementation
[0049] The present invention will be further described below with reference to the embodiments.
[0050] The multi-stage production resource scheduling problem model configuration generation module of this invention configures objective functions for different production resource scheduling problems under dynamic environments by designing objective function templates; the simulation model and algorithm automatic connection module enables the results obtained from the simulation model to be automatically converted into the format required by the algorithm; the operator automatic configuration module evaluates the production resource scheduling scheme using the objective function and the simulation model, and provides an approximate optimal solution for the current objective problem by combining and calling various operators. Figure 1 As shown.
[0051] Specifically:
[0052] (1) Model configuration and generation module for multi-stage production resource scheduling problem in manufacturing process
[0053] To improve the flexibility and scalability of the algorithm and adapt it to problem models under different environments, this invention designs a configuration generation module for a multi-stage production resource scheduling problem model in the manufacturing process, namely, the reasonable configuration of the objective function. First, an objective function template is designed as a base class to configure the objective function under the current environment. The main configuration parameters include objective function parameters, the choice between single or multiple objectives, and variable constraints of the objective function, etc. This makes the problem and the algorithm relatively independent, allowing users to submit tasks and set relevant configuration constraints and objectives themselves.
[0054] In multi-stage production resource scheduling problems, it is necessary to extract a suitable problem model. This invention designs a multi-stage production resource scheduling problem model configuration generation module, which automatically configures the problem variables, constraints, and objectives under the current environment by constructing an objective function template, which is then called by the operator automatic configuration module to calculate the first fitness value of a given scheduling scheme.
[0055] (2) Automatic connection module between simulation model and algorithm
[0056] To better adapt various simulation models at different stages to the algorithm, this invention designs an automatic connection module between the simulation model and the algorithm. After the user imports the current scheme into the simulation model, the simulation model can automatically convert the obtained results into the format required by the algorithm, thereby improving the flexibility of the algorithm.
[0057] After constructing the target problem model, different model integration sub-modules are designed to build a simulation model invocation method in a cross-domain collaborative environment. The simulation model is stored as a dynamic link library or in the form of a native environment. After importing the current solution into the simulation model, the output of the simulation model can be automatically used as the second fitness value of the scheduling solution and imported into the intelligent optimization algorithm. Through continuous interaction with the operator auto-configuration module, the problem solution is optimized.
[0058] (3) Operator automatic configuration module
[0059] To address the various existing simulation algorithms, and based on the problem requirements, appropriate basic algorithm modules are selected and connected through interfaces between modules to form a hybrid intelligent optimization algorithm.
[0060] Because intelligent optimization algorithms share similarities and universality in population updates and selection, iterative search, and variable encoding, this invention decomposes intelligent optimization algorithms into various evolutionary operators. These operators can be combined and configured to fully utilize existing algorithms and various improvement strategies for efficient solutions. This not only prevents code duplication but also saves time and costs in engineering applications and research.
[0061] In the process of designing and generating a module for configuring multi-stage production resource scheduling problem models in the manufacturing process, this invention adopts a template base class design method, which improves the system's scalability and enables it to adapt to different production resource scheduling problem models under cross-stage manufacturing needs, allowing for reasonable configuration of the objective function. Addressing the issue of connecting simulation models and algorithms, this invention designs an automatic connection module between simulation models and algorithms, automatically converting the results of the simulation model into the format required by the algorithm, thereby enhancing the flexibility of the algorithm library.
[0062] The specific plan is as follows:
[0063] The module for configuring and generating a multi-stage production resource scheduling problem model in the manufacturing process configures the model template based on specific stage task parameters imported from the manufacturing system and user input, thereby obtaining the objective function for solving the current problem.
[0064] Simulation model and algorithm automatic connection module: In each iteration, the simulation model of the corresponding stage receives a set of production resource scheduling schemes for a specific stage generated by the operator automatic configuration module. The simulation model performs simulation calculations on each scheduling scheme and sends the simulation calculation results to the operator automatic configuration module.
[0065] The operator automatic configuration module: For each scheduling scheme generated during the simulation optimization closed-loop iterative process, the average of the first fitness value and the second fitness value is taken as the overall fitness value of the scheme; based on the overall fitness value of the historical scheduling scheme set, the optimal solution to the current problem is obtained iteratively.
[0066] The module for configuring and generating models for multi-stage production resource scheduling problems in the manufacturing process includes various model templates. The templates further include variable encoding formats, a library of sub-functions for decoding variables in typical production resource scheduling schemes, and a library of sub-functions for evaluating typical production resource scheduling schemes.
[0067] (2a) Variable Encoding Format. This defines the representation of multidimensional variables after one-to-one encoding mapping, including 0 / 1 encoding, continuous encoding, integer encoding, and ordered encoding. The template receives the specific variable information input by the user and performs encoding mapping in a specific format. The mapped variables are then output to the operator auto-configuration module. The encoding mapping refers to masking the problem model variables and adjusting their lengths based on the user-input variable information. If the problem model variables are X = (x1, x2, ..., x...)... K If the length of the variable input by the user is K1, then the variable interface will transform variable X into... K1≤K, the total length of X′ is K.
[0068] (2b) Typical Production Resource Scheduling Scheme Variable Decoding Sub-function Library. This library pre-stores sub-functions mapping continuous, discrete, and ordered codes to variable decoding. These sub-functions call a constraint rule interface with a specific format. Constraint rules, specified by the manufacturing system or user, define the range of values for variables during the decoding process. Constraint rules are invoked in instruction form, with the user specifying the constraint rule interface. The sub-functions in this library determine the mapping domain of each code based on the user-configured constraint rules, thus ensuring the feasibility of the scheduling scheme after variable decoding.
[0069] (2c) Evaluation function library for typical production resource scheduling schemes. The evaluation function library for typical production resource scheduling schemes pre-stores the optimization objective solution functions for several historical production resource scheduling problems, including continuous optimization functions for calculating the accuracy and reliability of the processing technology and discrete optimization functions for calculating the execution time of multi-process manufacturing tasks;
[0070] The objective function calls the function pointers of the corresponding variable decoding subfunction and the optimization objective solution subfunction, extracts the corresponding subfunction from the subfunction library, and calculates the fitness value of the evaluation scheduling scheme.
[0071] Based on the above template, the objective function can support both continuous and discrete optimization problem generation, and can be configured with single-objective and multi-objective problem types. According to the input parameter information, the template retrieves the sub-function pointers required for the corresponding objective function, extracts the corresponding sub-functions from various sub-function libraries, and feeds them back to the model template, thereby generating the objective function corresponding to a specific production resource scheduling problem. The mathematical expression of the obtained objective function is as follows:
[0072] F(X) = [f1(X), ..., f i (X),…,f N (X)]
[0073] Where X = γ(Z) is the decoded variable, Z represents the variable encoding, and γ(·) represents the selected variable decoding sub-function. Where, μ j (j = 1, 2, ..., M) are coefficients, g j (X) is a single optimization objective solution sub-function from the function library, and M is the selected component f. i The optimization subfunction g of (X) j The number of (X) and N is the number of optimization objectives.
[0074] Based on (1) and (2), the mathematical model of the current problem can be obtained through the objective function generation, and the fitness function of the intelligent optimization algorithm can be obtained. Taking a single objective as an example, the fitness function is as follows:
[0075]
[0076] Among them, c k (X)(k=1,…,L) is the soft constraint function, c L+1 (X),…,c L+1+U (X) is a hard constraint function, and the function...
[0077] The automatic connection module for simulation models and algorithms includes a data information interface, a model integration submodule based on dynamic linking, a data flow model integration submodule based on the native environment, a parametric model integration submodule based on the native environment, and a simulation model submodule.
[0078] (3a) Simulation data information interface. It consists of two parts: simulation data input end and simulation data output end. The simulation data input end receives the production resource scheduling scheme generated by the selected operator in the operator automatic configuration module, and the simulation data output end returns the second fitness value of each production resource scheduling scheme to the operator automatic configuration module.
[0079] The simulation data template is data = {di, dp, do}, where the input information is di = {ti}. q ,ni q |q = 1, ..., N i}, ti q Let ni be the type of the q-th input. q For the name / index of the q-th input, N i The number of input variables; the parameter information is dp = {tp} w ,np w |w=1,…,N p}, tp w np is the type of the w-th parameter. w For the name / index of the w-th parameter, N p The number of parameters; the output information is do = {to e ,no e |e=1,…,No}, to e For the type of the o-th output, no e N represents the name / index of the o-th output. p This specifies the number of output variables.
[0080] (3b) Simulation model integration submodule based on dynamic linking. Simulation models integrated using dynamic linking must be packaged into a library before simulation. The model information required for dynamic linking is stored in the database. When used, the corresponding functions and input / output variables for calling the model are obtained from the database.
[0081] (3c) Data Flow Simulation Model Integration Submodule Based on Native Environment. For simulation models that must rely on the native environment they are built upon for operation, an information interaction tool is established between the integrated model environment and the native environment to transmit information such as simulation model creation, data loading, and simulation to the native environment.
[0082] (4d) Parametric simulation model integration submodule based on native environment. For parametric input models, model instances are represented in file form, and multiple different model instances are obtained by differentiating the parameter settings of different model files. Since it runs in the native environment, a parameter setting tool is established to modify the parameters before model simulation.
[0083] (4e) Simulation Model Submodule: Select a suitable simulation model from the dynamic link-based model integration submodule, the native environment-based data flow model integration submodule, and the native environment-based parametric model integration submodule for simulation calculation, and send the simulation calculation results to the simulation data information interface.
[0084] The operator auto-configuration module includes an initialization submodule, a hyperheuristic strategy selection submodule, an operator selection submodule, an evaluation submodule, and an intelligent optimization algorithm submodule.
[0085] (4a) Initialization Submodule. This module receives the problem model information and initializes the parameters of various operators and the variables of the algorithm base class. Operator parameters refer to the inputs of each operator, including various constant coefficients, type selection parameters, and scope parameters; algorithm base class variables mainly include population size, number of iterations, etc.
[0086] In each iteration:
[0087] (4b) Hyperheuristic Strategy Selection Submodule: Includes hyperheuristic strategies based on randomness, semi-randomness, and rules. Used to automatically select low-order operators to form operator combinations for each individual in the population during each iteration of optimization.
[0088] (4c) Operator Selection Submodule. Invokes the selected hyperheuristic strategy, selects or generates specific operators to solve the current problem, and sends them to the Intelligent Optimization Algorithm Submodule.
[0089] The operator selection submodule determines the current problem type based on the mathematical model information for solving the current problem. If the current problem is a multi-objective problem, it invokes the selected hyperheuristic strategy to choose a multi-objective optimization operator based on Pareto, decomposition, or index search. For a single-objective problem, it invokes the hyperheuristic strategy to select multiple selection operators and scheduling scheme update operators. Selection operators include Roulette Wheel Selection and Roulette Wheel Selection; scheduling scheme update operators include Simulated Binary Crossover (SBX), Precedence Preservative Crossover (PPX), and polynomial mutation operators.
[0090] (4d) Evaluation Submodule: This module calls the objective function generated by the multi-stage production resource scheduling problem model configuration generation module to calculate the first fitness value of the initial feasible scheduling scheme set; it calls the simulation model and algorithm automatic connection module to read the second fitness value of the initial feasible scheduling scheme set generated by the simulation model; and it calculates the overall fitness value of each scheduling scheme based on the first and second fitness values. The scheduling scheme with the highest overall fitness value in the current new scheduling scheme set is selected as the preferred scheduling scheme for the current iteration and stored.
[0091] (4e) Intelligent optimization algorithm submodule: In each generation of the iterative search, the hyper-heuristic strategy selection submodule and operator selection submodule are called for each individual in the population to generate operator combinations, and a new set of scheduling schemes, i.e. a new population, is generated by combining operators. Then, it is sent to the evaluation submodule to calculate the overall fitness value of the new scheme.
[0092] After reaching the required number of iterations, the evaluation submodule sorts the best scheduling schemes from all previous iterations according to their overall fitness values, selects the best scheduling scheme with the highest overall fitness value as the optimal solution to the current problem, and outputs it.
[0093] This invention can quickly adapt to the needs of multi-stage production resource scheduling, and achieve bidirectional evaluation of the solution set by combining the mathematical model and simulation model of production resource scheduling. It can quickly obtain an approximate optimal solution for multi-stage flexible production resource scheduling in complex product manufacturing processes.
[0094] Example:
[0095] The invention will be further elaborated below in the context of optimizing material sorting and delivery routes for mobile robots in production workshops.
[0096] The problem of optimizing material sorting and delivery routes for mobile robots in a production workshop is a typical production resource scheduling problem. It is defined as follows: under the condition of satisfying constraints, considering factors such as the loading space, load capacity, and passing locations of multiple mobile robots, scheduling robots to obtain the optimal delivery path and reduce the total delivery cost.
[0097] (1) Model configuration and generation module for multi-stage production resource scheduling problem in manufacturing process
[0098] The multi-stage production resource scheduling problem model configuration generation module accepts user input and configures model templates, providing the operator automatic configuration module with the first fitness value basic information of feasible scheduling schemes.
[0099] First, the system accepts user input data. In the problem of multi-mobile robot loading and transportation route optimization, user input data includes: material master data, delivery order data, distributed production line distance data, and robot type data.
[0100] The optimization objective of this problem is to minimize the delivery cost, expressed as minf(X) = Cost, which is a single-objective problem. Therefore, the corresponding objective function is retrieved from the function library through the objective function interface and input into the model template. The constraints of this problem include: (a) c1: materials must be allowed to be shared; (b) c2: a maximum of 3 delivery points are allowed to stop; (c) c3: there are only four types of robots; (d) c4: minimize the splitting of delivery orders; (e) c5: split by set. Among them, (b), (c), and (e) are strong constraints, and (a) and (d) are soft constraints. Therefore, the fitness function is:
[0101] fit(X)=Cost+c1+c4+I(c2,c3,c5)
[0102] The problem is encoded as follows: each order is numbered from 1 to N' (the total number of orders), forming a sorted sequence of orders from 1 to N'. Therefore, the variables of the problem are:
[0103] (x i ∈K1∩[0,K1]and x i ≠x j (i,j∈[0,K1]))
[0104] If the length of the basic variables in the system is K (K > K1), then the variable output variable from the variable interface is...
[0105] (2) Automatic connection module between simulation model and algorithm
[0106] The simulation model and algorithm automatic connection module interacts with the operator automatic configuration module through a data information interface, providing the operator automatic configuration module with basic information on the second fitness values of feasible scheduling schemes. This problem involves a Netlogo model. The simulation model processes material sorting and multi-robot delivery in order of orders, considering possible path conflicts among multiple robots and avoidance and waiting behaviors under uncertain obstacles, making it a simulation model with uncertainties. Therefore, its output second fitness values are calculated under the uncertain environment of model derivation. This module establishes a connection between the parametric model integration interface based on the native environment and the simulation model. The simulation model receives the algorithm's scheduling schemes as input through the simulation data information interface and returns the data required by the algorithm (i.e., the second fitness values of each scheduling scheme).
[0107] (3) Operator automatic configuration module
[0108] The operator auto-configuration module interacts with the simulation model by accessing problem templates and variable settings, and automatically configures intelligent optimization algorithms to obtain a better solution.
[0109] Based on the variables of the problem, the individual chromosomes are encoded as follows: This is a discrete encoding problem. As indicated by the model template, this is a single-objective optimization problem. In the operator selection interface, available operators include roulette wheel strategies and tournament strategies as selection operators, and sequence-preserving crossover operators as scheduling scheme update operators. In the hyperheuristic strategy, a semi-random hyperheuristic strategy can be selected to guide the selection of various operators.
[0110] The evaluation submodule connects the objective function of the problem and the simulation model. It transmits the scheduling scheme to the simulation model through the simulation data information interface. By simulating the sorting and delivery process of multiple robots, it obtains the second fitness value of each current scheduling scheme. The scheduling scheme is directly input into the generated objective function to calculate the first fitness value of each current scheme. Finally, the overall fitness value of each scheduling scheme is calculated.
[0111] The population is iteratively updated using a hyperheuristic strategy, selection operator, crossover operator, solution set evaluation, and elite strategy. When the algorithm termination condition is met, the globally optimal scheduling scheme is output. By interacting with the simulation model again, the effectiveness of the current scheme can be verified.
[0112] This invention aims to establish a configurable algorithm system for multi-stage production resource scheduling simulation optimization. The system has two optimization modes: First, a hyperheuristic strategy selection submodule is invoked to select a hyperheuristic strategy. During the closed-loop iteration of simulation optimization, this hyperheuristic strategy automatically selects operator combinations and configurations for each individual in the population, forming a dynamically updated hybrid optimization algorithm. Second, the hyperheuristic strategy selection submodule is skipped, and the user selects a specific operator combination in the initial state and configures the order and parameters of the operator combination. During the closed-loop iteration of simulation optimization, this operator combination consistently generates new scheduling schemes.
[0113] Because intelligent optimization algorithms are based on population evolution, and given the similarities and generalities among algorithms in initialization, evolutionary iteration, and variable encoding, various intelligent optimization algorithms in the system can be transformed into a set of modular functions through process and operator decomposition, extraction of improvement strategies, and independent configuration of parameters. During algorithm configuration, the system fully considers the problem requirements, maximizing the use of existing algorithms and various improvement strategies for rapid algorithm design and closed-loop simulation optimization. This not only prevents code duplication but also saves time and costs in engineering applications and research.
[0114] (1) The configurable algorithm system for multi-stage production resource scheduling simulation optimization of the present invention realizes autonomous information interaction and operation among the multi-stage production resource scheduling problem model configuration generation module, simulation model and algorithm automatic connection module, and operator automatic configuration module through three major modules: multi-stage production resource scheduling problem model configuration generation module, simulation model and algorithm automatic connection module, and operator automatic configuration module. This expands the types and scope of problems that can be handled, reduces the difficulty of problem construction and algorithm design, and enables the system to solve multi-stage and multi-type production resource scheduling problems with only relatively simple user input, adapt to the uncertainty factors of the actual environment, and obtain better scheduling schemes.
[0115] (2) The design of the multi-stage production resource scheduling problem model configuration generation module in the manufacturing process enables the system to quickly respond to the task scheduling requirements of different stages of the manufacturing process and automatically construct the objective function that meets the requirements. In the automatic connection module between simulation models and algorithms, by designing different simulation model integration sub-modules and a unified data information interface, the system can access various existing simulation models, including Matlab, Netlogo, Modelica, and Simulink. At the same time, the access of simulation models enables the system to handle task scheduling requirements with many uncertain factors, as well as task scheduling requirements that are difficult to clearly represent by mathematical models and objective functions, making it more advantageous in solving cross-stage manufacturing process task scheduling problems. In addition, the construction of the above two modules enables the intelligent optimization algorithm to selectively, or alternately under specific conditions, access the objective functions or simulation models of various task scheduling problems, greatly improving the complementary characteristics of objective functions and simulation models in the optimization process.
[0116] (2) The operator automatic configuration module modularly encapsulates various existing classic intelligent optimization algorithms, performing iterative searches through a unified process. The operators use independent interfaces with a unified population as input and output, effectively enabling the configuration of algorithm parameters and structures. During algorithm configuration, different operators can be automatically selected for combination, and their optimization order and iteration count can be specified. By using a small number of operators to flexibly and autonomously construct various hybrid intelligent optimization algorithms, the algorithm can adapt to different task scheduling problems, achieving efficient and rapid solutions to multi-stage task scheduling problems in the manufacturing process.
[0117] Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make possible changes and modifications to the technical solutions of the present invention by utilizing the methods and techniques disclosed above without departing from the spirit and scope of the present invention. Therefore, any simple modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solutions of the present invention shall fall within the protection scope of the technical solutions of the present invention.
Claims
1. A configurable algorithm system for simulation optimization of multi-stage production resource scheduling, characterized in that: This includes a module for configuring and generating a model for multi-stage production resource scheduling problems in the manufacturing process, a module for automatically connecting simulation models and algorithms, and a module for automatically configuring operators. The multi-stage production resource scheduling problem model configuration and generation module in the manufacturing process configures the model template based on the specific stage task parameters imported from the manufacturing system and user input to obtain the objective function for solving the current problem. Simulation model and algorithm automatic connection module: In each iteration, the simulation model of the corresponding stage receives a set of production resource scheduling schemes for a specific stage generated by the operator automatic configuration module. The simulation model performs simulation calculations on each scheduling scheme and sends the simulation calculation results to the operator automatic configuration module. Automatic operator configuration module: In each simulation optimization closed-loop iteration, select operators to solve the current problem, combine them to generate a set of scheduling schemes, call the objective function generated by the multi-stage production resource scheduling problem model configuration generation module of the manufacturing process, and calculate the first fitness value of each scheduling scheme; The simulation calculation results of each scheduling scheme sent by the simulation model and algorithm automatic connection module are used as the second fitness value. The optimal scheduling scheme in each iteration is selected based on the first fitness value and the second fitness value. The optimal solution to the current problem is obtained through multiple simulations and closed-loop iterative calculations. The configuration and generation module for the multi-stage production resource scheduling problem model in the manufacturing process includes a general model template describing the variables, constraints, and objectives involved in the mathematical model of the multi-stage production resource scheduling problem in the manufacturing process, a typical production resource scheduling variable decoding sub-function library, and a typical production resource scheduling scheme evaluation sub-function library. Each general model template contains variable encoding format, constraint rule interface and content, and objective function interface and content for solving the corresponding problem. The variable encoding format and constraint rule interface in the model template are configured according to user input. The objective function input / output interface and objective function content in the model template are configured according to the specific stage task parameters imported by the manufacturing system. After configuration, the production resource scheduling variable decoding sub-function and optimization objective solving sub-function of the corresponding stage are called to generate the specific objective function. The typical production resource scheduling variable decoding sub-function library pre-stores variable decoding sub-functions that map continuous encoding, discrete encoding, and ordered encoding to variable decoding. These sub-functions call a constraint rule interface of a specific format and determine the mapping domain of each encoding according to the constraint rules configured by the user, thereby ensuring the feasibility of the scheduling scheme after variable decoding. The typical production resource scheduling scheme evaluation sub-function library pre-stores several optimization objective solution sub-functions for historical production resource scheduling problems, including continuous optimization functions for calculating processing accuracy and reliability, and discrete optimization functions for calculating the execution time of multi-process manufacturing tasks; The objective function calls the corresponding variable decoding subfunction and the optimization objective solution subfunction.
2. The configurable algorithm system for multi-stage production resource scheduling simulation optimization according to claim 1, characterized in that: Objective function generated based on general model template configuration as follows: in, , is the decoded variable, and Represents variable encoding. This represents the selected variable decoding sub-function; ,in, For coefficients, For solving sub-functions of a single optimization objective in the sub-function library for evaluating typical production resource scheduling schemes, To select the constituent single targets optimization subfunction The number of To optimize the number of targets.
3. The configurable system for multi-stage production resource scheduling simulation optimization according to claim 1, characterized in that: The automatic connection module for simulation models and algorithms includes a simulation data information interface, a simulation model integration submodule based on dynamic linking, a data flow simulation model integration submodule based on the native environment, a parametric simulation model integration submodule based on the native environment, and a simulation model submodule. Simulation data information interface: It consists of two parts: simulation data input end and simulation data output end. The simulation data input end receives the scheduling scheme generated by the operator automatic configuration module as the initial information of the simulation task. The simulation data output end returns the simulation calculation result to the operator automatic configuration module as the second fitness value for evaluating the scheduling scheme. The simulation model integration submodule based on dynamic linking integrates the simulation model. Before simulation, the model must be packaged into a DLL format dynamic link library, and the model information required for dynamic linking must be stored in the database. When used, the dynamic link library of the corresponding simulation model is called, and the function and input and output variables corresponding to the model are obtained from the database. The data flow simulation model integration submodule based on the native environment enables information interaction between the integrated model's environment and the native environment, transmitting simulation model creation, data loading, and simulation-related information to the native environment; The native environment-based parametric simulation model integration submodule integrates parametric models, where instances of the parametric models are represented in file form, and multiple different model instances are obtained by differentiating the parameter settings of different model files; Simulation Model Submodule: Selects a suitable simulation model from the dynamic link-based model integration submodule, the native environment-based dataflow model integration submodule, and the native environment-based parametric model integration submodule for simulation calculation, and sends the simulation calculation results to the simulation data information interface.
4. A configurable algorithm system for multi-stage production resource scheduling simulation optimization according to claim 3, characterized in that: The data information template in the simulation data information interface is defined as follows: Data information template is The input information is , For the first The type of input, For the first One input name / index, The number of input variables; parameter information is... , For the first The type of each parameter For the first The name / index of each parameter, The number of parameters; the output information is , For the first The type of output, For the first The name / index of each output, This specifies the number of output variables.
5. A configurable system for simulation optimization of multi-stage production resource scheduling according to claim 1, characterized in that: The operator automatic configuration module includes an initialization submodule, a hyperheuristic strategy selection submodule, an operator selection submodule, an evaluation submodule, and an intelligent optimization algorithm submodule; Initialization submodule: Initializes the parameters of various pre-loaded operators and the initial variable encoding set representing the initial feasible scheduling scheme set of the problem to be solved, i.e. the initial population of the iterative search; sets the population size and number of iterations during the iterative search process; In each iteration: The hyperheuristic strategy selection submodule includes hyperheuristic strategies based on randomness, semi-randomness, and rules. It selects a suitable hyperheuristic strategy and sends it to the operator selection submodule for operator selection. Operator selection submodule: Invokes the selected hyperheuristic strategy, selects the specific operator to solve the current problem, and sends it to the intelligent optimization algorithm submodule; Evaluation submodule: Calls the objective function generated by the configuration generation module of the multi-stage production resource scheduling problem model in the manufacturing process, takes the new scheduling scheme set generated by the intelligent optimization algorithm submodule as input, calculates the objective function, and obtains the first fitness value of each scheduling scheme; The simulation calculation results of each scheduling scheme sent by the simulation model and algorithm automatic connection module are used as the second fitness value; The average of the first and second fitness values for each scheduling scheme is the overall fitness value of that scheduling scheme. Select the scheduling scheme with the highest overall fitness value in the current set of new scheduling schemes as the preferred scheduling scheme for the current iteration and store it; Intelligent optimization algorithm submodule: Calls the operator combination selected by the operator selection submodule to generate a new set of scheduling schemes, i.e. a new population, and sends it to the evaluation submodule and the simulation model and algorithm automatic connection module; After reaching the required number of iterations, the evaluation submodule sorts the best scheduling schemes from all previous iterations according to their overall fitness values, selects the best scheduling scheme with the highest overall fitness value as the optimal solution to the current problem, and outputs it.
6. A configurable algorithm system for multi-stage production resource scheduling simulation optimization according to claim 5, characterized in that: In the initialization submodule, the parameters of the operators refer to the inputs of each operator, including various constant coefficients, type selection parameters, and scope parameters.
7. A configurable algorithm system for multi-stage production resource scheduling simulation optimization according to claim 5, characterized in that: The operator selection submodule determines the current problem type based on the mathematical model information for solving the current problem. If the current problem is a multi-objective problem, it calls the hyperheuristic strategy to select multi-objective optimization operators based on Pareto, decomposition, and index search. For single-objective problems, a hyperheuristic strategy is invoked to select multiple selection operators and schedule update operators.
8. A configurable algorithm system for multi-stage production resource scheduling simulation optimization according to claim 7, characterized in that: Selection operators include roulette selection and tournament selection.
9. A configurable algorithm system for multi-stage production resource scheduling simulation optimization according to claim 7, characterized in that: The scheduling scheme update operators include simulated binary crossover operators, sequence-preserving crossover operators, polynomial mutation operators, differential evolution crossover operators, differential evolution mutation operators, and particle swarm optimization learning operators.
