Repair line site area calculation method, device, electronic equipment and storage medium

By generating a full array matrix and simulating the execution process, it solves the problem in the existing technology that the repair line area measurement relies on manual experience, achieves efficient calculation of the repair line area and execution sequence, and improves the operating efficiency of the repair line.

CN118228963BActive Publication Date: 2024-10-11NAVAL UNIV OF ENG PLA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410185057.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-19
Publication Date
2024-10-11
Estimated Expiration
2044-02-19

AI Technical Summary

Technical Problem

Existing repair line site area calculation solutions that include processes that can be executed in parallel rely too much on manual experience, resulting in low repair line operation efficiency.

Method used

By obtaining the parallel processes of the target repair line, their average time-consuming and the minimum execution site area, a full array matrix is ​​generated, the site area measurement range is calculated, and the execution process is simulated until all processes are completed, the minimum completion time is determined, and the site is gradually increased The area is beyond the range to accurately measure the completion time of different execution sequences.

Benefits of technology

Accurately calculate the minimum completion time of parallel processes under different repair line site areas, which improves the work operation efficiency of the repair line.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118228963B_ABST
    Figure CN118228963B_ABST
Patent Text Reader

Abstract

The present application relates to the field of intelligent manufacturing technology, and discloses a method, device, electronic device and storage medium for calculating the site area of ​​a repair line. The method includes: obtaining the parallelizable processes contained in the target repair line, as well as the corresponding first average time consumption and minimum execution site area, and generating the corresponding full-arrangement matrix; calculating the site area measurement range of the parallelizable processes; generating a matrix of processes to be repaired according to the full-arrangement matrix, the first average time consumption and the minimum execution site area; generating an execution process matrix according to the measured site area, the minimum execution site area and the matrix of processes to be repaired; simulating the execution process of the parallelizable processes in the execution process matrix until all the parallelizable processes are simulated and executed, and obtaining the corresponding minimum completion time; increasing the measured site area by a preset area step, and repeating the above steps until the measured site area exceeds the site area measurement range, and obtaining the measured site area and minimum completion time corresponding to the matrix of processes to be repaired.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent manufacturing technology, and in particular to a method, device, electronic device and storage medium for calculating the area of ​​a repair line site. Background Art

[0002] In the field of intelligent manufacturing technology, after completing the maintainability design of the equipment, a detailed flow chart of the repair line will be generated. The detailed flow chart must show the causal logic relationship or the sequence relationship between each process, and indicate the site area required for each process. Among them, the types of logical relationships or sequence relationships between each process include serial relationships and parallel relationships. When a process contains multiple sub-processes that can be carried out in parallel, and the site area is not enough for the sub-processes to be carried out simultaneously, only some of the sub-processes can be executed in parallel, that is, due to the different site areas, the execution order of the parallel sub-processes is different, which will make the completion time of the parallel sub-processes different. The existing repair line site area calculation scheme containing processes that can be executed in parallel relies on the work experience of the repair line managers to give the repair line site area, resulting in the actual repair line operation is not efficient. Summary of the invention

[0003] The technical problem mainly solved by the implementation methods of the present application is that the existing determination of the area of ​​the repair line site containing processes that can be executed in parallel relies too much on manual experience, resulting in inefficient operation of the actual repair line.

[0004] In order to solve the above technical problems, the first technical solution adopted by the implementation method of the present application is: to provide a repair line site area measurement method, including: obtaining at least two parallel processes included in the target repair line, and the first average time consumption and the minimum execution site area of ​​the parallel processes, and generating a full arrangement matrix of the parallel processes; calculating the site area measurement range of the parallel processes, and setting the minimum value of the site area measurement range as the measurement site area; generating a matrix of processes to be repaired according to the full arrangement matrix, the first average time consumption and the minimum execution site area; generating an execution process matrix according to the measurement site area, the minimum execution site area and the matrix of processes to be repaired; simulating the execution process of the parallel processes in the execution process matrix until all the parallel processes are simulated and executed, and obtaining the minimum completion time corresponding to the initial measurement area; increasing the measurement site area by a preset area step, and repeatedly generating the matrix of processes to be repaired until the minimum completion time is obtained, until the measurement site area exceeds the site area measurement range, and obtaining the measurement site area and the minimum completion time corresponding to the matrix of processes to be repaired.

[0005] Optionally, the step of calculating the site area measurement range of the parallelizable processes includes:

[0006] The minimum value of the site area measurement range is calculated by the preset formula (1):

[0007] S1=max({s i |1≤i≤n}) (1)

[0008] Wherein, S1 represents the minimum value of the site area measurement range, n represents the number of the parallelizable processes, i represents the sequence number of the parallelizable processes, and s i represents the minimum execution site area of ​​the i-th parallelizable process; the maximum value of the site area measurement range is calculated by the preset formula (2):

[0009]

[0010] Wherein, S2 represents the maximum value of the site area measurement range.

