Safe storage location configuration method, electronic equipment and computer readable storage medium
By training neural network models and building integer linear mathematical models, the problem of long-term security library configuration in the existing technology is solved, and the method of quickly finding the optimal security library is realized, and configuration efficiency is improved.
Patent Information
- Application Number
- CN202510376951.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-28
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2045-03-28
AI Technical Summary
When configuring the safe warehouse location of the feeding port, the simulation experiment requires a lot of boundary conditions to be explored, resulting in time-consuming and low efficiency.
By obtaining the simulation data of the target production line, training the neural network model, building an integer linear mathematical model, and using the solver to solve the optimal safety library position to reduce the downtime and wait for materials.
It realizes the rapid determination of the optimal safety library location, reducing the time-consuming and improving configuration efficiency of the safety library location configuration process.
Smart Images

Figure CN119903755A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automation, and in particular to a method for configuring a secure storage location, an electronic device, and a computer-readable storage medium. Background Art
[0002] The manufacturing process of new energy batteries involves multiple processing steps, requiring many types of raw materials or production materials. Different loading ports correspond to different safety storage locations. Constructing reasonable distribution scheduling parameters, such as reasonably setting the safety storage location of each loading port, is the key to reducing downtime waiting time and reducing the time required for production.
[0003] At present, the configuration of the safety storage position of the loading port is mostly carried out through simulation experiments using simulation software and then configured according to the simulation results. However, when determining the safety storage position through simulation experiments, there is a problem that a large number of simulation experiments are required to explore the boundary conditions, which leads to the problem that the safety storage position setting process is time-consuming and inefficient. Summary of the invention
[0004] The present application provides a safe storage location configuration method, an electronic device and a computer-readable storage medium, which can quickly determine the optimal safe storage location for each loading port in a logistics distribution system and improve the efficiency of safe storage location configuration.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions: In a first aspect, a method for configuring a safe storage location is provided, comprising: Acquire simulation data of the target production line; the simulation data includes simulation input parameters and downtime waiting time corresponding to the simulation input parameters, and the simulation input parameters include simulated safe storage locations of each loading port in the target production line; Training the first model based on the simulation data to obtain the trained first model; According to the trained first model, construct an integer linear mathematical model corresponding to the first model; Calling a solver to solve the integer linear mathematical model to obtain an optimal safe storage location; the optimal storage location is a safe storage location that minimizes the downtime waiting time of the target production line; The safety storage location of each loading port in the target production line is configured according to the optimal safety storage location.
[0006] In an embodiment of the present application, the first model can be trained through simulation data, and the trained first model can be used to construct an integer linear mathematical model that can be solved by a solver. The optimal safe storage location can be solved based on the goal of minimizing the downtime waiting for materials, and the optimal safe storage location can be quickly determined, reducing the time consumed in the safe storage location configuration process.
[0007] In an implementation of the first aspect, constructing an integer linear mathematical model corresponding to the first model according to the trained first model includes: constructing a first mathematical model with the goal of minimizing the first model output; Extracting model parameters of the first model after training, and inputting them into the first mathematical model to obtain a second mathematical model including a linear rectification function; The linear rectification function is linearized to obtain an integer linear mathematical model.
[0008] In the embodiment of the present application, a mathematical model is constructed with minimization of the model output as the objective function, thereby constructing an integer linear mathematical model that can be solved by a solver and takes the shortest downtime waiting time as the target, which can effectively simplify the time-consuming solution of the storage location corresponding to the shortest downtime waiting time, that is, the optimal storage location. In an implementation of the first aspect, before acquiring simulation data of the target production line, the method further includes: Acquire production line data of the target production line; Perform simulation modeling according to the production line data of the target production line to obtain a simulation model corresponding to the target production line; A simulation experiment is performed according to the simulation model to obtain simulation data of the target production line.
[0009] In an implementation manner of the first aspect, the first model uses a linear rectification function as an activation function.
[0010] In the embodiment of the present application, the simulation data of the target production line is acquired by constructing a simulation model corresponding to the target production line, so as to improve the accuracy of the simulation data.
[0011] In an implementation of the first aspect, the training of the first model based on the simulation data to obtain the trained first model includes: Initialize the weights and biases of the first model; Taking the simulation input parameters in the simulation data as input, calculating the output of each layer through the forward propagation of neurons in the first model, and obtaining the output of the first model; Calculate the loss function according to the downtime waiting for material in the simulation data and the output of the first model; The weights and biases of the first model are updated according to the loss function, and the training is iterated until a preset number of iterations is reached or the loss function reaches a preset loss threshold.
[0012] By means of the above method, the simulation data is associated with the first model, so that the trained first model can output the corresponding downtime waiting time according to the input simulation input parameters.
[0013] In an implementation manner of the first aspect, the linear rectification function is linearized to obtain an integer linear mathematical model, including: linearizing the linear rectification function based on mixed integer linear programming.
[0014] Through the above method, mixed integer linear programming is used to optimize the form of neural network mathematical model to obtain the optimal safety storage location setting parameters in the material distribution task, which is convenient for determining the optimal safety storage location.
[0015] In an implementation of the first aspect, the production line data includes the loading port position of the production line, the total production quantity of the production line, and the AGV capacity data of the production line.
[0016] In an implementation of the first aspect, performing simulation modeling according to the production line data of the target production line to obtain a simulation model corresponding to the target production line includes: The logistics simulation software is called to establish a simulation model corresponding to the production line data of the target production line.
[0017] In an embodiment of the present application, the logistics simulation software in the electronic device is called to establish a simulation model, which can combine the actual transportation capacity of the AGV and the specific location of the loading port to build a simulation model that is more in line with the actual production line, thereby further improving the accuracy of the simulation data.
[0018] In a second aspect, a safety storage location configuration device is provided, comprising: An acquisition unit, used to acquire simulation data of a target production line; the simulation data includes simulation input parameters and downtime waiting time corresponding to the simulation input parameters, and the simulation input parameters include simulation safety storage locations of each loading port in the target production line; A training unit, configured to train the first model based on the simulation data to obtain the trained first model; A model building unit, configured to build an integer linear mathematical model corresponding to the first model according to the trained first model; A solving unit, used for calling a solver to solve the integer linear mathematical model to obtain an optimal safe storage location; the optimal storage location is a safe storage location that minimizes the downtime waiting time of the target production line; A configuration unit is used to configure the safety storage location of each loading port in the target production line according to the optimal safety storage location.
[0019] In a third aspect, an embodiment of the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for configuring a secure storage location as described in any one of the first aspects above is implemented.
[0020] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for configuring a secure storage location as described in any one of the first aspects above is implemented.
[0021] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the security storage location configuration method described in any one of the first aspects above.
[0022] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.
[0023] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Moreover, the same reference numerals are used throughout the drawings to represent the same components. In the drawings: Figure 1 It is a schematic diagram of an application scenario of a material distribution system provided in an embodiment of the present application; Figure 2 It is a flowchart of a method for configuring a secure storage location provided in an embodiment of the present application; Figure 3 It is a schematic diagram of the architecture of the first model provided in the embodiment of the present application; Figure 4 It is a flow chart of S103 of a method for configuring a safe storage location provided by another embodiment of the present application; Figure 5 It is a structural block diagram of a safe storage location configuration device provided in an embodiment of the present application; Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.
[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.
[0027] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0028] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0029] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0030] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).
[0031] In the description of the embodiments of the present application, the technical terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the embodiments of the present application and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the embodiments of the present application.
[0032] In the description of the embodiments of the present application, unless otherwise clearly specified and limited, technical terms such as "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal connection of two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.
[0033] An Automated Guided Vehicle (AGV) is an unmanned automated vehicle that uses automatic guidance equipment such as magnetic strips, tracks or lasers to travel along a planned path, is powered by batteries, and is equipped with safety protection and various auxiliary mechanisms (such as transfer and assembly mechanisms). The automatic transportation and distribution of materials by AGV can effectively improve the production efficiency of the production line.
[0034] In the manufacturing process of new energy batteries, AGV can also be used in the battery pack production workshop to transport production materials to the designated loading port. Generally speaking, a safety storage position is set for each loading port. If the amount of material at the loading port is less than the safety storage position and the material is not replenished in time, production will stagnate, resulting in extended downtime waiting for materials, affecting production efficiency.
[0035] The safety storage position can specifically refer to the amount of buffer material required by the loading port. When the amount of material in the loading port is less than the safety storage position, refilling is required.
[0036] For example, Figure 1 As shown, Figure 1 A schematic diagram of an application scenario of a material distribution system is shown. Figure 1 As shown, AGV1 can be used to transport materials required by loading port 1, and AGV2 can be used to transport materials required by loading port 2. X1 is the safe storage location of loading port 1, and X2 is the safe storage location of loading port 2. When the amount of material at loading port 1 is less than the safe storage location X1, AGV1 is controlled to replenish materials. When the amount of material at loading port 2 is less than the safe storage location X2, AGV2 is controlled to replenish materials.
[0037] If the material quantity at a certain loading port is lower than the safety storage position corresponding to the loading port and is not replenished in time, production will stagnate. Therefore, reasonably setting the safety storage position for each loading port can effectively reduce the downtime due to waiting for materials.
[0038] The setting of safe storage locations for different loading ports in the current logistics distribution system is mostly set through simulation results of simulation software. However, determining the safe storage locations through simulation experiments requires a large number of simulation experiments to explore boundary conditions. Carrying out a large number of simulation experiments requires a lot of time, which is time-consuming and inefficient.
[0039] Based on this, an embodiment of the present application provides a method for configuring safe storage locations, which can train a first model through simulation data, and use the trained first model to construct an integer linear mathematical model that can be solved by a solver. It can solve the optimal safe storage location based on the goal of minimizing the downtime waiting for materials, and can quickly determine the optimal safe storage location, reducing the time consumed in the safe storage location configuration process.
[0040] See also Figure 2 , is a flow chart provided in the embodiment of the present application. The safe storage location configuration method provided in the embodiment of the present application can be applied to electronic devices on a production line, or to other electronic devices with built-in processors, or data analysis capabilities or artificial intelligence analysis capabilities. The embodiment of the present application does not make a single limitation on this. As an example and not a limitation, Figure 2 As shown, the method for configuring a safe storage location may include the following steps: S101, obtaining simulation data of a target production line.
[0041] In one embodiment of the present application, the above-mentioned target production line refers to a production line that needs to set a safe storage position for the loading port, and the simulation data may include simulation input parameters and the downtime waiting time corresponding to the simulation input parameters. Among them, the simulation input parameters can be the simulated safe storage positions of each loading port in the target production line.
[0042] In a specific application, the target production line may include multiple loading ports. In the simulation experiment, multiple groups of simulation input parameters may be input, each group of simulation input parameters including the simulated safe storage location of each loading port. For example, assuming that the target production line includes three loading ports, the first group of simulation input parameters may include the simulated safe storage location X of the first loading port. 11 , the simulated safety storage location X of the second loading port 21 , the simulated safety storage location X of the third loading port 31 ; The second set of simulation input parameters may include the simulated safety storage location X of the first loading port 12 , the simulated safety storage location X of the second loading port 22 , the simulated safety storage location X of the third loading port 32 etc.
[0043] In specific applications, the above-mentioned simulation data can be obtained by simulating the target production line through simulation software to obtain a simulation model corresponding to the target production line, and in the process of conducting the simulation experiment, each set of simulation input data is input into the simulation model corresponding to the target production line to obtain the downtime waiting time corresponding to the set of simulation input data.
[0044] Specifically, an AGV refilling simulation model corresponding to the target production line can be established through logistics simulation software, and the safety storage location parameters of different refilling ports can be set. The simulation model can be run and the downtime waiting time can be recorded to obtain the above simulation data.
[0045] It should be noted that the specific numerical value of the simulation input data can be determined based on experience or randomly, and the embodiments of the present application do not impose any specific restrictions on this.
[0046] It should also be noted that the above-mentioned simulation software can adopt existing simulation software, and the embodiments of the present application do not impose specific limitations on this.
[0047] S102, training the first model based on the simulation data to obtain a trained first model.
[0048] Among them, the above-mentioned first model can specifically be a neural network with a linear rectification function (Linear rectification function, ReLU function) as an activation function. The trained first model can associate simulation parameters with simulation results, that is, the trained first model can output corresponding simulation results according to the input simulation parameters.
[0049] In a specific application, the process of training the first model based on simulation data may specifically include the following steps: Initialize the weights and biases of the above neural network; the weights and biases of the neural network are parameters in the neural network, corresponding to the weights of the connected neurons and the bias values of each neuron, respectively.
[0050] The simulation input parameters in the simulation data are taken as input, and the output of each layer is calculated through the forward propagation of the neural network; specifically, for each layer, the input data is linearly combined with the weights, and then processed through the activation function to generate the output of the layer.
[0051] After obtaining the output of the first model, it is necessary to calculate the loss function; the loss function measures the difference between the predicted value and the true value. Commonly used loss functions include mean square error (MSE), cross entropy loss, etc. In the embodiment of the present application, the predicted value is the output of the above-mentioned neural network, and the true value is the downtime waiting time corresponding to the input simulation input parameters in the simulation data.
[0052] Update the weights and biases of the network to minimize the loss function. During the back-propagation process, first calculate the gradient of the loss function with respect to each weight, and then update the weights and biases of each neuron according to algorithms such as gradient descent. Repeat the above steps until the preset number of iterations is reached or the loss function reaches the preset loss threshold. The first model is considered to have completed training.
[0053] It should be noted that the preset number of iterations and the preset loss function can be set according to actual application requirements, and the embodiments of the present application do not impose specific restrictions on this.
[0054] For example, Figure 3 As shown, by inputting the simulation input parameters into the first model for processing, the safety storage location corresponding to each loading port and the output result corresponding to each set of simulation input parameters, namely, the downtime waiting time, can be obtained.
[0055] It is understandable that the trained first model can output corresponding simulation results according to the input simulation parameters. Therefore, multiple simulation results can be obtained without performing simulation experiments multiple times.
[0056] S103: construct an integer linear mathematical model corresponding to the first model based on the trained first model.
[0057] In specific applications, since in actual applications, the shorter the downtime waiting for materials, the more reasonable the setting of the safety storage position of the loading port is, the integer linear mathematical model corresponding to the first model can be constructed with minimizing the downtime waiting for materials as the objective function.
[0058] It should be noted that the integer linear mathematical model can be implemented based on integer linear programming. For example, the integer linear mathematical model corresponding to the first model can be constructed based on mixed integer linear programming.
[0059] It can be understood that the integer linear mathematical model can be solved by a mathematical solver to obtain the required results, so the target model constructed in the embodiment of the present application is an integer linear mathematical model.
[0060] S104, calling a solver to solve the integer linear mathematical model to obtain the optimal safety storage location.
[0061] In specific applications, a solver can be built into the electronic device. The solver can be a commonly used mathematical solver. After constructing an integer linear mathematical model corresponding to the first model, the built-in solver in the electronic device is directly called to solve the mathematical model to obtain the required optimal safety storage position.
[0062] The above-mentioned optimal safe storage location refers to the safe storage location that minimizes the downtime waiting time for materials for the target production line, including the safe storage location of each loading port.
[0063] S105, configuring the safety storage location of each loading port in the target production line according to the optimal safety storage location.
[0064] In specific applications, in the actual production process, by setting the safety storage position of each loading port in the target production line to a safety storage position corresponding to the optimal safety storage position, the downtime waiting time of the target production line can be minimized.
[0065] For example, assuming that the target production line includes three loading ports, assuming that the optimal safety storage location obtained includes the optimal safety storage location X of the first loading port 1tar , the optimal safe storage position X of the second loading port 2tar , the optimal safe storage location X of the third loading port 3tar, , the safety location of the first loading port can be set to X 1tar , set the safety location of the second loading port to X 2tar , set the safety location of the third loading port to X 3tar .
[0066] From the above, it can be seen that the safety storage location configuration method provided in the embodiment of the present application can train the first model through simulation data, and use the trained first model to construct an integer linear mathematical model that can be solved by a solver, and can solve the optimal safety storage location based on the goal of minimizing the downtime waiting for materials. It can quickly determine the optimal safety storage location and reduce the time consumed in the safety storage location configuration process.
[0067] In one embodiment, Figure 4 As shown, step S103 may include: S1031: Constructing a first mathematical model with the goal of minimizing the first model output.
[0068] In a specific application, the output of the first model is the downtime waiting for material. The shorter the downtime waiting for material, the more reasonable the setting of the safety storage position of each loading port. Therefore, by minimizing the output of the first model as the goal, the first mathematical model is constructed. The above first mathematical model can be expressed as: ; The constraints are expressed as: ; in, minNN () represents the minimum output of the first model, Represents a collection of multiple safety locations for the first loading port. Represents a collection of multiple safety locations for the second loading port. Represents the set of multiple safe storage locations of the nth loading port, Indicates the lower limit of the safety storage position of the first loading port. Indicates the upper limit of the safety storage space of the first loading port. Indicates the lower limit of the safety storage position of the second loading port. Indicates the upper limit of the safety storage space of the second loading port. Indicates the lower limit of the safety storage position of the nth loading port. Indicates the upper limit of the safety storage space for the nth loading port.
[0069] Among them, the upper limit of the safety storage position refers to the maximum limit on the number of materials stored in the loading port, and the lower limit of the safety storage position refers to the minimum requirement for the number of materials stored in the loading port.
[0070] S1032: extract model parameters (weights) of the trained first model, and input them into the first mathematical model to obtain a second mathematical model including a linear rectification function.
[0071] The second mathematical model can be expressed as: ; The constraints can be expressed as:
[0072] in, minz () represents the minimum output of the first model, Represents a collection of multiple safety locations for the first loading port. Represents a collection of multiple safety locations for the second loading port. Represents the set of multiple safe storage locations for the third loading port. Represents the weight corresponding to the first feeding port neuron, Represents the weight corresponding to the second feeding port neuron.
[0073] S1033: Linearize the linear rectification function to obtain an integer linear mathematical model.
[0074] The above integer linear mathematical model can be expressed as: ; The constraints can be expressed as:
[0075] in, a is the integer variable of the above integer linear mathematical model.
[0076] It can be seen from the above that the embodiment of the present application utilizes mixed integer linear programming to optimize the form of a neural network mathematical model to obtain the optimal safety storage location setting parameters in the material distribution task, thereby facilitating the determination of the optimal safety storage location.
[0077] In one embodiment, the method further comprises: Obtain production line data of the target production line; Perform simulation modeling based on the production line data of the target production line to obtain a simulation model corresponding to the target production line; Conduct simulation experiments based on the simulation model to obtain simulation data for the target production line.
[0078] In specific applications, the above production line data may specifically include the position of the loading port of the production line, the total production quantity of the production line, the AGV capacity data of the production line, etc.
[0079] In this embodiment, the simulation data of the target production line is acquired by constructing a simulation model corresponding to the target production line, so that the accuracy of the simulation data can be improved.
[0080] Corresponding to the safe storage location configuration method described in the above embodiment, Figure 5 This is a structural block diagram of a secure storage location configuration device provided in an embodiment of the present application. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0081] Reference Figure 5 , the safe storage location configuration device 5 includes: The acquisition unit 501 is used to acquire simulation data of the target production line; the simulation data includes simulation input parameters and downtime waiting time corresponding to the simulation input parameters, and the simulation input parameters include simulation safety storage locations of each loading port in the target production line; The training unit 502 is used to train the first model based on the simulation data to obtain the trained first model; The model building unit 503 is used to build an integer linear mathematical model corresponding to the first model according to the trained first model; The solving unit 504 is used to call a solver to solve the integer linear mathematical model to obtain an optimal safety storage location; the optimal storage location is a safety storage location that minimizes the downtime waiting time of the target production line; The configuration unit 505 is used to configure the safety storage location of each loading port in the target production line according to the optimal safety storage location.
[0082] In some implementations, the model construction unit 503 is specifically used to construct a first mathematical model with the goal of minimizing the output of the first model; extract the model parameters of the first model that has been trained, and input them into the first mathematical model to obtain a second mathematical model including a linear rectification function; linearize the linear rectification function to obtain an integer linear mathematical model.
[0083] In some implementations, the above-mentioned safe storage location configuration device 5 may also include a simulation unit, which can be specifically used to obtain production line data of the target production line; perform simulation modeling based on the production line data of the target production line to obtain a simulation model corresponding to the target production line; and perform simulation experiments based on the simulation model to obtain simulation data of the target production line.
[0084] In some implementations, the training unit 503 may be specifically used to initialize the weights and biases of the first model; The simulation input parameters in the simulation data are used as input, and the output of each layer is calculated through the forward propagation of neurons in the first model to obtain the output of the first model; the loss function is calculated according to the downtime waiting for material in the simulation data and the output of the first model; the weight and bias of the first model are updated according to the loss function, and the training is iterated until a preset number of iterations is reached or the loss function reaches a preset loss threshold.
[0085] In some implementations, the first model uses a linear rectification function as an activation function.
[0086] In some implementations, the linear rectification function is linearized based on mixed integer linear programming.
[0087] In some implementations, the production line data includes the location of the loading port of the production line, the total production quantity of the production line, and the AGV capacity data of the production line.
[0088] Optionally, the simulation unit is further used to: call logistics simulation software to establish a simulation model corresponding to the production line data of the target production line.
[0089] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0090] Based on this, the safety storage location configuration device provided in the embodiment of the present application can also train the first model through simulation data, and use the trained first model to construct an integer linear mathematical model that can be solved by a solver. It can solve the optimal safety storage location based on the goal of minimizing the downtime waiting time for materials, and can quickly determine the optimal safety storage location, thereby reducing the time consumed in the safety storage location configuration process.
[0091] in addition, Figure 5 The secure storage location configuration device shown may be a software unit, a hardware unit, or a combination of software and hardware units built into an existing electronic device, or may be integrated into the electronic device as an independent pendant, or may exist as an independent electronic device.
[0092] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0093] Figure 6 Schematic diagram of the structure of the electronic device provided in the embodiment of the present application. Figure 6 As shown, the electronic device 6 of this embodiment includes: at least one processor 60 ( Figure 6 Only one is shown in the figure) a processor, a memory 61, and a computer program 62 stored in the memory 61 and executable on the at least one processor 60, wherein the processor 60 implements the steps in any of the above-mentioned embodiments of the method for configuring the security storage location when executing the computer program 62.
[0094] The electronic device may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The electronic device may include, but is not limited to, a processor and a memory. Those skilled in the art will understand that Figure 6 It is only an example of the electronic device 6 and does not constitute a limitation on the electronic device 6. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0095] The processor 60 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0096] In some embodiments, the memory 61 may be an internal storage unit of the electronic device 6, such as a hard disk or memory of the electronic device 6. In other embodiments, the memory 61 may also be an external storage device of the electronic device 6, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the electronic device 6. The memory 61 is used to store an operating system, an application program, a boot loader, data, and other programs, such as the program code of the computer program. The memory 61 may also be used to temporarily store data that has been output or is to be output.
[0097] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0098] An embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0099] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the device / electronic device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0100] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0101] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0102] In the embodiments provided in the present application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0103] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0104] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for configuring a safe storage location, characterized in that: include: Acquire simulation data of the target production line; the simulation data includes simulation input parameters and downtime waiting time corresponding to the simulation input parameters, and the simulation input parameters include simulated safe storage locations of each loading port in the target production line; Training the first model based on the simulation data to obtain the trained first model; According to the trained first model, construct an integer linear mathematical model corresponding to the first model; Calling a solver to solve the integer linear mathematical model to obtain an optimal safe storage location; the optimal storage location is a safe storage location that minimizes the downtime waiting time of the target production line; The safety storage location of each loading port in the target production line is configured according to the optimal safety storage location.
2. The method for configuring safe storage locations according to claim 1, characterized in that: The step of constructing an integer linear mathematical model corresponding to the first model according to the trained first model includes: constructing a first mathematical model with the goal of minimizing the first model output; Extracting model parameters of the first model after training, and inputting them into the first mathematical model to obtain a second mathematical model including a linear rectification function; The linear rectification function is linearized to obtain an integer linear mathematical model.
3. The method for configuring safe storage locations according to claim 1 or 2, characterized in that: Before acquiring the simulation data of the target production line, the method further includes: Acquire production line data of the target production line; Perform simulation modeling according to the production line data of the target production line to obtain a simulation model corresponding to the target production line; A simulation experiment is performed according to the simulation model to obtain simulation data of the target production line.
4. The method for configuring safe storage locations according to claim 1, characterized in that: The first model uses a linear rectification function as an activation function.
5. The method for configuring safe storage locations according to claim 1, characterized in that: The step of training the first model based on the simulation data to obtain the trained first model includes: Initialize the weights and biases of the first model; Taking the simulation input parameters in the simulation data as input, calculating the output of each layer through the forward propagation of neurons in the first model, and obtaining the output of the first model; Calculate the loss function according to the downtime waiting for material in the simulation data and the output of the first model; The weights and biases of the first model are updated according to the loss function, and the training is iterated until a preset number of iterations is reached or the loss function reaches a preset loss threshold.
6. The method for configuring safe storage locations according to claim 2, characterized in that: The linear rectification function is linearized to obtain an integer linear mathematical model, including: The linear rectification function is linearized based on mixed integer linear programming.
7. The method for configuring safe storage locations according to claim 3, characterized in that: The production line data includes the position of the loading port of the production line, the total production quantity of the production line, and the AGV capacity data of the production line.
8. The method for configuring safe storage locations according to claim 3, characterized in that: The performing simulation modeling according to the production line data of the target production line to obtain a simulation model corresponding to the target production line includes: The logistics simulation software is called to establish a simulation model corresponding to the production line data of the target production line.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for configuring a secure storage location as described in any one of claims 1 to 8 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for configuring a secure storage location as described in any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Automatic stereoscopic warehouse storage location distribution method
CN110980082A
Maintenance support resource joint inventory configuration method based on hyper-heuristic algorithm
CN112613643A
Container port emergency material optimal allocation method considering time window constraints
CN112884383A
Production logistics distribution method and system based on position covering pulling mode
CN116739449A
Automatic assembly mixed flow production line layout optimization method and device based on digital twinning
CN117148806A