Production planning system based on nonlinear programming model, production planning method and computer-readable storage medium
Through the production planning system based on the nonlinear programming model, the problems of low input efficiency and difficulty in increasing production capacity in the existing technology are solved, automatic production scheduling and pressure balancing of equipment groups are realized, and production efficiency and production capacity are improved.
Patent Information
- Application Number
- CN202080000198.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-28
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-02-28
AI Technical Summary
The existing technology has a long time-consuming problem in terms of product input efficiency. Manual analysis of production data and making charts usually takes 12 hours, and it is difficult to effectively arrange production plans to increase production capacity.
A production commissioning planning system based on a nonlinear programming model is used to obtain production data through distributed storage devices and analysis equipment, build a nonlinear planning model, and solve the model to obtain multiple feasible solutions, which are used to indicate the commissioning planning and ensure equipment group pressure balance. Improve production efficiency.
Automated production scheduling has been achieved, significantly improving production efficiency, reducing equipment idle rates, increasing production capacity, and reducing manual analysis time.
Smart Images

Figure CN113661510B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of manufacturing, and in particular to a production planning system and method based on a nonlinear programming model, and a computer-readable medium. Background Art
[0002] Product input efficiency directly affects the factory's production capacity, so how to better arrange production and increase production capacity is of great significance to the factory. In the past, manual analysis required picking out production data and making charts, which was a very time-consuming process (usually about 12 hours). In conventional methods, factory personnel would arrange production plans based on experience, combined with equipment production capacity, product production process time (Cycle Time, CT) and tact time (Tact Time, TT).
[0003] Public Content
[0004] In a first aspect, the present disclosure provides a production planning system based on a nonlinear programming model, comprising: a distributed storage device and an analysis device, wherein: the distributed storage device is configured to store production data generated by factory equipment; the analysis device comprises one or more processors, and the one or more processors are configured to perform the following operations: obtain production record information within a first historical time period in the production data; construct a nonlinear programming model based on the production record information; solve the nonlinear programming model and obtain multiple first feasible solutions; wherein the nonlinear programming model includes constraints that meet process requirements and an objective function for indicating pressure balance of the same equipment group, and the first feasible solution is used to indicate a production plan, including the quantity of at least one product put into production at multiple time intervals within a first preset time.
[0005] In a second aspect, the present disclosure also provides a production planning method based on a nonlinear programming model, comprising: obtaining production record information within a first historical time period in the production data generated by factory equipment; constructing a nonlinear programming model based on the production record information; solving the nonlinear programming model and obtaining multiple first feasible solutions; wherein the nonlinear programming model includes constraints that meet process requirements and an objective function for indicating pressure balance of the same equipment group, and the first feasible solution is used to indicate a production plan, including the quantity of at least one product put into production at multiple time intervals within a first preset time period.
[0006] In a third aspect, the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the aforementioned production planning method based on the nonlinear programming model. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0008] Figure 1 It is a block diagram of a production planning system provided by an embodiment of the present disclosure;
[0009] Figure 2 It is a block diagram of the composition of an analysis device of a production planning system provided by an embodiment of the present disclosure;
[0010] Figure 3 It is a flow chart of the operation of an analysis device in a production planning system provided by an embodiment of the present disclosure;
[0011] Figure 4 It is an operation flow chart provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0012] In order to enable those skilled in the art to better understand the technical solution of the embodiment of the present disclosure, a production planning system based on a nonlinear programming model provided by the embodiment of the present disclosure is described in detail below with reference to the accompanying drawings.
[0013] The embodiments of the present disclosure will be described more fully below with reference to the accompanying drawings, but the embodiments shown may be embodied in different forms and should not be construed as being limited to the embodiments set forth in the present disclosure. On the contrary, the purpose of providing these embodiments is to make the present disclosure thorough and complete and to enable those skilled in the art to fully understand the scope of the present disclosure.
[0014] The embodiments of the present disclosure may be described with reference to plan views and / or cross-sectional views by way of ideal schematic diagrams of the present disclosure. Therefore, the exemplary illustrations may be modified according to manufacturing techniques and / or tolerances.
[0015] In the absence of conflict, the various embodiments of the present disclosure and the various features therein may be combined with each other.
[0016] The terms used in the present disclosure are only used to describe specific embodiments and are not intended to limit the present disclosure. The term "and / or" as used in the present disclosure includes any and all combinations of one or more related enumerated items. The singular forms "one" and "the" as used in the present disclosure are also intended to include plural forms, unless the context clearly indicates otherwise. The terms "including", "made of..." as used in the present disclosure specify the presence of the features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof.
[0017] Unless otherwise defined, all terms (including technical and scientific terms) used in this disclosure have the same meaning as commonly understood by those of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this disclosure, and will not be interpreted as having an idealized or overly formal meaning unless explicitly defined in this disclosure.
[0018] The embodiments of the present disclosure are not limited to the embodiments shown in the accompanying drawings, but include modifications of the configurations formed based on the manufacturing process. Therefore, the areas illustrated in the accompanying drawings have schematic properties, and the shapes of the areas shown in the drawings illustrate the specific shapes of the areas of the elements, but are not intended to be restrictive. The specific embodiments of the present disclosure are described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present disclosure and are not intended to limit the present disclosure.
[0019] Many products (such as display panels) are produced through production lines. Each production line includes multiple process sites, and each process site is used to perform certain processing (such as cleaning, deposition, exposure, etching, box alignment, detection, etc.) on products (including semi-finished products). At the same time, each process site usually has multiple process equipment for the same processing. Among them, the production process of each product needs to go through multiple process sites, and different products may go through different process sites during the production process; and products passing through the same process site may also be processed by different process equipment. In a production line, multiple types of products can be produced at the same time. Therefore, it is necessary to formulate a production schedule based on the production plan and the actual production capacity of the process site to ensure that the equipment capacity of each process site is maximized under the condition of completing the production plan on time. In actual production, for example, in the production line of liquid crystal panels, the processes involved can be as many as hundreds, and each process may involve dozens, hundreds, or even thousands of nodes (for example, equipment and / or personnel, etc.). Therefore, a production planning system or method is needed to complete the production schedule of a large production line.
[0020] Reference Figure 1 As shown, the present disclosure provides a production planning system based on a nonlinear programming model.
[0021] First, as Figures 1 to 3As shown, an embodiment of the present disclosure provides a production planning system based on a nonlinear programming model, including: a distributed storage device, an analysis device, wherein: the distributed storage device is configured to store production data generated by factory equipment; the analysis device includes one or more processors, and the one or more processors are configured to perform the following operations: obtain production record information within a first historical time period in the production data; construct a nonlinear programming model based on the production record information; solve the nonlinear programming model and obtain multiple first feasible solutions; wherein the nonlinear programming model includes constraints that meet process requirements and an objective function for indicating pressure balance of the same equipment group, and the first feasible solution is used to indicate a production plan, including the quantity of at least one product put into production at multiple time intervals within a first preset time period.
[0022] Specifically, the distributed storage device stores production data generated by factory equipment. Factory equipment refers to any equipment in each factory, which may include process equipment in each process site, and management equipment used to manage production lines. Production data refers to any information related to production, including which products are produced by each production line, the number of products in process at each process site at each time, the process time (CT) of each product at each process site, product information of each product, defect information, etc.
[0023] The data in the distributed storage device can be stored in Hive tool or Hbase database format. For example, according to Hive tool, the above raw data is first stored in the data lake; after that, the data can be cleaned, converted and other preprocessed in Hive tool according to the application theme and scenario of the data, and a data warehouse with different themes (such as production history theme, test data theme, equipment data theme) and data marts with different scenarios (such as equipment analysis scenario, parameter analysis scenario) can be obtained. The above data marts can be connected with display devices, analysis devices, etc. through different API interfaces to realize data interaction with these devices.
[0024] Since multiple factory equipments in multiple factories are involved, the amount of raw data is very large. For example, the raw data generated by all factory equipments may be hundreds of GB per day, and the data generated per hour may be tens of GB.
[0025] There are two main solutions for storing and computing massive structured data: the grid computing solution of RDBMS (Relational Database Management System) and the big data solution of Distributed File System (DFS).
[0026] Among them, the grid computing of RDBMS is to divide the problem that requires a very huge computing power into many small parts, and then distribute these parts to many computers for processing respectively, and finally integrate these calculation results. For example, as a specific example, Oracle RAC (Real Application Cluster) is the core technology of grid computing supported by Oracle database, in which all servers can directly access all data in the database. However, the application system of RDBMS grid computing cannot meet the user's requirements when the amount of data is large. For example, due to the limited expansion space of the hardware, when the data increases to a large enough order of magnitude, the efficiency of processing data will be very low due to the bottleneck of hard disk input / output.
[0027] Big data technology based on distributed file management allows the use of multiple cheap hardware devices to build large clusters to process massive data. For example, the Hive tool is a data warehouse tool based on Hadoop, which can be used for data extraction, transformation and loading (ETL). It can map structured data files into a database table and provide SQL-like query functions. The Hive tool defines a simple SQL-like query language, and also allows the use of custom MapReduce mappers and reducers to implement complex analysis work that the default tool cannot complete. The Hive tool does not have a special data storage format, nor does it create indexes for data. Users can freely organize the tables in it and process the data in the database. It can be seen that the parallel processing of distributed file management can meet the storage and processing requirements of massive data. Users can process simple data through SQL queries, and custom functions can be used for complex processing. Therefore, when analyzing the massive data of the factory, it is necessary to extract the data from the factory database into the distributed file system. On the one hand, it will not cause damage to the original data, and on the other hand, it will improve the efficiency of data analysis.
[0028] Reference Figure 2 The analysis device includes a processor (such as a CPU) with data processing capabilities, and may also have a memory (such as a hard disk) storing the required program. The processor and the memory are connected through I / O to achieve information exchange, so that the processor can perform the required operations according to the program stored in the memory. In the embodiment of the present disclosure, the analysis device can extract the production data stored in the distributed storage device and perform the operation of generating a production plan based on a nonlinear programming model.
[0029] In an embodiment of the present disclosure, a nonlinear programming model is constructed through an objective function and constraints to solve the production planning problem in the production process. For the nonlinear programming model, the constraints are determined based on the process requirements in the production process to ensure the product yield, and may include the production time of each product in the equipment, the frequency of switching products, whether maintenance is required, etc.; the constraints can be set based on the production record information in the first historical time period. The distributed storage device stores the production data generated by the factory equipment. The first historical time period refers to the historical time period close to the time when the method of the present disclosure is implemented. The first historical time period is within one day, or it can be one hour. The present disclosure does not limit this. For example, the constraints can be set based on the average process time and average cycle time of the products produced within one hour, so that the process time and average cycle time of the future planned production are less than or equal to the average process time and average cycle time of the products produced within the previous hour. The nonlinear programming model in the embodiment of the present disclosure also includes an objective function for indicating the pressure balance of the same equipment group. Here, "the same equipment group" refers to multiple process equipment for the same processing at the same process site, and "the pressure of the same equipment group" can be understood as the busyness of the equipment group, for example, how many equipment are in working state and how many equipment are in idle state. Different products have different process paths and processing times, but they may all require the same process step. Therefore, multiple equipment in the same process site may process different products respectively. In order to improve production efficiency, it should be ensured that the equipment of the same equipment group is kept in working state as much as possible and the processing time of each equipment is as balanced as possible. In the embodiment of the present disclosure, by constructing constraints that meet the process requirements, production stability and product yield are guaranteed, and an objective function for indicating the pressure balance of the same equipment group is constructed to improve production efficiency. By solving the nonlinear programming model of the constraints and the objective function, a more reasonable production plan can be obtained to guide production.
[0030] The first feasible solution is the planned production quantity within the guidance stage, including the quantity of at least one product put into production at multiple time intervals within the first preset time period. The first preset time period refers to the time period of future planned production. The quantity of each product put into production can be in units of product number or product batch, that is, a batch of products includes multiple products. For example, the first feasible solution can be a batch of multiple products put into production every hour within the next 24 hours.
[0031] The production planning system of the disclosed embodiment is used for automated production scheduling, which greatly improves efficiency, reduces equipment idleness, and increases production capacity.
[0032] Optionally, the production record information in the first historical time period in the production data may include one or more of process time (CT), cycle time (TT), utilization rate, main process path, and planned maintenance (PM). Among them, CT (Cycle Time) refers to the time of a process in the product production process; TT (Tact Time) refers to the time required for a product to complete all production and processing plans; utilization rate is the ratio of the actual production capacity of the equipment to the theoretical production capacity; the main process path is the main process path for product production, excluding detection and maintenance equipment. By acquiring data on process time and cycle time, the production plan can meet the requirements of equipment processing time and waiting time. Through the utilization rate data, the actual production capacity of the equipment in the planned production process can be accurately judged. Through the relevant data of the main process path and planned maintenance, the equipment required for the actual production of the relevant products and whether the relevant equipment needs maintenance can be understood. The production record information may also include the proportion of paths outside the main process path and the time for machine switching products.
[0033] Through the production record information in the first historical time period including the above real-time production parameters, more accurate constraints can be obtained for the nonlinear programming model, so that future production planning can be based on the existing stable production data, ensuring production stability and product yield.
[0034] The constraint conditions constructed based on the production record information may include: obtaining the constraint conditions by performing data cleaning and vectorization on the production record information.
[0035] Specifically, data cleaning can be achieved by interpolating missing values in production record information; deleting duplicate values in production record information; and deleting erroneous values in production record information. Missing values, duplicate values, erroneous values, etc. usually need to be processed in combination with business significance. Specifically, for missing values (such as data loss caused by equipment problems), interpolation methods are usually used to complete them. For example, the missing process time (CT) can be interpolated by the mean value, which is consistent with business significance. For duplicate values in the data cleaning process, determine whether to delete or retain the data after confirming the business significance. For erroneous values (noise data, erroneous data) that appear in the cleaning process, specific statistical rules or business rules are used to remove these erroneous data and noise data. By processing the outliers in the production record information, more accurate constraints can be obtained, so that the feasible solution obtained from the nonlinear model is also more accurate.
[0036] Further, to obtain constraint conditions, it is usually necessary to vectorize the variables after data cleaning (such as production data generated by factory equipment) to form constraint conditions. For constraint conditions that are difficult to vectorize, these constraints are expressed using programs. The vectorization method can be as follows:
[0037] (1) Binarization
[0038] The process of binarization is to convert numerical attributes into boolean attributes, and a threshold is set as the dividing point for dividing the attribute values into 0 and 1.
[0039] (2) One-Hot Encoding
[0040] One-Hot Encoding uses an N-bit status register to encode N possible values. Each status is represented by an independent register, and only one bit is valid at any given time. This is a common vectorization method for converting character features into numerical values. For example, for the processing of the main process path, there are five stations S1 - S5, and it has passed through S1, S2, S3, S5. Using one-hot encoding, it can be represented as 11101.
[0041] For discrete features, the number of dimensions used to represent the feature is equal to the number of possible values. For example, for the equipment status, its value is 0 (the equipment is not in the PM period, i.e., the equipment is available at this moment) or 1 (the equipment is in the PM period, i.e., the equipment is not available at this moment). The equipment status is one-hot encoded. That is, equipment available: 01, equipment unavailable: 10. For clean equipment:
[0042] PM_clean_y PM_clean_n Available 0 1 Unavailable 1 0
[0043] The constraint condition is expressed as: at time t + N, num clean <= num(PM_clean_n == 1)
[0044] This constraint condition means that at time t + N, the number of clean equipment used satisfies the constraint condition: not greater than the number of currently available equipment (not in the equipment maintenance state).
[0045] For constraint data that cannot be converted into numerical values, it can be expressed using programs, that is, rule constraint conditions are established, such as expressing the sequence of time, the sequence of input, etc. For example, time can be constrained. If t1 cannot be earlier than t2, it is expressed as: t1 < t2, which is used as one of the constraint conditions in the linear programming model.
[0046] For the objective function of nonlinear programming, the objective function for indicating pressure balance of the same equipment group satisfies the following condition: the standard deviation of the pressure values of all production equipment in the same equipment group within the second preset time period is less than a predetermined value.
[0047] The nonlinear programming model is a method for solving optimization problems with one or more nonlinear functions in the objective function or constraints. In this embodiment, the objective function is used to reflect the balance of the pressure of the equipment group, and the value range of the pressure of the equipment group in the programmatic expression is between 0 and 1.0. Its expression can be, for example:
[0048] 1-num_idle_eqp / num_all_eqp, where
[0049] num_idle_eqp: number of idle devices;
[0050] num_all_eqp: The number of devices in this device group.
[0051] Constraints can be, for example, production data such as process time (CT), cycle time (TT), utilization rate, main process path, planned maintenance (PM), the proportion of paths other than the main process path, and the time it takes for machines to switch products. These production data are vectorized to form constraints for nonlinear programming. For example:
[0052] Constraint 1: The takt time (TT) constraint of the cleaning equipment can be expressed as
[0053] stTactTimeeqp_clean_1<20min.
[0054] Constraint 2: The path proportion constraint other than the main process path (repair and inspection) can be expressed as num(Pathtest_and_repair) / num(Pathtotal)<0.1.
[0055] Constraint 3: The machine switching product time constraint can be expressed as
[0056] 5min <timeproduct1-timeproduct2<10min
[0057] The feasible solutions obtained by nonlinear programming are calculated. The result is theoretically an infinite solution set, and in practice there are also many solutions. Therefore, it is necessary to screen the solution set from the perspective of practicality. First, ensure that the solution is as uniform as possible, because the input of the same type of products is as uniform as possible, and this method is a strategy that can shorten the feasible solution. Secondly, use uniformity as an evaluation indicator. The final solution of production planning is the pressure balance of the equipment group. Different equipment in the same equipment group (i.e., a group of equipment with similar functions) can replace each other to a certain extent in terms of function, so the pressure balance of the equipment group is emphasized here rather than the pressure balance of a single equipment. For example, the equipment group composed of cleaning equipment 1, cleaning equipment 2, and cleaning equipment 3 is expected to have a small standard deviation of the pressure of these three equipments, which means that only one equipment, such as cleaning equipment 1, can be kept working while other equipment, such as cleaning equipment 2 and cleaning equipment 3, are idle. Therefore, to measure whether the pressure of the equipment group is balanced, it is necessary to consider the standard deviation of the pressure of the equipment group under the time dimension. The objective function min: (std) should minimize the standard deviation of the pressure of the equipment group under the constraint of the upper limit of the pressure of the equipment group. That is:
[0058] Objective function: min:(std) minimizes the standard deviation (std) of the equipment group pressure;
[0059] st equipment group pressure upper limit.
[0060] Among them, the st equipment group pressure upper limit means under the constraint of the equipment group pressure upper limit.
[0061] Among the feasible solutions of the production planning, some feasible solutions make the standard deviation of the pressure of the equipment group smaller within the future time T (the second preset time), and these feasible solutions are better. The time T (the second preset time) can be the longest production cycle among the production cycles of several products in the production planning.
[0062] By considering the pressure balance problem of the equipment group, a relatively uniform feasible solution can be obtained, thereby ensuring that the production equipment in the equipment group operates in a balanced manner, improving production efficiency and extending the service life of the production equipment.
[0063] The step of solving the nonlinear programming model and obtaining multiple first feasible solutions may further include: iterating based on the gradient descent algorithm to obtain multiple first feasible solutions that satisfy the nonlinear programming model. The iterative rule of the gradient descent algorithm is: updating parameters in the direction of gradient descent (i.e., making the objective function decrease in this direction), continuously searching for feasible solutions that are better than the current solution; after a certain number of iterations, a series of feasible solutions are obtained.
[0064] Specifically, the first production plan can be initialized first. If the first production plan satisfies the constraints and the objective function is less than a predetermined value, the first production plan is the first feasible solution. Iteration is performed based on the gradient descent algorithm to obtain multiple first feasible solutions that satisfy the nonlinear programming model. In an embodiment of the present disclosure, the first production plan is a pre-set production plan, that is, it may be one of the first feasible solutions that conforms to the production plan. The first production plan may be an implemented historical production plan, or it may be a setting made by experienced staff according to actual production conditions. The present disclosure does not limit this. Based on the initialized first production plan and iteration of the gradient descent algorithm, multiple first feasible solutions that satisfy the nonlinear programming model can be obtained.
[0065] For example Figure 4 As shown, in some embodiments, iterating based on a gradient descent algorithm to obtain a plurality of first feasible solutions that satisfy the nonlinear programming model includes:
[0066] S1021: Initialize the first production plan (i.e., set the input of the production schedule). The first production plan includes at least the types and quantities of products put into production at each time node (usually every hour within 24 hours), namely, An, Bn, Cn...Zn, where A, B, C...Z represent different products, n represents different moments, and An=X can represent the types and quantities of products at a specific time node.
[0067] S1022: Filter the first production plan according to the constraint conditions. This is the first screening iteration based on the production constraint conditions. If the types and quantities of products An, Bn, Cn........Zn in the first production plan do not meet the constraint conditions, modify the types and quantities An, Bn, Cn........Zn of the input products at each time node. The modification can be performed manually based on prior knowledge.
[0068] S1023: Based on the first production plan that meets the constraint conditions, calculate the pressure value P of each production equipment in the plurality of equipment groups in each time interval in the first production plan. n,n+1 , where n represents a different moment, n+1 represents the next moment, P n,n+11 Indicates the pressure value in the time interval from time n to time n+1.
[0069] S1024: Calculate the pressure value P of all production equipment in the same equipment group among multiple equipment groups n,n+1 The standard deviation of δn,n+1, where m represents the number of devices, P represents the average pressure, and std is the standard deviation δn,n+1 (arithmetic square root of variance).
[0070]
[0071]
[0072] S1025: When the standard deviation δn,n+1 is less than a predetermined value, the type and quantity of the products put into operation between time nodes n and n+1 are taken as the first feasible solution. The predetermined value can be selected based on historical data of the production plan as long as the pressure balance of the equipment group can be ensured.
[0073] After obtaining the first feasible solution, update the parameters in the direction of gradient descent (i.e., make the objective function decrease in this direction), and continue to look for feasible solutions that are better than the current solution, so that a series of feasible solution sets can be obtained. For example, when the first production plan meets the above screening conditions and is one of the multiple first feasible solutions, update the parameters in the first production plan in the direction of gradient descent, and perform the above screening again. By iterating based on the gradient descent algorithm, it is possible to continuously look for solutions that are better than the current solution, thereby obtaining multiple first feasible solutions that meet the nonlinear programming model, and after a certain number of iterations, a series of feasible solutions are obtained.
[0074] In the embodiment of the present disclosure, the production planning guidance can be performed based on the obtained multiple first feasible solutions, but there may be a large number of first feasible solutions, and the first feasible solutions can be further screened. Therefore, after solving the nonlinear programming model and obtaining multiple first feasible solutions, the processor can also be configured to perform the following operations:
[0075] The production planning information within a second historical time period in the production data is obtained, and the first feasible solution is screened based on the production planning information to obtain a second feasible solution, and the second feasible solution is used to indicate the production planning.
[0076] The time period of the second historical time period is greater than the time period of the first historical time period. The second historical time period can be a time period within a week before the first historical time period, or a time period within a few weeks. The production planning information refers to the production data within the second historical time period, that is, the number of at least one product put into production at each time node (for example, every 1 hour) within the second historical time period. By mining the data in the historical production data that has high production efficiency and can ensure smooth production, these data are compared with the first feasible solution, thereby screening out a better and fewer second feasible solution. The second feasible solution is used to indicate the production plan.
[0077] The operation of screening the first feasible solution based on the production planning information in the second historical time period to obtain the second feasible solution may include at least one of the following:
[0078] (1) The total number of production starts of the same product in the second feasible solution within the first preset time period does not exceed the maximum number of production starts of the product in the first preset time period in the production planning information. For the second feasible solution, it represents the number of at least one product put into production in multiple time intervals within the first preset time period. For a certain product, the production plan of each time interval may include the product or may not include the product. The number of time intervals that include the product in the first preset time period is the number of production starts of the product in the first preset time period. For example, within 24 hours, 5 hours of the production plan include the production of product A, then the number of production starts of product A is 5. In the embodiment of the present disclosure, the second feasible solution is screened. Assuming that the maximum number of production starts of product A within 24 hours in the historical data is 10, then in the second feasible solution, the total number of production starts of product A within 24 hours cannot exceed 10.
[0079] In the embodiments of the present disclosure, the maximum number of production starts should be the data of reasonable production in the historical data. If in the historical data, the maximum number of production starts of product A is 15, which only occurs once, and the next highest number of production starts is 10, which occurs 9 times, then the number 15 that occurs once may be abnormal production data, and 10 should be calculated as the maximum number of production starts of product A.
[0080] (2) The time interval between adjacent batches of the same product in the second feasible solution does not exceed the minimum time interval between adjacent batches of the product described in the production planning information. When products are put into production equipment, they are put into production in batches. A batch can include 10 products or 20 products, which is not limited in this disclosure. The time interval between each batch can be obtained based on the second feasible solution. If the time interval between each batch is too small, it may cause product backlogs and exceed the equipment load. Therefore, it is necessary to ensure that the time interval between adjacent batches does not exceed the reasonable minimum time interval in the historical data.
[0081] For example, in the production planning information of historical data, the minimum time interval between the launch of adjacent batches of product B is 12 minutes. In the second feasible solution, the minimum time interval between the launch of each batch of product B cannot exceed 12 minutes.
[0082] In the embodiment of the present disclosure, the second feasible solution can also be screened based on business rules to further narrow the number of feasible solutions. That is, after obtaining the second feasible solution, it is determined whether the discrete degree of the production batches at each time interval in the second feasible solution within the first preset time period is within a predetermined range. If the discrete degree is within the predetermined range, the second feasible solution is used to guide the production planning. If the discrete degree is not within the predetermined range, the second feasible solution can be deleted.
[0083] For example, if the first preset time is 24 hours and the time interval is 1 hour, the discrete degree can be expressed as:
[0084]
[0085] loti: the number of lots invested in the i-th hour, The average number of lot inputs in 24h (in hours).
[0086] In addition, further screening can be performed based on other business rules, such as the start time of each batch is an hour within 24 hours, the time interval between the product launches of adjacent batches is a multiple of 3 minutes, etc. Business rules can effectively reduce the range of feasible solutions and ensure that the production plan is consistent with the historical production of the factory. It should be understood that business rules are not limited to the examples disclosed herein.
[0087] Optionally, the data in the distributed storage device is stored in a data warehouse, and one or more processors are configured to perform data calculations based on a Saprk computing engine.
[0088] The operation of the production planning system of the present application is described below with reference to a specific implementation method.
[0089] (1) Data source: MDW library (Management Data Warehouse), which is extracted to Hive using Sqoop.
[0090] (2) Use the Spark computing engine for calculations. The Industrial Internet has greatly improved the level of manufacturing and has also led to a large-scale and rapid growth of industrial data. It is no longer possible to process such large-scale industrial data by relying solely on a single computer. As a distributed computing framework, Spark can perform batch data processing with high performance by using an advanced DAG scheduler and physical execution engine. The memory-based computing engine stores intermediate calculation results in distributed memory (RAM), with fast computing speed and low latency. Therefore, in the search for the optimal solution of the nonlinear programming algorithm, using the Spark program for calculation and solution can complete daily production planning at the minute level, which is extremely efficient. The main object of the Spark computing engine is a distributed collection of items, called RDD (Resilient Distributed Dataset). RDD can be distributed to each node of the cluster for parallel operations. RDDs can be created from HDFS files; they can also be converted from other RDDs, for example: sc.parallelize(xrange(0,NUM_SAMPLES)).filter(func).count()
[0091] (3) Visualize the results. The visualization content may include at least the following two: the product input (planned input) calculated by the algorithm at each time point, and the product input (time input) in the actual production process of the factory based on the algorithm and the actual situation. The above results can be shown in the form of a horizontal and vertical coordinate system. The horizontal axis is the time point, and there is a comparison between the planned input and the actual input at each time point. The vertical axis is the number of batches (lots). For example: at 6 o'clock, it is planned to invest 4 lots of product A and 6 lots of product B, and the actual investment is 4 lots of product A and 6 lots of product B; at 7 o'clock, it is planned to invest 4 lots of product A, 2 lots of product B, and 2 lots of product C, and the actual investment is 4 lots of product A, 2 lots of product B, and 3 lots of product C.
[0092] For example, in one embodiment, the specific steps of operating the production planning system are:
[0093] 1. To use Spark to read data in Hive, you need to use the hive configuration files hive-site.xml, core-size.xml, and hdfs-site.xml. Spark operates on Hive data by reading these configuration files and initializing the context environment.
[0094] Val conf=new
[0095] SparkConf().setMaster("master").setAppName("SparkHive")
[0096] val sc=new SparkContext(conf)
[0097] val hc=new HiveContext(sc)
[0098] hc.sql("select * from mt1")
[0099] 2. Initialize the number of products put into use at each time node An, Bn, Cn, ..., Zn. A, B, C, ..., Z represent different products. N represents different moments.
[0100] 3. Filter according to the constraints. If the product type and quantity plan An, Bn, Cn........Zn. If the constraints are met, proceed to the next step of calculation, otherwise jump to step 6.
[0101] 4. Use Spark's flatmap operator to parallelly calculate the device pressure Pn of each device in different time periods to improve computing efficiency.
[0102] var Pn_s=datas.flatmap(ComputeStress(cycletime,An,Bn....,Zn))
[0103] 5. Calculate the standard deviation of pressure for all devices.
[0104] var Pst=ComputeST(Pn_s)
[0105] (((Ps_e1–Ps_mean)2+…+(Ps_en–Ps_mean)2) / n)1 / 2, where Ps_e1 represents the pressure of device e1 in device group s, and Ps_en represents the pressure of device en in device group s.
[0106] 6. Modify the number of input products An, Bn.....Zn of each node, and repeat steps 2-4. Calculate the equipment pressure under different conditions and compare them, and compare them with the pressure value calculated last time, until an optimal solution An, Bn, Cn...Zn is found. The optimal solution minimizes the standard deviation of equipment pressure Pst. The optimal solution corresponds to the optimal plan for the types and quantities of input products.
[0107] 7. Visualize the production plan corresponding to the optimal solution. Optionally, the display device is configured to display the number of product batches planned to be put into production at each time point in the production plan and the number of product batches put into production at each time point in the actual production of the factory. This helps to intuitively observe the real-time planned production and actual production, which is conducive to timely adjustment of production.
[0108] Through the production planning system based on the nonlinear programming model disclosed in the present invention, the massive production data generated by the factory equipment is stored through hive in the distributed storage device, the massive data is mined based on the analysis device, and the flatmap operator of spark is used for fast technology, so that automatic production scheduling can be completed in minutes, thereby achieving a significant increase in factory production capacity.
[0109] In a second aspect, the present disclosure also provides a production planning method based on a nonlinear programming model, comprising: obtaining production record information within a first historical time period in the production data generated by factory equipment; constructing a nonlinear programming model based on the production record information; solving the nonlinear programming model and obtaining multiple first feasible solutions; wherein the nonlinear programming model includes constraints that meet process requirements and an objective function for indicating pressure balance of the same equipment group, and the first feasible solution is used to indicate a production plan, including the quantity of at least one product put into production at multiple time intervals within a first preset time period.
[0110] The production planning method disclosed in the present invention can be used for automated production scheduling, which greatly improves efficiency, reduces equipment idleness, and increases production capacity.
[0111] Optionally, after the operation of solving the nonlinear programming model and obtaining multiple first feasible solutions, it also includes: obtaining production planning information within a second historical time period in the production data, screening the first feasible solution based on the production planning information, and obtaining a second feasible solution, wherein the second feasible solution is used to indicate the production plan.
[0112] Optionally, the objective function for indicating pressure balance in the same equipment group satisfies the following condition: a standard deviation of pressure values of all production equipment in the same equipment group within the second preset time period is less than a predetermined value.
[0113] Optionally, solving the nonlinear programming model and obtaining a plurality of first feasible solutions comprises: iterating based on a gradient descent algorithm to obtain a plurality of first feasible solutions that satisfy the nonlinear programming model.
[0114] Optionally, the screening the first feasible solution based on the production planning information to obtain a second feasible solution includes at least one of the following:
[0115] The total number of production starts of the same product in the second feasible solution within the first preset time period does not exceed the maximum number of production starts of the product in the first preset time period in the production planning information;
[0116] The time interval between adjacent batches of the same product in the second feasible solution does not exceed the minimum time interval between adjacent batches of the product in the production planning information.
[0117] In a third aspect, the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the aforementioned production planning method based on the nonlinear programming model.
[0118] Those skilled in the art will appreciate that all or some of the steps, systems, and functional modules / units in the apparatus disclosed above may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0119] In hardware implementations, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation.
[0120] Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit (CPU), a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-temporary medium) and a communication medium (or temporary medium). As known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH) or other disk storage; read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical disk storage; magnetic cassettes, magnetic tapes, disk storage or other magnetic storage; any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0121] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present disclosure, but the present disclosure is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and substance of the present disclosure, and these modifications and improvements are also considered to be within the scope of protection of the present disclosure.
Claims
1. A production planning system based on a nonlinear programming model, comprising: Distributed storage devices and analysis devices, including: The distributed storage device is configured to store production data generated by factory equipment; The analysis device includes one or more processors configured to perform the following operations: Acquire production record information within a first historical time period in the production data; Constructing a nonlinear programming model based on the production record information; Solving the nonlinear programming model and obtaining a plurality of first feasible solutions; The nonlinear programming model includes constraints that meet process requirements and an objective function for indicating pressure balance of the same equipment group, wherein the pressure of the same equipment group is the busyness of the equipment group, and The first feasible solution is used to indicate a production plan, including the quantity of at least one product put into production at multiple time intervals within a first preset time period; Wherein, solving the nonlinear programming model and obtaining a plurality of first feasible solutions comprises: iterating based on a gradient descent algorithm to obtain a plurality of first feasible solutions satisfying the nonlinear programming model, and Wherein, iterating based on the gradient descent algorithm to obtain multiple first feasible solutions that satisfy the nonlinear programming model includes: Initialize the first production plan, which at least includes the types and quantities of products put into production at each time node An, Bn, Cn........Zn, where A, B, C........Z represent different products, n represents different moments, and An=X represents the types and quantities of products at a specific time node; The first production plan is filtered according to the constraint conditions, and if the types and quantities of products An, Bn, Cn........Zn in the first production plan do not meet the constraint conditions, the types and quantities An, Bn, Cn........Zn of the products put into production at each time node are modified; Based on the first production plan that meets the constraint conditions, calculate the pressure value Pn,n+1 of each production equipment in the plurality of equipment groups in each time interval in the first production plan, wherein n and n+1 represent a moment and a next moment respectively, and Pn,n+1 represents the pressure value in the time interval from moment n to moment n+1; Calculate the standard deviation δn,n+1 of the pressure values Pn,n+1 of all production equipment in the same equipment group among multiple equipment groups: Where m represents the number of devices. represents the mean pressure, std represents the standard deviation δn,n+1; and When the standard deviation δn,n+1 is less than a predetermined value, the types and quantities of the products put in between time n and time n+1 are taken as the first feasible solution.
2. The production planning system according to claim 1, wherein: After the operation of solving the nonlinear programming model and obtaining a plurality of first feasible solutions, the method further includes: Obtaining production planning information within a second historical time period from the production data, The first feasible solution is screened based on the production planning information to obtain a second feasible solution, and The second feasible solution is used to indicate the production planning. The time period of the second historical time period is greater than the time period of the first historical time period, and the second historical time period is a time period within a week or a time period within a few weeks before the first historical time period.
3. The production planning system according to claim 1, wherein: The production record information includes one or more of process time, cycle time, utilization rate, main process path, and planned maintenance.
4. The production planning system according to claim 3, wherein: The constraint conditions constructed based on the production record information include: The constraint conditions are obtained by performing data cleaning and vectorization on the production record information.
5. The production planning system according to claim 4, wherein: The objective function for indicating pressure balance of the same equipment group satisfies the following conditions: The standard deviation of the pressure values of all production equipment in the same equipment group within the second preset time period is less than a predetermined value.
6. The production planning system according to claim 2, wherein: The step of screening the first feasible solution based on the production planning information to obtain a second feasible solution includes at least one of the following: The total number of production starts of the same product in the second feasible solution within the first preset time period does not exceed the maximum number of production starts of the product in the first preset time period in the production planning information; The time interval between adjacent batches of the same product in the second feasible solution does not exceed the minimum time interval between adjacent batches of the product in the production planning information.
7. The production planning system according to claim 6, wherein: After obtaining the second feasible solution, it also includes: Determine whether the discrete degree of the production quantity at each time interval in the second feasible solution within the first preset time period is within a predetermined range; If the degree of dispersion is within a predetermined range, the second feasible solution is used to guide production planning.
8. The production planning system according to claim 1, wherein the one or more processors are configured to perform data calculation based on a Saprk calculation engine.
9. A production planning method based on a nonlinear programming model, comprising: Obtaining production record information within a first historical time period from production data generated by factory equipment; Constructing a nonlinear programming model based on the production record information; Solving the nonlinear programming model and obtaining a plurality of first feasible solutions; The nonlinear programming model includes constraints that meet process requirements and an objective function for indicating pressure balance of the same equipment group, wherein the pressure of the same equipment group is the busyness of the equipment group, and The first feasible solution is used to indicate a production plan, including the quantity of at least one product put into production at multiple time intervals within a first preset time period; Wherein, solving the nonlinear programming model and obtaining a plurality of first feasible solutions comprises: iterating based on a gradient descent algorithm to obtain a plurality of first feasible solutions satisfying the nonlinear programming model, and Wherein, iterating based on the gradient descent algorithm to obtain multiple first feasible solutions that satisfy the nonlinear programming model includes: Initialize the first production plan, which at least includes the types and quantities of products put into production at each time node An, Bn, Cn........Zn, where A, B, C........Z represent different products, n represents different moments, and An=X represents the types and quantities of products at a specific time node; The first production plan is filtered according to the constraint conditions, and if the types and quantities of products An, Bn, Cn........Zn in the first production plan do not meet the constraint conditions, the types and quantities An, Bn, Cn........Zn of the products put into production at each time node are modified; Based on the first production plan that meets the constraint conditions, calculate the pressure value Pn,n+1 of each production equipment in the plurality of equipment groups in each time interval in the first production plan, wherein n and n+1 represent a moment and a next moment respectively, and Pn,n+1 represents the pressure value in the time interval from moment n to moment n+1; Calculate the standard deviation δn,n+1 of the pressure values Pn,n+1 of all production equipment in the same equipment group among multiple equipment groups: Where m represents the number of devices. represents the mean pressure, std represents the standard deviation δn,n+1; and When the standard deviation δn,n+1 is less than a predetermined value, the types and quantities of the products put in between time n and time n+1 are taken as the first feasible solution.
10. The production planning method according to claim 9, wherein: After the operation of solving the nonlinear programming model and obtaining a plurality of first feasible solutions, the method further includes: Obtaining production planning information within a second historical time period from the production data, The first feasible solution is screened based on the production planning information to obtain a second feasible solution, The second feasible solution is used to indicate the production planning. The time period of the second historical time period is greater than the time period of the first historical time period, and the second historical time period is a time period within a week or a time period within a few weeks before the first historical time period.
11. The production planning method according to claim 9, wherein: The objective function for indicating pressure balance of the same equipment group satisfies the following conditions: The standard deviation of the pressure values of all production equipment in the same equipment group within the second preset time period is less than a predetermined value.
12. The production planning method according to claim 10, wherein: The step of screening the first feasible solution based on the production planning information to obtain a second feasible solution includes at least one of the following: The total number of production starts of the same product in the second feasible solution within the first preset time period does not exceed the maximum number of production starts of the product in the first preset time period in the production planning information; The time interval between adjacent batches of the same product in the second feasible solution does not exceed the minimum time interval between adjacent batches of the product in the production planning information.
13. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method for production planning based on a nonlinear programming model according to any one of claims 9 to 12 is implemented.