[0011] Optionally, the step of generating a matrix of processes to be repaired based on the full permutation matrix, the first average time consumption and the minimum execution site area includes: obtaining each row of the full permutation matrix in turn as a process array, wherein each row of the full permutation matrix is ​​an arrangement order in which the parallel processes are executed; setting the process array as the first column of the matrix of processes to be repaired, wherein the first element of the process array is the first element of the first row of the matrix of processes to be repaired; setting the minimum execution site area of ​​each of the parallel processes to the second column of the matrix of processes to be repaired; and setting the first average time consumption of each of the parallel processes to the third column of the matrix of processes to be repaired.

[0012] Optionally, the step of generating an execution process matrix according to the measured site area, the minimum execution site area and the process matrix to be repaired includes: selecting a row vector from the process matrix to be repaired in sequence according to the measured site area, adding the row vector to the execution process matrix, and removing the row vector from the process matrix to be repaired accordingly, wherein the first column of the execution process matrix is ​​the serial number of the parallelizable process, the second column is the minimum execution site area, and the third column is the first average time consumption; using the measured site area to subtract the sum of the minimum execution site areas in the current execution process matrix to obtain the remaining site area; if the remaining site area is greater than or equal to the minimum execution site area in the first row of the process matrix to be repaired, transferring the first row vector in the process matrix to be repaired to the end vector of the execution process matrix; repeating the steps from using the measured site area to subtract the sum of the minimum execution site area in the current execution process matrix to transferring the first row vector in the process matrix to the end vector of the execution process matrix, until the remaining site area is less than the minimum execution site area in the first row of the process matrix to be repaired.

[0013] Optionally, the step of simulating the execution process of the parallelizable processes in the execution process matrix until all the parallelizable processes are simulated and executed to obtain the minimum completion time corresponding to the initial measured area includes: initializing the minimum completion time to 0, obtaining the first row vector with the minimum average time consumption from the execution process matrix as the completion process row vector; subtracting the first average time consumption in the completion process row vector from all the first average times in the execution process matrix, and adding the first average time consumption to the minimum completion time; adding the minimum execution site area in the completion process row vector to the remaining site area, and removing the corresponding completion process row vector in the execution process matrix; judging whether the updated remaining site area is less than the minimum execution site area of ​​the first row vector in the process matrix to be repaired; if not, transferring the first row vector in the process matrix to be repaired to the execution process matrix; and looping the steps from obtaining the first row vector with the minimum average time consumption from the execution process matrix as the completion process row vector to transferring the first row vector in the process matrix to the execution process matrix until the execution process matrix is ​​empty.

[0014] Optionally, after simulating the execution process of the parallelizable processes in the execution process matrix until all the parallelizable processes are simulated and executed and the step of obtaining the minimum completion time corresponding to the initial measured area, the step further includes: obtaining the first column of the matrix of processes to be repaired as a simulated process array, and the minimum completion time corresponding to the simulated process array; generating a measurement row vector using the simulated process array, the minimum completion time and the initial measured area; and adding the measurement row vector to a preset site area measurement matrix.

[0015] Optionally, after the step of obtaining the measured site area and the minimum completion time corresponding to the matrix of the process to be repaired, it also includes: calculating the difference between the minimum completion time in adjacent row vectors in the site area measurement matrix as a completion time change value; judging whether the completion time change value is greater than a preset time change threshold, and if so, obtaining the adjacent row vectors corresponding to the completion time change value, and outputting the row vector with the larger measured area in the adjacent row vectors as a recommended solution for repair line site area measurement.

[0016] In order to solve the above technical problems, the second technical solution adopted by the implementation method of the present application is: to provide a repair line site area measurement device, including: a parallel process module, used to obtain at least two parallel processes included in the target repair line, as well as the first average time consumption and the minimum execution site area of ​​the parallel processes, and generate a full arrangement matrix of the parallel processes; an area range calculation module, used to calculate the site area measurement range of the parallel processes, and set the minimum value of the site area measurement range as the measurement site area; a to-be-repaired process matrix module, used to generate a to-be-repaired process matrix according to the full arrangement matrix, the first average time consumption and the minimum execution site area; an execution process matrix An array module is used to generate an execution process matrix according to the measurement site area, the minimum execution site area and the to-be-repaired process matrix; a process simulation execution module is used to simulate the execution process of the parallel processes in the execution process matrix until the parallel processes are all simulated and executed, and the minimum completion time corresponding to the initial measurement area is obtained; a simulation execution loop module is used to increase the measurement site area by a preset area step, and repeatedly generate the to-be-repaired process matrix until the minimum completion time is obtained, until the measurement site area exceeds the site area measurement range, and the measurement site area and the minimum completion time corresponding to the to-be-repaired process matrix are obtained.

[0017] To solve the above technical problems, the third technical solution adopted in the implementation mode of the present application is: to provide an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the repair line site area measurement method as described above.

