Intelligent factory-oriented task collaborative planning method and system
By introducing food production demand prediction models and production cost calculation methods into smart factories, combined with digital twin technology to optimize resource allocation, the deficiencies in food production material distribution planning in smart factories are solved, and cost control and efficiency improvements in food factories are achieved.
Patent Information
- Application Number
- CN202410687555.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-17
AI Technical Summary
In the task collaborative planning of existing smart factories, the allocation and planning of food production materials are not effectively considered, making it difficult to accurately control production costs and affecting the production planning of food factories.
A task collaborative planning method for smart factories is proposed, including a food production demand prediction model, a production cost calculation method and a production planning model. Through historical data analysis and digital twin technology, it predicts production demand, calculates production costs, and optimizes resource allocation to Reduce costs and increase profits.
It achieves accurate prediction of food production demand and scientific calculation of production costs, optimizes the production strategy of food factories, reduces production costs, and improves production efficiency and resource utilization.
Smart Images

Figure CN118657320A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart factories, and in particular to a task collaborative planning method and system for smart factories. Background Art
[0002] A smart factory refers to a manufacturing factory that uses advanced digital, automated and intelligent technologies to achieve unmanned production in order to improve production efficiency, optimize production processes, reduce costs, and improve product quality and flexibility.
[0003] The construction of smart factories includes many aspects, such as automated production equipment and technology, the application of Internet of Things technology and task collaborative planning. Among them, in terms of task collaborative planning, it involves effectively organizing and scheduling various tasks to ensure the smooth progress of the production process. Nowadays, the smart factory model has been promoted in various types of physical factories, such as automobile manufacturing factories, electronic product manufacturing factories and food production factories.
[0004] There are many aspects that need to be paid attention to in the design process of smart factories for food production, such as food safety and quality control, supply chain supply, and task collaborative planning in the production process. Among them, task collaborative planning is a very complex task in the construction of smart factories. Task collaborative planning of smart factories is to ensure the efficient operation of each production process and maximize the use of resources. This involves planning and coordination at all levels, including: production planning, resource scheduling, and equipment utilization.
[0005] Production planning is the core task in the task collaborative planning of smart factories for food production, which involves determining production demand, scheduling production schedules, and determining production sequences. Through data analysis, market forecasting, and production capacity assessment, a reasonable production plan is formulated to ensure the smooth execution of production tasks.
[0006] In the prior art, the production plan for task collaborative planning of intelligent food production factories mainly focuses on the scheduling of production equipment and staff; however, the allocation and planning of production materials are not taken into consideration, making it impossible to accurately control production costs, which is not conducive to the production planning of food factories.
[0007] In order to solve the problems mentioned in the prior art, the present invention proposes a task collaborative planning method and system for smart factories. Summary of the invention
[0008] The present invention proposes a task collaborative planning method and system for smart factories for food production strategy planning of food factories; the method and system are mainly based on the following aspects; firstly, the present invention proposes a food production demand prediction model to predict the production demand of food, so as to control the production cost; the model is trained by using time-specific data, and the sales situation of food is analyzed from historical data, which can directly reflect the demand for food, thereby controlling the production of food, which is conducive to the formulation of food production plans, thereby reducing the cost consumption of food factories; secondly, the present invention proposes a production cost calculation method, which accurately calculates the production cost of each type of food in the actual production process by combining the predicted food production demand; the production cost calculation method can accurately grasp the production cost consumption of food, and provide scientific data support for subsequent production planning; finally, the present invention proposes a production planning model, which plans food production according to the production resources, profit errors and production costs of the current food factory, so as to achieve the lowest production cost and maximize the profit.
[0009] To achieve the above object, the present invention proposes the following technical solutions:
[0010] A task collaborative planning method for smart factories, comprising:
[0011] Acquire relevant historical data of food in time series; wherein the relevant historical data includes: relevant historical sales data and relevant historical production data;
[0012] Furthermore, the relevant historical data are preprocessed and a historical food production demand data set is constructed; wherein the preprocessing includes: performing data cleaning on the relevant historical data to obtain first relevant historical data; converting the first relevant historical data into a unified data format to obtain second relevant historical data; performing normalization on the second relevant historical data to obtain third relevant historical data; performing feature selection on the third relevant historical data to obtain standard relevant historical data; and establishing the historical food production demand data set based on the standard relevant historical data.
[0013] Further, the training set is input into the food production demand forecasting model for training until the food production demand forecasting model converges to obtain an initial food production demand forecasting model;
[0014] Wherein, the model function of the food production demand prediction model is expressed as:
[0015]
[0016] Among them, y tis the food demand forecast result at time t; α0 is the initial parameter of the model function; q is the number of input features; α j represents the weight parameter of input feature j; g() represents the model function; β 0j represents the initial adjustment parameter of input feature j; P represents the number of nodes in the food production demand forecasting model; β ij Represented as the learning parameter of input feature j at node i; y t-1 Represented as the food demand forecast result at time t-1; ε t It is expressed as the model correction parameter at time t;
[0017] Further, the test set is input into the initial food production demand forecasting model for testing to obtain an optimal food production demand forecasting model;
[0018] Further, the optimal food production demand forecasting model is used to forecast the current food production demand to obtain the current food production plan;
[0019] Furthermore, a food production digital model is established; wherein the process of establishing the food production digital model includes:
[0020] Collect relevant historical production data related to food production; wherein the relevant historical production data includes: historical raw material properties, historical production process parameters and historical equipment operation status;
[0021] Further, the preprocessing operation is performed on the relevant historical production data to obtain standard relevant historical production data;
[0022] Furthermore, digital twin software is used to virtually model the food factory production process to obtain an initial food production digital model;
[0023] Furthermore, the standard-related historical production data is input into the initial food production digital model, so that the initial food production digital model realizes simulated production, and obtains simulated production results; wherein the simulated production results include: food type and food output;
[0024] Further, calculating the error between the actual historical production result and the simulated production result to obtain the production error;
[0025] Furthermore, the parameters of the initial food production digital model are adjusted according to the production error to obtain the food production digital model.
[0026] Further, according to the current food production plan, the food production digital model is used to perform food simulation production;
[0027] Furthermore, the production cost of the simulated food production is calculated; wherein the calculation formula of the production cost is:
[0028]
[0029] Wherein, PC represents the calculated value of the production cost; Bas represents the public production cost of food; M represents the total number of food types; f() represents the calculation function of the production cost of different types of food; FPC i Expressed as the production cycle of food i; FPN i Expressed as the production quantity of food i; UFPC i represents the unit production cost of food i; UFEC i Expressed as the unit production energy consumption of food i.
[0030] Furthermore, the food simulation production is optimized to obtain an optimal production optimization strategy; wherein the production optimization is used for food production resource planning, and the specific optimization steps include:
[0031] Step 1: estimating the revenue of the current food production plan based on historical market data to obtain estimated revenue;
[0032] Step 2: Calculate the error between the production cost and the estimated revenue to obtain a revenue error;
[0033] Step 3: Obtain the current production resource data of the food factory; wherein the current production resource data includes: human resource data and raw material inventory resource data;
[0034] Step 4: Initialize the food production strategy based on the current food production plan and the current resource data production resource data; wherein the initialized food production strategy is expressed as: Wherein, IFPS represents the set of the initialized food production strategies; denoted as the human resource data component of the jth food production strategy for producing food i; The raw material inventory resource data component representing the j-th food production strategy for producing food i;
[0035] A food production planning model is used; wherein the function expression of the food production planning model is:
[0036]
[0037] Among them, Max(RE) represents the maximum revenue error; Min(PC) represents the minimum production cost; w i Represented as the unit production weight of food i; θ iExpressed as the unit market weight of food i; IFPS j Denote as the jth food production strategy;
[0038] Step 5: Optimizing the initialized food production strategy according to the output result of the food production planning model;
[0039] Step 6: Repeat step 1 to step 5 until the global maximum profit error and the global minimum production cost are calculated, and the optimal production optimization strategy is obtained.
[0040] A task collaborative planning system for smart factories, the system comprising: a data collection unit, a data processing unit, a food demand prediction unit, a food production model generation unit, a production cost calculation unit, a production optimization unit and a display unit;
[0041] Wherein, the data collection unit is used to collect various food-related data;
[0042] The data processing unit is used to process the data acquired by the data collection unit;
[0043] The food demand forecasting unit is used to forecast food production demand; wherein the food forecasting unit comprises:
[0044] Furthermore, a historical food production demand dataset is constructed;
[0045] Further, the historical food production demand dataset is divided into a training set and a test set in a ratio of 7:3;
[0046] Further, the training set is input into the food production demand forecasting model for training until the food production demand forecasting model converges to obtain an initial food production demand forecasting model;
[0047] Wherein, the model function of the food production demand prediction model is expressed as:
[0048]
[0049] Among them, y t is the food demand forecast result at time t; α0 is the initial parameter of the model function; q is the number of input features; α j represents the weight parameter of input feature j; g() represents the model function; β 0j represents the initial adjustment parameter of input feature j; P represents the number of nodes in the food production demand forecasting model; β ij Represented as the learning parameter of input feature j at node i; y t-1 Represented as the food demand forecast result at time t-1; εt It is expressed as the model correction parameter at time t;
[0050] Further, the test set is input into the initial food production demand forecasting model for testing to obtain an optimal food production demand forecasting model;
[0051] Furthermore, the optimal food production demand forecasting model is used to forecast the current food production demand to obtain the current food production plan.
[0052] The food production model generation unit is used to establish a food production digital model; wherein the food production model generation unit comprises:
[0053] Collect relevant historical production data related to food production; wherein the relevant historical production data includes: historical raw material properties, historical production process parameters and historical equipment operation status;
[0054] Furthermore, the relevant historical production data is processed by the data processing unit to obtain standard relevant historical production data;
[0055] Furthermore, digital twin software is used to virtually model the food factory production process to obtain an initial food production digital model;
[0056] Furthermore, the standard-related historical production data is input into the initial food production digital model, so that the initial food production digital model realizes simulated production, and obtains simulated production results; wherein the simulated production results include: food type and food output;
[0057] Further, calculating the error between the actual historical production result and the simulated production result to obtain the production error;
[0058] Furthermore, the parameters of the initial food production digital model are adjusted according to the production error to obtain the food production digital model.
[0059] The production cost calculation unit is used to calculate the production cost according to the food production demand; wherein the production cost calculation unit adopts the production cost calculation formula; wherein the production cost calculation formula is expressed as:
[0060]
[0061] Among them, PC represents the calculated value of production cost; Bas represents the public production cost of food; M represents the total number of food types; f() represents the calculation function of production cost of different types of food; FPC i Expressed as the production cycle of food i; FPN i Expressed as the production quantity of food i; UFPCi represents the unit production cost of food i; UFEC i Expressed as the unit production energy consumption of food i.
[0062] The production optimization unit is used to plan production resources and optimize food production; wherein the optimization process of the production optimization unit includes the following steps:
[0063] Step 1: Estimate the revenue of the current food production plan based on historical market data to obtain the estimated revenue;
[0064] Step 2: Calculate the error between the production cost and the estimated revenue to obtain a revenue error;
[0065] Step 3: Obtain the current production resource data of the food factory; wherein the current production resource data includes: human resource data and raw material inventory resource data;
[0066] Step 4: Initialize the food production strategy based on the current food production plan and the current resource data production resource data; wherein the initialized food production strategy is expressed as: Wherein, IFPS represents the set of the initialized food production strategies; denoted as the human resource data component of the jth food production strategy for producing food i; The raw material inventory resource data component representing the j-th food production strategy for producing food i;
[0067] A food production planning model is used; wherein the function expression of the food production planning model is:
[0068]
[0069] Among them, Max(RE) represents the maximum revenue error; Min(PC) represents the minimum production cost; w i Represented as the unit production weight of food i; θ i Expressed as the unit market weight of food i; IFPS j Denote as the jth food production strategy;
[0070] Step 5: Optimizing the initialized food production strategy according to the output result of the food production planning model;
[0071] Step 6: Repeat steps 1 to 5 until the global maximum profit error and the global minimum production cost are calculated, and the optimal production optimization strategy is obtained.
[0072] The display unit is used to display the production process of the food production digital model.
[0073] Compared with the prior art, the present invention has the following beneficial effects:
[0074] 1. The present invention proposes a food production demand prediction model to predict the production demand of food, so as to control the production cost; the model is trained by using data with time characteristics, and analyzes the sales situation of food from historical data, which can directly reflect the demand for food, thereby controlling the production of food, facilitating the formulation of food production plans, thereby reducing the cost consumption of food factories, and facilitating the production planning of food factories.
[0075] 2. The present invention proposes a production cost calculation method, which accurately calculates the production cost of each type of food in the actual production process by combining the predicted food production demand; the production cost calculation method can accurately grasp the production cost consumption of food, provide scientific data support for subsequent production planning, and is conducive to the production planning of food factories.
[0076] 3. The present invention proposes a food production strategy planning method, which estimates the profit error between the profit and the production cost and performs production planning in combination with the current production materials of the food production factory; in order to optimize the food production strategy, a food production planning model is used in the optimization process to maximize the profit error and minimize the production cost; the output results of the food production planning model are used to optimize the strategy and reallocate the production materials; the food production strategy planning method can plan the optimal production strategy, reduce the production cost of the food process, and is beneficial to the production planning of the food factory. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] Figure 1 A scene diagram of a food production plant provided by an embodiment of the present invention;
[0078] Figure 2 A flowchart of a task collaborative planning method for a smart factory provided by an embodiment of the present invention;
[0079] Figure 3 A structural diagram of a task collaborative planning system for a smart factory provided by an embodiment of the present invention;
[0080] Figure 4 A flow chart of food production strategy optimization provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0081] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0082] Smart factories are factories that use advanced computing and Internet technologies to make physical factories intelligent and systematized to improve production efficiency, flexibility and automation. Today, the smart factory model has been implemented in various types of physical factories, such as automobile manufacturing factories, electronic product manufacturing factories and food production factories. Figure 1 In the smart food production factory shown, intelligent production equipment, automated production lines, intelligent production scheduling systems and quality inspection equipment are used to ensure that products meet standards and regulatory requirements.
[0083] There are many aspects that need to be paid attention to in the design process of smart factories for food production, such as food safety and quality control, supply chain supply, and task collaborative planning in the production process. Among them, task collaborative planning is a very complex task in the construction of smart factories. Task collaborative planning of smart factories is to ensure the efficient operation of each production process and maximize the use of resources. This involves planning and coordination at all levels, including: production planning, resource scheduling, and equipment utilization.
[0084] In the task collaborative planning of smart factories for food production, production planning is the core task, which involves determining production demand, scheduling production schedules, and determining production sequences. Through data analysis, market forecasting, and production capacity evaluation, a reasonable production plan is formulated to ensure the smooth execution of production tasks. To this end, the present invention proposes a task collaborative planning method and system for smart factories for optimizing production plans in food production factories. Figure 2 and Figure 3 The two embodiments are described in detail.
[0085] Embodiment 1
[0086] In the embodiment of the present application, a task collaborative planning method and system for smart factories are used for production planning. The method and system combine the specific method implementation process with the system, which is implemented by each unit of the system; wherein the specific implementation process of the method is as follows Figure 2As shown, it includes: S10. Obtain relevant historical data of food in time series; S20. Process relevant historical data to construct historical food production demand data set; S30. Train food production demand prediction model; S40. Predict current food production demand; S50. Establish food production digital model; S60. According to the current food production plan, use food production digital model to simulate food production; S70. Calculate the production cost of food simulation production; S80. Optimize the food simulation production to obtain the optimal production optimization strategy. Figure 3 As shown, the system includes: a data collection unit, a data processing unit, a food demand prediction unit, a food production model generation unit, a production cost calculation unit, a production optimization unit and a display unit.
[0087] Furthermore, the specific implementation process of the embodiment of the present application is as follows:
[0088] The data collection unit of the system collects data, corresponding to Figure 2 Step S10; wherein the relevant historical data includes: relevant historical sales data and relevant historical production data;
[0089] In the embodiment of the present application, the relevant historical data of food is collected in time sequence; the food production data of food production plant A and the food sales data on the market are collected in one year in months; the food production data includes: food type and food production quantity, etc.; the food sales data mainly refers to: seasonal changes, market trends, promotional activities, sales prices and sales quantities, etc.;
[0090] Furthermore, the data processing unit of the system performs preprocessing on the acquired relevant historical data, corresponding to the above-mentioned step S20;
[0091] The preprocessing process mainly includes: cleaning the relevant historical data to obtain first relevant historical data;
[0092] Further, converting the first relevant historical data into a unified data format to obtain second relevant historical data;
[0093] Further, normalizing the second relevant historical data to obtain third relevant historical data;
[0094] Further, feature selection is performed on the third relevant historical data to obtain standard relevant historical data;
[0095] Furthermore, the historical food production demand data set is established based on the standard-related historical data.
[0096] In the embodiment of the present application, a series of data processing methods are used to pre-process the relevant historical data collected by the food production plant A; wherein, the pre-processing mainly includes: data cleaning, data format conversion, data normalization and feature selection; data cleaning can eliminate errors, missing values and outliers in the data, ensure data quality, so as to ensure that the model is trained based on accurate and complete data, thereby improving the prediction accuracy; converting the data format can convert the original data into a form that is easier to understand and explain; for example, decomposing the time series data according to seasonality, trends, etc., can more clearly identify the demand patterns of different time periods and improve the interpretability of the features. Data normalization can scale all features to a similar range, eliminate the impact of magnitude, help the model converge faster and improve prediction accuracy; feature selection can reduce the complexity of the model and improve its efficiency. Using only the most relevant features can reduce the computational cost of the model and reduce the risk of overfitting, thereby improving the performance of the model.
[0097] Furthermore, the food demand prediction unit of the system predicts the future food production volume of the food production plant A, corresponding to the above step S30;
[0098] In step S30, the training process of the food production demand prediction model is specifically described, and the trained food production demand prediction model is used to realize the prediction function; wherein, the specific training process of the food production demand prediction model includes:
[0099] The historical food production demand dataset is divided into a training set and a test set in a ratio of 7:3;
[0100] Further, the training set is input into the food production demand forecasting model for training until the food production demand forecasting model converges to obtain an initial food production demand forecasting model;
[0101] Wherein, the model function of the food production demand prediction model is expressed as:
[0102]
[0103] Among them, y t is the food demand forecast result at time t; α0 is the initial parameter of the model function; q is the number of input features; α j represents the weight parameter of input feature j; g() represents the model function; β 0j represents the initial adjustment parameter of input feature j; P represents the number of nodes in the food production demand forecasting model; β ij Represented as the learning parameter of input feature j at node i; y t-1 Represented as the food demand forecast result at time t-1; εt It is expressed as the model correction parameter at time t;
[0104] Further, the test set is input into the initial food production demand forecasting model for testing to obtain an optimal food production demand forecasting model;
[0105] In the embodiment of the present application, a food production demand prediction model is proposed to predict the future food production demand of food factory A. The model is trained using data with time characteristics and analyzes the sales of food from historical data. It can directly reflect the demand for food, thereby controlling food production, facilitating the formulation of food production plans, thereby reducing the cost consumption of food factories and facilitating production planning of food factories.
[0106] Furthermore, in step S40, the optimal food production demand prediction model is used to predict the current food production demand of the food production plant A to obtain the current food production plan.
[0107] Further, a food production digital model is established; the food production digital model is modeled by the food production model generation unit of the system, corresponding to step S50; wherein the food production model generation unit is a task collaborative planning system for smart factories, and performs digital modeling by setting an API interface and digital twin software; the specific modeling process includes:
[0108] Collect relevant historical production data related to food production; wherein the relevant historical production data includes: historical raw material properties, historical production process parameters and historical equipment operation status;
[0109] Further, the preprocessing operation is performed on the relevant historical production data to obtain standard relevant historical production data;
[0110] Furthermore, digital twin software is used to virtually model the food factory production process to obtain an initial food production digital model;
[0111] Furthermore, the standard-related historical production data is input into the initial food production digital model, so that the initial food production digital model realizes simulated production, and obtains simulated production results; wherein the simulated production results include: food type and food output;
[0112] Further, calculating the error between the actual historical production result and the simulated production result to obtain the production error;
[0113] Furthermore, the parameters of the initial food production digital model are adjusted according to the production error to obtain the food production digital model.
[0114] In the embodiment of the present application, the production process of food production plant A is modeled; establishing a digital twin model of food production can bring many benefits, including optimizing production processes, predictive maintenance, quality control, cost savings, product design and innovation, and supply chain management, which helps to enhance the competitiveness and sustainable development capabilities of food production companies.
[0115] Furthermore, the current production plan predicted by the above step S60 is input into the food production digital model to simulate production, and data in the simulated production process is obtained.
[0116] Furthermore, the production cost is calculated based on the data obtained in the simulated production process; the production cost calculation function is implemented by the production cost calculation unit of the system, corresponding to the above step S70; the specific production cost calculation process includes:
[0117] Furthermore, the production cost of the simulated food production is calculated; wherein the calculation formula of the production cost is:
[0118]
[0119] Wherein, PC represents the calculated value of the production cost; Bas represents the public production cost of food; M represents the total number of food types; f() represents the calculation function of the production cost of different types of food; FPC i Expressed as the production cycle of food i; FPN i Expressed as the production quantity of food i; UFPC i represents the unit production cost of food i; UFEC i Expressed as the unit production energy consumption of food i.
[0120] In the embodiment of the present application, the cost of production simulated by the food production digital model is calculated by a production cost calculation method; the method accurately calculates the production cost of each type of food in the actual production process by combining the predicted food production demand; the production cost calculation method can accurately grasp the production cost consumption of food and provide scientific data support for subsequent production planning.
[0121] Further, the production process of the food production digital model is optimized, and the optimization is mainly to minimize the production cost and maximize the profit of the food production plant A by optimizing the production strategy; the optimization function is implemented by the production optimization unit of the system, corresponding to the above-mentioned step S80; refer to Figure 4 , the specific optimization process includes:
[0122] Step 1: Estimate the revenue of the current food production plan based on historical market data to obtain the estimated revenue;
[0123] Step 2: Calculate the error between the production cost and the estimated revenue to obtain a revenue error;
[0124] Step 3: Obtain the current production resource data of the food factory; wherein the current production resource data includes: human resource data and raw material inventory resource data;
[0125] Step 4: Initialize the food production strategy based on the current food production plan and the current resource data production resource data; wherein the initialized food production strategy is expressed as: Wherein, IFPS represents the set of the initialized food production strategies; denoted as the human resource data component of the jth food production strategy for producing food i; The raw material inventory resource data component representing the j-th food production strategy for producing food i;
[0126] A food production planning model is used; wherein the function expression of the food production planning model is:
[0127]
[0128] Among them, Max(RE) represents the maximum revenue error; Min(PC) represents the minimum production cost; w i Represented as the unit production weight of food i; θ i Expressed as the unit market weight of food i; IFPS j Denote as the jth food production strategy;
[0129] Step 5: Optimizing the initialized food production strategy according to the output result of the food production planning model;
[0130] The initialization of the food production strategy for strategy optimization described in the embodiment of the present application mainly reallocates production resources to form a new food production strategy; its strategy optimization uses a genetic algorithm to reallocate various resources.
[0131] Step 6: Repeat steps 1 to 5 until the global maximum profit error and the global minimum production cost are calculated, and the optimal production optimization strategy is obtained.
[0132] In the embodiment of the present application, a production strategy optimization method is used for the production optimization of the food production digital model; the method estimates the profit error between the profit and the production cost, and performs production planning in combination with the current production materials of the food production factory A; in order to optimize the food production strategy, a food production planning model is used in the optimization process to maximize the profit error and minimize the production cost; the output results of the food production planning model are used to optimize the strategy and reallocate the production materials; the food production strategy planning method can plan the optimal production strategy, reduce the production cost of the food process, and is beneficial to the production planning of the food factory.
[0133] Furthermore, the food production process of the food production digital model is displayed by the display unit of the system.
[0134] In the embodiment of the present application, a task collaborative planning method and system for a smart factory are adopted to realize food production planning for a food production plant A; the method can dynamically adjust food production through the established digital model of food production; specifically, the following aspects are included: first, the present invention proposes a food production demand prediction model to predict the production demand of food, so as to control the production cost; the model is trained by using data with time characteristics, and the sales situation of food is analyzed from historical data, which can directly reflect the demand for food, thereby controlling the production of food, which is conducive to the formulation of food production plans, thereby reducing the cost consumption of food factories; secondly, the present invention proposes a production cost calculation method, which accurately calculates the production cost of each type of food in the actual production process by combining the predicted food production demand; the production cost calculation method can accurately grasp the production cost consumption of food, and provide scientific data support for subsequent production planning; finally, the present invention proposes a food production plan optimization strategy method, which estimates the profit of food and calculates the error between the production cost and the estimated profit; combines the current production materials of the food factory to plan the production strategy, and in order to maximize the production profit of the food production factory, the production strategy is reallocated to maximize the profit and minimize the production cost.
[0135] Embodiment 2
[0136] In Example 1, the method of the present invention is combined with the system to implement food production planning for food production plant A; in this embodiment, production planning is performed on food production plant B, and the specific detection process is the same as the detection process in Example 1, and the process includes:
[0137] Obtain relevant historical data of food produced by food production plant B in time series;
[0138] Further, the relevant historical data is preprocessed and a historical food production demand data set is constructed;
[0139] Further, the training set is input into the food production demand forecasting model for training until the food production demand forecasting model converges to obtain the optimal food production demand forecasting model;
[0140] Further, the food production demand of food production plant B is predicted using the optimal food production demand prediction model;
[0141] Further, a digital model of food production of food production plant B is established;
[0142] Further, according to the current food production plan, the food production digital model is used to perform food simulation production;
[0143] Furthermore, the production cost of the simulated food production is calculated; wherein the calculation formula of the production cost is:
[0144]
[0145] Wherein, PC represents the calculated value of the production cost; Bas represents the public production cost of food; M represents the total number of food types; f() represents the calculation function of the production cost of different types of food; FPC i Expressed as the production cycle of food i; FPN i Expressed as the production quantity of food i; UFPC i represents the unit production cost of food i; UFEC i Expressed as the unit production energy consumption of food i.
[0146] Furthermore, the food simulation production is optimized to obtain an optimal production optimization strategy; wherein the production optimization is used for food production resource planning, and the specific optimization steps include:
[0147] Step 1: estimating the revenue of the current food production plan based on historical market data to obtain estimated revenue;
[0148] Step 2: Calculate the error between the production cost and the estimated revenue to obtain a revenue error;
[0149] Step 3: Obtain the current production resource data of the food factory; wherein the current production resource data includes: human resource data and raw material inventory resource data;
[0150] Step 4: Initialize the food production strategy based on the current food production plan and the current resource data production resource data; wherein the initialized food production strategy is expressed as: Wherein, IFPS represents the set of the initialized food production strategies; denoted as the human resource data component of the jth food production strategy for producing food i; The raw material inventory resource data component representing the j-th food production strategy for producing food i;
[0151] A food production planning model is used; wherein the function expression of the food production planning model is:
[0152]
[0153] Among them, Max(RE) represents the maximum revenue error; Min(PC) represents the minimum production cost; w i Represented as the unit production weight of food i; θ i Expressed as the unit market weight of food i; IFPS j Denote as the jth food production strategy;
[0154] Step 5: Optimizing the initialized food production strategy according to the output result of the food production planning model;
[0155] Step 6: Repeat step 1 to step 5 until the global maximum profit error and the global minimum production cost are calculated, and the optimal production optimization strategy is obtained.
[0156] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A task collaborative planning method for smart factories, characterized in that: include: Acquire relevant historical data of food in time series; wherein the relevant historical data includes: relevant historical sales data and relevant historical production data; Preprocessing the relevant historical data and constructing a historical food production demand data set; The historical food production demand dataset is divided into a training set and a test set in a ratio of 7:3; Inputting the training set into the food production demand forecasting model for training until the food production demand forecasting model converges to obtain an initial food production demand forecasting model; Inputting the test set into the initial food production demand forecasting model for testing to obtain an optimal food production demand forecasting model; Using the optimal food production demand forecasting model to forecast the current food production demand, and obtaining the current food production plan; Building digital models of food production; According to the current food production plan, using the food production digital model to perform food simulation production; Calculate the production cost of the simulated food production; wherein the calculation formula of the production cost is: Wherein, PC represents the calculated value of the production cost; Bas represents the public production cost of food; M represents the total number of food types; f() represents the calculation function of the production cost of different types of food; FPC i Expressed as the production cycle of food i; FPN i Expressed as the production quantity of food i; UFPC i represents the unit production cost of food i; UFEC i It is expressed as the unit production energy consumption of food i; The simulated production of the food is optimized to obtain the best production optimization strategy.
2. The task collaborative planning method for smart factories according to claim 1 is characterized in that: The preprocessing includes: performing data cleaning on the relevant historical data to obtain first relevant historical data; converting the first relevant historical data into a unified data format to obtain second relevant historical data; performing normalization operation on the second relevant historical data to obtain third relevant historical data; performing feature selection on the third relevant historical data to obtain standard relevant historical data; and establishing the historical food production demand data set based on the standard relevant historical data.
3. The task collaborative planning method for smart factories according to claim 1 is characterized in that: The model function of the food production demand forecasting model is expressed as: Among them, y t is the food demand forecast result at time t; α0 is the initial parameter of the model function; q is the number of input features; α j represents the weight parameter of input feature j; g() represents the model function; β 0j represents the initial adjustment parameter of input feature j; P represents the number of nodes in the food production demand forecasting model; β ij Represented as the learning parameter of input feature j at node i; y t-1 Represented as the food demand forecast result at time t-1; ε t Represented as the model correction parameter at time t.
4. The task collaborative planning method for smart factories according to claim 1 is characterized in that: The process of establishing the food production digital model includes: Collect relevant historical production data related to food production; wherein the relevant historical production data includes: historical raw material properties, historical production process parameters and historical equipment operation status; Performing the preprocessing operation on the relevant historical production data to obtain standard relevant historical production data; Use digital twin software to virtually model the food factory production process and obtain an initial food production digital model; Inputting the standard-related historical production data into the initial food production digital model, so that the initial food production digital model realizes simulated production, and obtains simulated production results; wherein the simulated production results include: food type and food output; Calculating the error between the actual historical production result and the simulated production result to obtain the production error; The parameters of the initial food production digital model are adjusted according to the production error to obtain the food production digital model.
5. The task collaborative planning method for smart factories according to claim 1 is characterized in that: The production optimization is used for food production resource planning, and the specific optimization steps include: Step 1: estimating the revenue of the current food production plan based on historical market data to obtain estimated revenue; Step 2: Calculate the error between the production cost and the estimated revenue to obtain a revenue error; Step 3: Obtain the current production resource data of the food factory; wherein the current production resource data includes: human resource data and raw material inventory resource data; Step 4: Initialize the food production strategy based on the current food production plan and the current resource data production resource data; wherein the initialized food production strategy is expressed as: Wherein, IFPS represents the set of the initialized food production strategies; denoted as the human resource data component of the jth food production strategy for producing food i; The raw material inventory resource data component representing the j-th food production strategy for producing food i; A food production planning model is used; wherein the function expression of the food production planning model is: Among them, Max(RE) represents the maximum revenue error; Min(PC) represents the minimum production cost; w i Represented as the unit production weight of food i; θ i Expressed as the unit market weight of food i; IFPS j Denote as the jth food production strategy; Step 5: Optimizing the initialized food production strategy according to the output result of the food production planning model; Step 6: Repeat step 1 to step 5 until the global maximum profit error and the global minimum production cost are calculated, and the optimal production optimization strategy is obtained.
6. A task collaborative planning system for smart factories, characterized in that: The system comprises: a data collection unit, a data processing unit, a food demand prediction unit, a food production model generation unit, a production cost calculation unit, a production optimization unit and a display unit; Among them, the data collection unit is used to collect various types of food-related data; the data processing unit is used to process the data obtained by the data collection unit; the food demand prediction unit is used to predict food production demand; the food production model generation unit is used to establish a digital model of food production; the production cost calculation unit is used to calculate the production cost according to food production demand; the production optimization unit is used to plan production resources and optimize food production; the display unit is used to display the production process.
7. The task collaborative planning system for smart factories according to claim 6 is characterized in that: The food prediction unit comprises: Construct a historical food production demand dataset; The historical food production demand dataset is divided into a training set and a test set in a ratio of 7:3; Inputting the training set into the food production demand forecasting model for training until the food production demand forecasting model converges to obtain an initial food production demand forecasting model; Wherein, the model function of the food production demand prediction model is expressed as: Among them, y t is the food demand forecast result at time t; α0 is the initial parameter of the model function; q is the number of input features; α j represents the weight parameter of input feature j; g() represents the model function; β 0j represents the initial adjustment parameter of input feature j; P represents the number of nodes in the food production demand forecasting model; β ij Represented as the learning parameter of input feature j at node i; y t-1 Represented as the food demand forecast result at time t-1; ε t It is expressed as the model correction parameter at time t; Inputting the test set into the initial food production demand forecasting model for testing to obtain an optimal food production demand forecasting model; The optimal food production demand forecasting model is used to forecast the current food production demand to obtain the current food production plan.
8. The task collaborative planning system for smart factories according to claim 6 is characterized in that: The food production model generating unit comprises: Collect relevant historical production data related to food production; wherein the relevant historical production data includes: historical raw material properties, historical production process parameters and historical equipment operation status; The relevant historical production data is processed by the data processing unit to obtain standard relevant historical production data; Use digital twin software to virtually model the food factory production process and obtain an initial food production digital model; Inputting the standard-related historical production data into the initial food production digital model, so that the initial food production digital model realizes simulated production, and obtains simulated production results; wherein the simulated production results include: food type and food output; Calculating the error between the actual historical production result and the simulated production result to obtain the production error; The parameters of the initial food production digital model are adjusted according to the production error to obtain the food production digital model.
9. The task collaborative planning system for smart factories according to claim 6, characterized in that: The production cost calculation unit adopts a production cost calculation formula; wherein the production cost calculation formula is expressed as: Among them, PC represents the calculated value of production cost; Bas represents the public production cost of food; M represents the total number of food types; f() represents the calculation function of production cost of different types of food; FPC i Expressed as the production cycle of food i; FPN i Expressed as the production quantity of food i; UFPC i represents the unit production cost of food i; UFEC i Expressed as the unit production energy consumption of food i.
10. The task collaborative planning system for smart factories according to claim 6, characterized in that: The optimization process of the production optimization unit includes the following steps: Step 1: Estimate the revenue of the current food production plan based on historical market data to obtain the estimated revenue; Step 2: Calculate the error between the production cost and the estimated revenue to obtain a revenue error; Step 3: Obtain the current production resource data of the food factory; wherein the current production resource data includes: human resource data and raw material inventory resource data; Step 4: Initialize the food production strategy based on the current food production plan and the current resource data production resource data; wherein the initialized food production strategy is expressed as: Wherein, IFPS represents the set of the initialized food production strategies; denoted as the human resource data component of the jth food production strategy for producing food i; The raw material inventory resource data component representing the j-th food production strategy for producing food i; A food production planning model is used; wherein the function expression of the food production planning model is: Among them, Max(RE) represents the maximum revenue error; Min(PC) represents the minimum production cost; w i Represented as the unit production weight of food i; θ i Expressed as the unit market weight of food i; IFPS j Denote as the jth food production strategy; Step 5: Optimizing the initialized food production strategy according to the output result of the food production planning model; Step 6: Repeat steps 1 to 5 until the global maximum profit error and the global minimum production cost are calculated, and the optimal production optimization strategy is obtained.
Citation Information
Cited By
Production control method based on food demand prediction
CN119740821A