[0018] In order to solve the above technical problems, the fourth technical solution adopted in the implementation mode of the present application is: providing a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by an electronic device, the electronic device executes the repair line site area measurement method as described above.

[0019] Different from the related art, the present application obtains the parallelizable processes included in the target repair line, as well as the corresponding first average time consumption and minimum execution site area, and generates a corresponding full arrangement matrix; calculates the site area measurement range of the parallelizable processes; generates a matrix of processes to be repaired according to the full arrangement matrix, the first average time consumption and the minimum execution site area; generates an execution process matrix according to the measured site area, the minimum execution site area and the matrix of processes to be repaired; simulates the execution process of the parallelizable processes in the execution process matrix until all the parallelizable processes are simulated and executed, and the corresponding minimum completion time is obtained; increases the measured site area by a preset area step, and repeats the above steps until the measured site area exceeds the site area measurement range, and obtains the measured site area and minimum completion time corresponding to the matrix of processes to be repaired. This not only accurately measures the minimum completion time corresponding to different execution orders of parallelizable processes under different repair line site areas, but also further improves the working efficiency of the repair line. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] One or more embodiments are exemplarily described by corresponding drawings, which do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and the figures in the drawings do not constitute proportional limitations unless otherwise stated.

[0021] Figure 1 It is a schematic diagram of the application environment of the repair line site area calculation method provided in the embodiment of the present application;

[0022] Figure 2 It is a flow chart of a method for calculating the repair line site area provided in an embodiment of the present application;

[0023] Figure 3 It is a structural schematic diagram of a repair line site area calculation device provided in an embodiment of the present application;

[0024] Figure 4 It is a hardware structure diagram of an electronic device for executing a repair line site area calculation method provided in an embodiment of the present application;

[0025] Figure 5 This is a data chart comparing the average completion time of the repair line site area measurement results and simulation results provided in the embodiment of the present application. DETAILED DESCRIPTION

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

[0027] It should be noted that, if there is no conflict, the various features in the embodiments of the present application can be combined with each other, all within the scope of protection of the present application. In addition, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order than the module division in the device schematic diagram or the order in the flow chart.

[0028] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used in this specification includes any and all combinations of one or more of the related listed items.

[0029] To facilitate understanding of this embodiment, a repair line site area calculation method disclosed in an embodiment of the present application is first introduced in detail. The executor of the repair line site area calculation method provided in the embodiment of the present application is generally an electronic device with certain computing capabilities, such as a computer device. In some possible implementation methods, the repair line site area calculation method can be implemented by a processor calling computer-readable instructions stored in a memory.

[0030] See also Figure 1 , Figure 1Schematic diagram of the application environment of the repair line site area calculation method provided in the embodiment of the present application, wherein the computer device can be but is not limited to various personal computers and laptops. The computer device can also be a server. The server can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. It can be understood that Figure 1 The number of computer devices in the figure is only for reference and can be expanded to any number according to actual needs.

[0031] The following uses a computer device as an example to illustrate the method for calculating the area of ​​the repair line provided in the embodiment of the present application. Figure 2 , Figure 2 : is a flow chart of a method for calculating the repair line site area provided in an embodiment of the present application, which specifically includes:

[0032] S10, obtaining at least two parallelizable processes included in the target repair line, as well as the first average time consumption and the minimum execution site area of ​​the parallelizable processes, and generating a full arrangement matrix of the parallelizable processes.

[0033] The minimum execution site area indicates the minimum site area required for the corresponding parallel process to be launched and executed, that is, when the site area is smaller than the minimum execution site area, the corresponding parallel process cannot be launched and executed.

[0034] Furthermore, the full permutation matrix is ​​a process sequence arrangement scheme matrix containing all parallel processes, that is, each row vector of the full permutation matrix contains all parallel processes, and each parallel process is unique in each row vector, and the elements in each row vector represent the serial number of the parallel process, and the order of the elements in each row vector also represents the order in which the parallel processes are executed.

[0035] S20. Calculate the site area measurement range of the parallelizable processes, and set the minimum value of the site area measurement range as the measurement site area.

[0036] As an optional implementation, first, the minimum value of the site area measurement range is calculated by using the preset formula (1):

[0037] S1=max({s i |1≤i≤n}) (1)

[0038] Among them, S1 represents the minimum value of the site area measurement range, n represents the number of parallel processes, i represents the sequence number of parallel processes, and si represents the minimum execution area of ​​the ith parallelizable process. Then, the maximum value of the site area measurement range is calculated using the preset formula (2):

[0039]

[0040] Among them, S2 represents the maximum value of the site area measurement range. That is, the lower limit of the repair line site area is equal to the maximum value of the site area required by all parallel processes, so as to ensure that each parallel process can have enough site area for execution. At the same time, the upper limit of the repair line site area is the sum of the site areas required by all parallel processes, that is, the repair line site area only needs to meet the requirements that all parallel processes can be executed at the same time. It is meaningless to increase the repair line site area on this basis.

[0041] S30, generating a matrix of processes to be repaired according to the full arrangement matrix, the first average time consumption and the minimum execution site area.

[0042] As an optional implementation, first, obtain each row of the full permutation matrix in turn as a process array, wherein each row of the full permutation matrix is ​​an arrangement order in which the parallel processes are executed. Then, set the process array as the first column of the process matrix to be repaired, wherein the first element of the process array is the first element of the first row of the process matrix to be repaired; set the minimum execution area of ​​each parallel process to the second column of the process matrix to be repaired; set the first average time consumption of each parallel process to the third column of the process matrix to be repaired.

[0043] S40, generating an execution process matrix according to the measured site area, the minimum execution site area and the matrix of processes to be repaired.

[0044] As an optional implementation, the above process of generating the execution process matrix specifically includes: first, selecting a row vector from the process matrix to be repaired in order according to the measured site area, and adding the row vector to the execution process matrix, and removing the row vector from the process matrix to be repaired, wherein the first column of the execution process matrix is ​​the serial number of the parallelizable process, the second column is the minimum execution site area, and the third column is the first average time consumption. Then, the remaining site area is obtained by subtracting the sum of the minimum execution site area in the current execution process matrix from the measured site area, that is, after a part of the current measured site area has been occupied by the parallelizable processes in the execution process matrix, the remaining available site area is obtained. Furthermore, if the remaining site area is greater than or equal to the minimum execution site area of ​​the first row in the process matrix to be repaired, the first row vector in the process matrix to be repaired is transferred to the end vector of the execution process matrix, that is, the remaining site area can also allow new parallelizable processes in the process matrix to be repaired to be placed in the repair line site for execution. Repeat the steps from subtracting the sum of the minimum execution site area in the current execution process matrix from the measured site area to transferring the first row vector in the process matrix to be repaired to the end vector of the execution process matrix until the remaining site area is smaller than the minimum execution site area in the first row of the process matrix to be repaired, that is, the remaining site area of ​​the current measured site area can no longer meet the requirements for the expansion and execution of a new parallel process in the process matrix to be repaired.

[0045] S50, simulating the execution process of the parallelizable processes in the process matrix until all the parallelizable processes are simulated and executed completely, thereby obtaining the minimum completion time corresponding to the initial measured area.

[0046] As an optional implementation, the above execution process may include the following steps:

[0047] S501, initializing the minimum completion time to 0, and obtaining the first row vector with the minimum average time consumption from the execution process matrix as the completion process row vector.

[0048] S502, subtract the first average time consumption in the row vector of the completed process from all the first average time consumptions in the execution process matrix, and add the first average time consumption to the minimum completion time, that is, the parallelizable process with the minimum first average time consumption is completed by consuming the first average time consumption.

[0049] S503. Add the remaining site area to the minimum execution site area in the completed process row vector, and remove the corresponding completed process row vector in the execution process matrix. That is, after the parallel process corresponding to the completed process row vector is executed, there will be an additional corresponding minimum execution site area in the repair line site. This is needed to determine whether the newly added repair line site area can meet the addition of the next parallel process.

[0050] S504: Determine whether the updated remaining site area is smaller than the minimum execution site area of ​​the first row vector in the matrix of the process to be repaired.

[0051] S505. If the updated remaining site area is equal to or greater than the minimum execution site area of ​​the first row vector in the matrix of the process to be repaired, the first row vector in the matrix of the process to be repaired is transferred to the execution process matrix, that is, when the remaining site area of ​​the current repair line satisfies the addition of the new parallel process, the new parallel process is added to the current repair line and executed simultaneously with other parallel processes.

[0052] S506, looping to obtain the first row vector with the smallest average time consumption from the execution process matrix as the step between the completion process row vector and the first row vector in the transfer process matrix to be repaired and the execution process matrix, until the execution process matrix is ​​empty, that is, all parallelizable processes have been executed.

[0053] As another optional implementation, after step S50, the method further includes: obtaining the first column of the matrix of the process to be repaired as the simulation process array and the minimum completion time corresponding to the simulation process array. Then, using the simulation process array, the minimum completion time and the initial measurement area to generate a measurement row vector. Finally, adding the measurement row vector to the preset site area measurement matrix.

[0054] S60, increasing the calculated site area by a preset area step, and repeatedly generating a matrix of processes to be repaired until the minimum completion time is obtained, until the calculated site area exceeds the site area measurement range, and obtaining the calculated site area and minimum completion time corresponding to the matrix of processes to be repaired.

[0055] As an optional implementation, after step S60, it further includes: calculating the difference of the minimum completion time in the adjacent row vectors in the site area measurement matrix as the completion time change value. Then, it is determined whether the completion time change value is greater than the preset time change threshold. If so, the adjacent row vectors corresponding to the completion time change value are obtained, and the row vector with a large measured area in the adjacent row vectors is output as a recommended solution for repair line site area measurement, that is, when the total time consumed by the parallel process to complete the execution is greatly reduced as the measured area increases in a certain area increase process, the increased measured area can be used as a better repair line site area measurement result.

[0056] As an example, if a target repair line has 6 parallelizable processes, the average completion time and required site area of ​​each parallelizable process are shown in Table 1 below:

[0057]

[0058]

[0059] Table 1

[0060] At the same time, the growth step of the repair line site area is set to 0.2 square meters. It can be calculated that the range of the repair line site area that needs to be measured is 2.2 square meters to 9.0 square meters, and the measured site area is initialized to 2.2 square meters.

[0061] Furthermore, in the subsequent process of generating the matrix of processes to be repaired, when the execution order of the parallelizable processes is [65 4 3 2 1], the following information of processes to be repaired can be obtained as shown in Table 2:

[0062]

[0063] Table 2

[0064] Furthermore, after the parallelizable processes in the above examples are simulated and executed under various site areas, the repair line site area calculation results shown in Table 3 below can be obtained:

[0065]

[0066]

[0067] Table 3

[0068] From Table 3, we can see that when the site area is 3.0, 4.4, 6.0, and 8.2, the average completion time of the parallelizable processes can be significantly reduced, which is the best site area setting method to balance the site area and operation efficiency. Figure 5 , Figure 5 This is a comparison chart of the average completion time of the simulation results obtained by the simulation method and the average completion time of the site area measurement results. Figure 5 It can be seen that the results of the two are similar and meet the requirements of engineering applications.

[0069] The repair line site area calculation method provided in the embodiment of the present application obtains the parallelizable processes included in the target repair line, as well as the corresponding first average time consumption and minimum execution site area, and generates a corresponding full arrangement matrix; calculates the site area measurement range of the parallelizable processes; generates a matrix of processes to be repaired according to the full arrangement matrix, the first average time consumption and the minimum execution site area; generates an execution process matrix according to the measured site area, the minimum execution site area and the matrix of processes to be repaired; simulates the execution process of the parallelizable processes in the execution process matrix until all the parallelizable processes are simulated and executed to obtain the corresponding minimum completion time; increases the measured site area by a preset area step, and repeats the above steps until the measured site area exceeds the site area measurement range, and obtains the measured site area and minimum completion time corresponding to the matrix of processes to be repaired. This method not only accurately calculates the minimum completion time corresponding to different execution orders of parallelizable processes under different repair line site areas, but also further improves the working efficiency of the repair line.

[0070] Please continue reading Figure 3 , Figure 3 : is a schematic diagram of a repair line site area calculation device 200 provided in an embodiment of the present application, comprising:

[0071] The parallel process module 201 is used to obtain at least two parallel processes included in the target repair line, as well as the first average time consumption and the minimum execution site area of ​​the parallel processes, and generate a full arrangement matrix of the parallel processes;

[0072] An area range calculation module 202 is used to calculate the site area measurement range of the parallelizable processes and set the minimum value of the site area measurement range as the measurement site area;

[0073] A waiting-for-repair process matrix module 203 is used to generate a waiting-for-repair process matrix according to the full arrangement matrix, the first average time consumption and the minimum execution site area;

[0074] An execution process matrix module 204 is used to generate an execution process matrix according to the measured site area, the minimum execution site area and the to-be-repaired process matrix;

[0075] The process simulation execution module 205 is used to simulate the execution process of the parallelizable processes in the execution process matrix until all the parallelizable processes are simulated and executed, thereby obtaining the minimum completion time corresponding to the initial measured area;

[0076] The simulation execution loop module 206 is used to increase the measured site area by a preset area step, and repeatedly generate the steps between the matrix of the processes to be repaired and obtaining the minimum completion time, until the measured site area exceeds the site area measurement range, and obtain the measured site area and the minimum completion time corresponding to the matrix of the processes to be repaired.

[0077] Optionally, the area range calculation module 202 is specifically configured to calculate the minimum value of the site area measurement range by using a preset formula (1):

[0078] S1=max({s i |1≤i≤n}) (1)

[0079] Wherein, S1 represents the minimum value of the site area measurement range, n represents the number of the parallelizable processes, i represents the sequence number of the parallelizable processes, and s i represents the minimum execution site area of ​​the i-th parallelizable process; the maximum value of the site area measurement range is calculated by the preset formula (2):

[0080]

[0081] Wherein, S2 represents the maximum value of the site area measurement range.

[0082] Optionally, the process matrix module 203 to be repaired is specifically used to sequentially obtain each row of the full permutation matrix as a process array, wherein each row of the full permutation matrix is ​​an arrangement order in which the parallel processes are executed; set the process array as the first column of the process matrix to be repaired, wherein the first element of the process array is the first element of the first row of the process matrix to be repaired; set the minimum execution site area of ​​each of the parallel processes to the second column of the process matrix to be repaired; set the first average time consumption of each of the parallel processes to the third column of the process matrix to be repaired.

[0083] Optionally, the execution process matrix module 204 is specifically used to select a row vector from the process matrix to be repaired in sequence according to the measured site area, add the row vector to the execution process matrix, and remove the row vector from the process matrix to be repaired accordingly, wherein the first column of the execution process matrix is ​​the serial number of the parallelizable process, the second column is the minimum execution site area, and the third column is the first average time consumption; the remaining site area is obtained by subtracting the sum of the minimum execution site area in the current execution process matrix from the measured site area; if the remaining site area is greater than or equal to the minimum execution site area in the first row of the process matrix to be repaired, the first row vector in the process matrix to be repaired is transferred to the end vector of the execution process matrix; repeat the steps from subtracting the sum of the minimum execution site area in the current execution process matrix from the measured site area to transferring the first row vector in the process matrix to the end vector of the execution process matrix, until the remaining site area is less than the minimum execution site area in the first row of the process matrix to be repaired.

[0084] Optionally, the process simulation execution module 205 is specifically used to initialize the minimum completion time to 0, obtain the first row vector with the minimum average time consumption from the execution process matrix as the completion process row vector; subtract the first average time consumption in the completion process row vector from all the first average times in the execution process matrix, and add the first average time consumption to the minimum completion time; add the minimum execution site area in the completion process row vector to the remaining site area, and remove the corresponding completion process row vector in the execution process matrix; determine whether the updated remaining site area is less than the minimum execution site area of ​​the first row vector in the process matrix to be repaired; if not, transfer the first row vector in the process matrix to be repaired to the execution process matrix; loop the steps from obtaining the first row vector with the minimum average time consumption from the execution process matrix as the completion process row vector to transferring the first row vector in the process matrix to the execution process matrix, until the execution process matrix is ​​empty.

[0085] Optionally, the process simulation execution module 205 is also used to obtain the first column of the process matrix to be repaired as a simulated process array, and the minimum completion time corresponding to the simulated process array; use the simulated process array, the minimum completion time and the initial measured area to generate a measurement row vector; add the measurement row vector to a preset site area measurement matrix.

[0086] Optionally, the simulation execution loop module 206 is also used to calculate the difference in the minimum completion time in adjacent row vectors in the site area measurement matrix as a completion time change value; determine whether the completion time change value is greater than a preset time change threshold, and if so, obtain the adjacent row vector corresponding to the completion time change value, and output the row vector with the larger measured area in the adjacent row vectors as a recommended solution for repair line site area measurement.

[0087] It should be noted that the above-mentioned repair line site area calculation device can execute the repair line site area calculation method provided in the embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not fully described in the embodiment of the repair line site area calculation device, please refer to the repair line site area calculation method provided in the embodiment of the present application.

[0088] Figure 4 is a hardware structure diagram of an electronic device 300 for calculating the repair line area provided in an embodiment of the present application, such as Figure 4 As shown, the electronic device 300 includes:

[0089] One or more processors 310 and memory 320, Figure 4 A processor 310 is taken as an example.

[0090] The processor 310 and the memory 320 may be connected via a bus or other means. Figure 4 The example of connecting through bus is taken in the following.

[0091] The memory 320, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the repair line site area calculation method in the embodiment of the present application. The processor 310 executes various functional applications and data processing of the above-mentioned computer device by running the non-volatile software programs, instructions and modules stored in the memory 320, that is, implements the repair line site area calculation method in the above-mentioned method embodiment.

[0092] The memory 320 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created according to the use of the repair line site area measurement device, etc. In addition, the memory 320 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 320 may optionally include a memory remotely arranged relative to the processor 310, and these remote memories may be connected to the repair line site area measurement device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0093] The one or more modules are stored in the memory 320, and when executed by the one or more processors 310, perform the repair line site area measurement method in any of the above method embodiments, for example, perform the above described Figure 1 Steps S10 to S60 of the method are implemented Figure 3 The functions of modules 201-206 in FIG.

[0094] The above product can execute the repair line site area calculation method provided in the embodiment of the present application, and has the corresponding functional modules and beneficial effects of executing the repair line site area calculation method. For technical details not fully described in this embodiment, please refer to the repair line site area calculation method provided in the embodiment of the present application.

[0095] The embodiment of the present application provides a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors, such as Figure 4 A processor 310 in the embodiment may enable the one or more processors to execute the repair line site area calculation method in any of the above method embodiments, for example, to execute the above described Figure 1 Steps S10 to S60 of the method are implemented Figure 3 The functions of modules 201-206 in FIG.

[0096] The present application provides a computer program product, wherein the computer program product includes a computer program stored on a non-volatile computer-readable storage medium, wherein the computer program includes program instructions, and when the program instructions are executed by the electronic device, the electronic device is enabled to execute the repair line site area calculation method in any of the above method embodiments, for example, to execute the above described Figure 1 Steps S10 to S60 of the method are implemented Figure 3 The functions of modules 201-206 in FIG.

[0097] The device embodiments described above are merely illustrative, wherein 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 modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0098] Through the description of the above implementation methods, ordinary technicians in this field can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Ordinary technicians in this field can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0099] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Under the concept of the present application, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes in different aspects of the present application as described above, which are not provided in detail for the sake of simplicity. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for calculating the area of ​​a repair line, characterized in that: include: Acquire at least two parallelizable processes included in the target repair line, as well as the first average time consumption and the minimum execution site area of ​​the parallelizable processes, and generate a full arrangement matrix of the parallelizable processes; Calculating the site area measurement range of the parallelizable processes, and setting the minimum value of the site area measurement range as the measurement site area; Generate a matrix of processes to be repaired according to the full arrangement matrix, the first average time consumption and the minimum execution site area; Generate an execution process matrix according to the measured site area, the minimum execution site area and the to-be-repaired process matrix; Simulating the execution process of the parallelizable processes in the execution process matrix until all the parallelizable processes are simulated and executed completely, and obtaining the minimum completion time corresponding to the initial measured area; The calculated site area is increased by a preset area step, and the steps of generating the matrix of the processes to be repaired and obtaining the minimum completion time are repeated until the calculated site area exceeds the site area measurement range, and the calculated site area and the minimum completion time corresponding to the matrix of the processes to be repaired are obtained; The step of calculating the site area measurement range of the parallelizable processes comprises: calculating the minimum value of the site area measurement range by using a preset formula (1): (1); wherein S 1 represents the minimum value of the site area measurement range, n represents the number of the parallelizable processes, i represents the sequence number of the parallelizable processes, and si represents the minimum execution site area of ​​the i-th parallelizable process; the maximum value of the site area measurement range is calculated by the preset formula (2): (2); wherein S 2 represents the maximum value of the site area measurement range; The step of generating a matrix of processes to be repaired according to the full permutation matrix, the first average time consumption and the minimum execution site area comprises: sequentially obtaining each row of the full permutation matrix as a process array, wherein each row of the full permutation matrix is ​​an arrangement order in which the parallelizable processes are executed; setting the process array as the first column of the matrix of processes to be repaired, wherein the first element of the process array is the first element of the first row of the matrix of processes to be repaired; setting the minimum execution site area of ​​each of the parallelizable processes as the second column of the matrix of processes to be repaired; and setting the first average time consumption of each of the parallelizable processes as the third column of the matrix of processes to be repaired; The step of generating an execution process matrix according to the measured site area, the minimum execution site area and the process matrix to be repaired includes: selecting a row vector from the process matrix to be repaired in order according to the measured site area, adding the row vector to the execution process matrix, and removing the row vector from the process matrix to be repaired, wherein the first column of the execution process matrix is ​​the serial number of the parallelizable process, the second column is the minimum execution site area, and the third column is the first average time consumption; using the measured site area to subtract the sum of the minimum execution site area in the current execution process matrix to obtain the remaining site area; if the remaining site area is greater than or equal to the minimum execution site area in the first row of the process matrix to be repaired, transferring the first row vector in the process matrix to be repaired to the end vector of the execution process matrix; repeating the steps from using the measured site area to subtracting the sum of the minimum execution site area in the current execution process matrix to transferring the first row vector in the process matrix to the end vector of the execution process matrix, until the remaining site area is less than the minimum execution site area in the first row of the process matrix to be repaired; Among them, the step of simulating the execution process of the parallelizable processes in the execution process matrix until all the parallelizable processes are simulated and executed to obtain the minimum completion time corresponding to the initial measured area includes: initializing the minimum completion time to 0, obtaining the first row vector with the minimum average time consumption from the execution process matrix as the completion process row vector; subtracting the first average time consumption in the completion process row vector from all the first average times in the execution process matrix, and adding the first average time consumption to the minimum completion time; adding the minimum execution site area in the completion process row vector to the remaining site area, and removing the corresponding completion process row vector in the execution process matrix; judging whether the updated remaining site area is less than the minimum execution site area of ​​the first row vector in the to-be-repaired process matrix; if not, transferring the first row vector in the to-be-repaired process matrix to the execution process matrix; looping the steps of obtaining the first row vector with the minimum average time consumption from the execution process matrix as the completion process row vector to transferring the first row vector in the to-be-repaired process matrix to the execution process matrix until the execution process matrix is ​​empty; Among them, the simulation of the execution process of the parallelizable processes in the execution process matrix, until the parallelizable processes are all simulated and executed, and the step of obtaining the minimum completion time corresponding to the initial measured area, also includes: obtaining the first column of the matrix of processes to be repaired as a simulation process array, and the minimum completion time corresponding to the simulation process array; using the simulation process array, the minimum completion time and the initial measured area to generate a measurement row vector; adding the measurement row vector to the preset site area measurement matrix.

2. The method for calculating the repair line area according to claim 1, characterized in that: After the step of obtaining the calculated site area and the minimum completion time corresponding to the matrix of the process to be repaired, the method further includes: Calculate the difference between the minimum completion times in adjacent row vectors in the site area measurement matrix as a completion time change value; Determine whether the completion time change value is greater than a preset time change threshold. If so, obtain the adjacent row vectors corresponding to the completion time change value, and output the row vector with the larger measured area in the adjacent row vectors as a recommended solution for repair line site area measurement.

3. A device for calculating the area of ​​a repair line, characterized in that: include: A parallel process module is used to obtain at least two parallel processes included in the target repair line, as well as the first average time consumption and the minimum execution site area of ​​the parallel processes, and generate a full arrangement matrix of the parallel processes; An area range calculation module, used to calculate the site area measurement range of the parallelizable processes, and set the minimum value of the site area measurement range as the measurement site area; A matrix module for processes to be repaired, used for generating a matrix of processes to be repaired according to the full arrangement matrix, the first average time consumption and the minimum execution site area; An execution process matrix module, used for generating an execution process matrix according to the measured site area, the minimum execution site area and the to-be-repaired process matrix; A process simulation execution module is used to simulate the execution process of the parallel processes in the execution process matrix until the parallel processes are all simulated and executed, and the minimum completion time corresponding to the initial measured area is obtained; A simulation execution loop module is used to increase the measured site area by a preset area step, and repeatedly generate the steps between the matrix of the process to be repaired and obtaining the minimum completion time, until the measured site area exceeds the site area measurement range, and obtain the measured site area and the minimum completion time corresponding to the matrix of the process to be repaired; The area range calculation module is specifically used to calculate the minimum value of the site area measurement range through the preset formula (1): (1); wherein S 1 represents the minimum value of the site area measurement range, n represents the number of the parallelizable processes, i represents the sequence number of the parallelizable processes, and si represents the minimum execution site area of ​​the i-th parallelizable process; the maximum value of the site area measurement range is calculated by the preset formula (2): (2); wherein S 2 represents the maximum value of the site area measurement range; The process matrix module to be repaired is specifically used to sequentially obtain each row of the full permutation matrix as a process array, wherein each row of the full permutation matrix is ​​an arrangement order in which the parallelizable processes are executed; set the process array as the first column of the process matrix to be repaired, wherein the first element of the process array is the first element of the first row of the process matrix to be repaired; set the minimum execution site area of ​​each of the parallelizable processes as the second column of the process matrix to be repaired; set the first average time consumption of each of the parallelizable processes as the third column of the process matrix to be repaired; The execution process matrix module is specifically used to select a row vector from the process matrix to be repaired in sequence according to the measured site area, and add the row vector to the execution process matrix, and remove the row vector from the process matrix to be repaired accordingly, wherein the first column of the execution process matrix is ​​the serial number of the parallelizable process, the second column is the minimum execution site area, and the third column is the first average time consumption; the remaining site area is obtained by subtracting the sum of the minimum execution site area in the current execution process matrix from the measured site area; if the remaining site area is greater than or equal to the minimum execution site area in the first row of the process matrix to be repaired, the first row vector in the process matrix to be repaired is transferred to the end vector of the execution process matrix; the steps from subtracting the sum of the minimum execution site area in the current execution process matrix from the measured site area to transferring the first row vector in the process matrix to the end vector of the execution process matrix are repeated until the remaining site area is less than the minimum execution site area in the first row of the process matrix to be repaired; The process simulation execution module is specifically used to initialize the minimum completion time to 0, obtain the first row vector with the minimum average time consumption from the execution process matrix as the completion process row vector; subtract the first average time consumption in the completion process row vector from all the first average times in the execution process matrix, and add the first average time consumption to the minimum completion time; add the minimum execution site area in the completion process row vector to the remaining site area, and remove the corresponding completion process row vector in the execution process matrix; determine whether the updated remaining site area is less than the minimum execution site area of ​​the first row vector in the to-be-repaired process matrix; if not, transfer the first row vector in the to-be-repaired process matrix to the execution process matrix; loop the steps from obtaining the first row vector with the minimum average time consumption from the execution process matrix as the completion process row vector to transferring the first row vector in the to-be-repaired process matrix to the execution process matrix until the execution process matrix is ​​empty; The process simulation execution module is also used to obtain the first column of the process matrix to be repaired as a simulated process array, and the minimum completion time corresponding to the simulated process array; use the simulated process array, the minimum completion time and the initial measured area to generate a measured row vector; add the measured row vector to a preset site area measurement matrix.

4. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the repair line site area calculation method described in any one of claims 1-2.

5. A non-volatile computer-readable storage medium, characterized in that: The non-volatile computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by an electronic device, the electronic device executes the repair line site area calculation method according to any one of claims 1 to 2.