A purchase order intelligent generation decision system based on data analysis

Through data analysis and genetic algorithms, purchase volumes are predicted and allocated, which solves the problem of insufficient or oversupply of raw materials for manufacturers and improves the accuracy of purchase volume forecasts and supply cost-effectiveness.

CN118365248BActive Publication Date: 2024-10-25Y2T TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410784272.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-10-25
Estimated Expiration
2044-06-18

AI Technical Summary

Technical Problem

During the product production process, manufacturers often have inaccurate purchase volume forecasts due to insufficient or excess supply of raw materials, resulting in waste of raw materials or insufficient demand, and high procurement costs.

Method used

Adopt an intelligent purchase order generation decision-making system based on data analysis, process historical purchasing information and demand information, calculate the degree of correlation between the historical action time period and the current time period, predict the current purchasing volume, and allocate the purchasing volume to multiple suppliers to reduce costs.

Benefits of technology

It improves the accuracy of purchase quantity forecast and model convergence speed, balances supply quality and cost, and avoids supply plans that are too high-priced or too low-quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118365248B_ABST
    Figure CN118365248B_ABST
Patent Text Reader

Abstract

The present invention provides a purchase order intelligent generation decision system based on data analysis, comprising a data acquisition module, a weight allocation module, a current purchase quantity determination module, a supply quantity determination module and a purchase order generation module; the data acquisition module divides historical time into multiple historical action time periods and acquires historical data; the weight allocation module calculates the degree of association between the current action time period and the historical action time period, and assigns weights to multiple historical action time periods; the current purchase quantity determination module inputs the historical data and weights of multiple historical action time periods into a purchase quantity determination model, and the model outputs the current purchase quantity; the supply quantity determination module allocates the current purchase quantity to multiple suppliers for supply through a genetic algorithm, and obtains a target supply plan; the purchase order generation module generates a purchase order for the current action time period based on the target supply plan, so as to more accurately predict the current purchase quantity and avoid the situation where the purchase quantity does not match the demand quantity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of purchase order generation, and in particular to a purchase order intelligent generation decision system based on data analysis. Background Art

[0002] When manufacturers produce products, they often encounter a shortage of raw materials. The existing solution is to stockpile a large amount of raw materials in the warehouse to avoid insufficient supply of raw materials. For foods with a short shelf life, such as milk and pre-prepared dishes, stockpiling a large amount of raw materials will cause the raw materials in the warehouse to be processed untimely, resulting in expired waste. Therefore, for the processing of short-term food, it is necessary to process it in time after the supplier delivers the goods to avoid too much raw materials being stockpiled in the warehouse. However, due to the uncertainty of product sales, the amount of products produced often does not match the demand, which leads to inaccurate procurement forecasts, resulting in waste or insufficient demand.

[0003] In view of this, the present invention provides a purchase order intelligent generation decision system based on data analysis, which processes historical purchase information and demand information to more accurately predict the current purchase volume and avoid the mismatch between the purchase volume and the demand volume. In addition, the current purchase volume is distributed to multiple suppliers for supply, thereby reducing the purchase cost. Summary of the invention

[0004] The object of the present invention is to provide a purchase order intelligent generation decision system based on data analysis, comprising a data acquisition module, a weight allocation module, a current purchase quantity determination module, a supply quantity determination module and a purchase order generation module; the data acquisition module divides historical time into multiple historical action time periods, and respectively obtains historical data of the multiple historical action time periods; the historical data includes procurement information, inventory information, demand information and environmental information; the weight allocation module calculates the degree of association between the current action time period and the historical action time period, and assigns weights to the multiple historical action time periods based on the degree of association; the current purchase quantity determination module inputs the historical data and weights of the multiple historical action time periods into a purchase quantity determination model, and the purchase quantity determination model outputs the current purchase quantity of the current action time period; the supply quantity determination module allocates the current purchase quantity to multiple suppliers for supply through a genetic algorithm to obtain a target supply plan; the supply plan includes the multiple suppliers and the supply quantity corresponding to each supplier; the purchase order generation module generates a purchase order for the current action time period based on the target supply plan.

[0005] Further, the weight allocation module includes a vector extraction unit, a first similarity determination unit, a representation sequence construction unit, a first prediction unit, a second similarity determination unit, a second prediction unit, a third similarity determination unit, an association degree calculation unit and a weight allocation unit; the vector extraction unit extracts the current vector of the current action time period and the multiple historical vectors of the multiple historical action time periods; the first similarity determination unit determines the multiple first similarities between the current element in the current vector and the corresponding historical elements in the multiple historical vectors; the representation sequence construction unit establishes a first historical representation sequence and multiple second historical representation sequences based on the corresponding historical elements in the multiple historical vectors; the first prediction unit generates a first historical representation sequence and multiple second historical representation sequences based on the corresponding historical elements in the multiple historical vectors; the first prediction unit generates a second historical representation sequence based on the corresponding historical elements in the multiple historical vectors; the third similarity determination ... The first historical representation sequence is used to predict the current prediction element of the current action time period; the second similarity determination unit determines the second similarity between the current element and the current prediction element; the second prediction unit predicts multiple historical prediction elements of the multiple historical action time periods respectively based on the multiple second historical representation sequences; the third similarity determination unit determines the third similarity between the historical element and the corresponding historical prediction element; the association degree calculation unit calculates the association degree between the current action time period and the multiple historical action time periods respectively based on the first similarity, the second similarity and the third similarity; the weight allocation unit allocates weights to the multiple historical action time periods respectively based on the association degree.

[0006] Furthermore, the expression of the degree of association is:

[0007] ;

[0008] in, Represents the current vector; represents the history vector; Indicates the degree of correlation between the current action time period and the mth historical action time period; Represents the current element in the current vector; Represents the historical element corresponding to the current element in the mth history vector; represents the first similarity; represents the second similarity; Indicates the third similarity.

[0009] Furthermore, the weight allocation module includes a vector extraction unit, a neural network model, an attention model, a fully connected neural network and a weight allocation unit; the vector extraction unit extracts the current vector of the current action time period and the multiple historical vectors of the multiple historical action time periods; the neural network model receives the current vector and the multiple historical vectors, and outputs the current feature and the multiple historical features; the attention model receives the current feature and the multiple historical features, and outputs the current attention vector and its corresponding historical attention vector; the fully connected neural network is used to receive the current attention vector and its corresponding historical attention vector, and output the degree of association between the current action time period and the multiple historical action time periods respectively; the weight allocation unit allocates weights to the multiple historical action time periods based on the degree of association.

[0010] Furthermore, the attention model includes a cross-attention layer, an attention weight layer and an attention vector layer: the cross-attention layer calculates the cross-attention matrix of the current feature and the multiple historical features respectively to obtain the current feature attention matrix and the multiple historical feature attention matrices; the attention weight layer calculates the current attention weight and the multiple historical attention weights based on the current feature attention matrix and the multiple historical feature attention matrices respectively; the attention vector layer calculates the current attention vector and its corresponding historical attention vector based on the current attention weight and the multiple historical attention weights respectively.

[0011] Furthermore, the purchase quantity determination model includes a demand model and a purchase model: the demand model receives the historical data of the multiple historical action time periods and outputs the predicted demand; the purchase model receives the historical data of the multiple historical action time periods and the predicted demand, and outputs the current purchase quantity.

[0012] Furthermore, the demand model and the procurement model are obtained through joint training, including: constructing an initial demand model and an initial procurement model; both the initial demand model and the initial procurement model are LSTM models; constructing a first training sample and a first training label; the first training sample includes historical data of the multiple historical action time periods; the first training label includes standard demand, standard current procurement and the weights of the multiple historical action time periods; inputting the first training sample into the initial demand model, and the initial demand model outputs an initial predicted demand; inputting the first training sample and the initial predicted demand into the initial procurement model, and the initial procurement model outputs an initial current procurement; constructing a joint loss function based on the initial predicted demand, the initial current procurement, the standard demand, the standard current procurement and the weights; updating the model parameters of the initial demand model and the initial procurement model based on the joint loss function to obtain a new initial demand model and a new initial procurement model; repeating the update operation of the initial demand model and the initial procurement model until the first preset condition is met, and the initial demand model at this time is used as the demand model, and the initial procurement model at this time is used as the procurement model.

[0013] Furthermore, the expression of the joint loss function is:

[0014] ;

[0015] in, represents the joint loss function; represents the weight of the mth historical action time period; Indicates the standard current purchase quantity; represents the output of the initial procurement model; Indicates the standard demand; represents the output of the initial demand model; V represents the error value of the initial demand model, which is used to measure the accuracy of the initial demand model.

[0016] Furthermore, the current purchase volume is allocated to multiple suppliers for supply through a genetic algorithm to obtain a target supply plan, including: constructing multiple supply plans based on the current purchase volume and multiple suppliers and their supply volumes to obtain a supply plan set; using a roulette method to randomly select a supply plan from the supply plan set as a parent supply plan; performing crossover and / or mutation operations on the parent supply plan to obtain a child supply plan; calculating the fitness values ​​of the multiple supply plans in the supply plan set and the child supply plan respectively through a fitness function; screening the multiple supply plans in the supply plan set and the child supply plan based on the fitness value to obtain a new supply plan set; repeatedly generating a new supply plan set and calculating the fitness values ​​of the supply plans in the new supply plan set until a second preset condition is met, and taking the supply plan corresponding to the optimal fitness value as the target supply plan.

[0017] Furthermore, the fitness function is expressed as:

[0018] ;

[0019] Among them, d represents the supply plan; represents the fitness function; n represents the supplier variable; N represents the total number of suppliers; Indicates the supply price of raw materials from the nth supplier; represents the supply of the nth supplier; Represents the quality factor.

[0020] The technical solution of the embodiment of the present invention has at least the following advantages and beneficial effects:

[0021] The present invention predicts the current purchase volume based on the correlation between the historical action time period and the current action time period, which can improve the convergence speed of the purchase volume determination model and the accuracy of the prediction.

[0022] The present invention distributes the current purchase volume to multiple suppliers through a genetic algorithm, which can achieve a balance between supply quality and supply cost and avoid excessively high prices or low quality. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 An exemplary module diagram of a purchase order intelligent generation decision system based on data analysis provided for some embodiments of the present invention. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0025] Figure 1 An exemplary module diagram of a purchase order intelligent generation decision system based on data analysis provided for some embodiments of the present invention.

[0026] like Figure 1 As shown, the system 100 includes a data acquisition module 110 , a weight allocation module 120 , a current purchase quantity determination module 130 , a supply quantity determination module 140 and a purchase order generation module 150 .

[0027] The data acquisition module 110 divides the historical time into multiple historical action time periods, and respectively acquires the historical data of the multiple historical action time periods; the historical data includes procurement information, inventory information, demand information and environmental information.

[0028] Historical time refers to the time before the current time. Historical action time period refers to multiple time periods obtained by dividing historical time. Action time periods can be understood as production cycles. In each production cycle, different actions need to be performed to ensure that production tasks are executed in an orderly manner in the next action time period. Historical data can refer to data that affects procurement. Procurement of raw materials can ensure the orderly execution of production tasks. Procurement information refers to information related to procurement. For example, the purchased raw materials and their purchase quantities for each historical action time period. Inventory information refers to information related to inventory. For example, inventory information can include the inventory at the beginning of the current time period. Demand information is related to the customer's demand for products. For example, demand information can include the customer's order quantity at the start time point and the order quantity at the end time point of the historical action time period. Environmental information refers to information related to the environment that affects customer demand. For example, environmental information can include weather, season, temperature, etc.

[0029] The weight assignment module 120 calculates the correlation degree between the current action time period and the historical action time period, and assigns weights to the multiple historical action time periods based on the correlation degree.

[0030] The current action time period refers to a time period related to the production cycle. The degree of association refers to the degree of association between two time periods. In some embodiments, the weight allocation module includes a vector extraction unit, a first similarity determination unit, a representation sequence construction unit, a first prediction unit, a second similarity determination unit, a second prediction unit, a third similarity determination unit, a degree of association calculation unit, and a weight allocation unit. The vector extraction unit extracts the current vector of the current action time period. and multiple historical vectors of the multiple historical action time periods The current vector includes information related to the current action time period. For example, the current vector may include information related to the current time period, such as inventory information, demand information, and environmental information. Among them, the inventory information at the start time of the current action time period can be used as the inventory information of the current action time period; the demand information can be obtained by the order quantity at the start time of the current action time period; the environmental information can be obtained through weather forecasts, etc. The historical vector includes information related to historical data. The current vector The form can be , different current elements in the current vector can be used to represent different types of information. For example, Indicates information related to inventory, Indicates weather-related information, Indicates information related to temperature, etc. Among them, represents information variables, Represents the total number of information types. There are multiple history vectors, which can be recorded as , where m represents the historical action time period variable, and M represents the total number of historical action time periods. The form can be , where d represents the information variable in the history vector, and D represents the total number of information types in the history vector. The first similarity determination unit determines the current element in the current vector The historical elements corresponding to the multiple historical vectors are Multiple first similarities of ; The first similarity can be obtained by calculating the similarity between the current element and the historical element through a machine learning model or a mathematical calculation method. The current element may include a certain information of the current action time period. Among them, The representation sequence construction unit establishes a first history representation sequence based on the corresponding history elements in the multiple history vectors. and multiple second history representation sequences The first history representation sequence is composed of history elements related to the current element in multiple history vectors. The second history representation sequence is composed of history elements related to the current element in multiple history vectors except the target history vector, and the target history vector refers to the history vector currently being calculated for the degree of association. The first prediction unit predicts the current prediction element of the current action time period based on the first history representation sequence. The current prediction element may be obtained by a machine learning model or a mathematical calculation method. The second similarity determination unit determines a second similarity between the current element and the current prediction element. The second similarity can be obtained by calculating the similarity between the current element and the current predicted element using a machine learning model or a mathematical calculation method. The second prediction unit predicts the multiple historical prediction elements of the multiple historical action time periods based on the multiple second historical representation sequences. The historical prediction element can be obtained by processing the second historical representation sequence through a machine learning model or a mathematical calculation method. The third similarity determination unit determines a third similarity between the historical element and the corresponding historical prediction element. The third similarity can be obtained by calculating the similarity between the historical element and the historical prediction element through a machine learning model or a mathematical calculation method. The correlation degree calculation unit calculates the correlation degree between the current action time period and the multiple historical action time periods based on the first similarity, the second similarity and the third similarity. The weight allocation unit allocates weights to the multiple historical action time periods based on the association degree. For example, multiple association degrees can be normalized, and then the normalized value is used as the weight. The expression of the association degree is:

[0031] ;

[0032] in, Represents the current vector; represents the history vector; Indicates the degree of correlation between the current action time period and the mth historical action time period; Represents the current element in the current vector; Represents the historical element corresponding to the current element in the mth history vector; represents the first similarity; represents the second similarity; Indicates the third similarity.

[0033] In some embodiments, the weight allocation module includes a vector extraction unit, a neural network model, an attention model, a fully connected neural network and a weight allocation unit. The vector extraction unit extracts the current vector of the current action time period. and multiple historical vectors of the multiple historical action time periods The neural network model receives the current vector and the multiple historical vectors and outputs the current feature and multiple historical features The attention model receives the current feature and the multiple historical features and outputs the current attention vector and its corresponding historical attention vector The fully connected neural network is used to receive the current attention vector and its corresponding historical attention vector, and output the degree of association between the current action time period and the multiple historical action time periods. The weight allocation unit allocates weights to the multiple historical action time periods based on the association degree. .

[0034] The attention model includes a cross attention layer, an attention weight layer and an attention vector layer: the cross attention layer calculates the cross attention matrix of the current feature and the multiple historical features respectively to obtain the current feature attention matrix and multiple historical feature attention matrices ; The attention weight layer calculates the current attention weight based on the current feature attention matrix and the multiple historical feature attention matrices and multiple historical attention weights ; The attention vector layer calculates the current attention vector based on the current attention weight and the multiple historical attention weights. and its corresponding historical attention vector .

[0035] The current purchase quantity determination module 130 inputs the historical data and weights of the multiple historical action time periods into the purchase quantity determination model, and the purchase quantity determination model outputs the current purchase quantity of the current action time period. The current purchase quantity refers to the purchase quantity of raw materials to maintain the orderly production of the current action time period. Among them, the purchase quantity determination model includes a demand model and a procurement model: the demand model receives the historical data of the multiple historical action time periods and outputs the predicted demand; the procurement model receives the historical data of the multiple historical action time periods and the predicted demand, and outputs the current purchase quantity. Among them, the demand model and the procurement model are obtained through joint training, including: constructing an initial demand model and an initial procurement model; the initial demand model and the initial procurement model are both LSTM models; constructing a first training sample and a first training label; the first training sample includes the historical data of the multiple historical action time periods; the first training label includes the standard demand, standard current procurement and the weight of the multiple historical action time periods. The standard demand refers to the actual demand of the historical action time period. For example, after placing an order, a customer may request a refund or return. Therefore, the demand obtained at the start time of the historical time period may not be accurate. If the actual demand is smaller than the demand obtained at the start time, it will cause waste, and if it is larger, it will cause insufficient supply. The standard current purchase quantity refers to the minimum purchase quantity of raw materials that meets the actual demand. If the purchase quantity is too large, it will cause waste, and if it is too small, it will cause insufficient supply. The demand obtained at the end time of the historical action time period can be used as the standard demand. The difference between the purchase quantity of the historical time period and the redundant quantity is used as the standard current purchase quantity. Input the first training sample into the initial demand model, and the initial demand model outputs the initial predicted demand; input the first training sample and the initial predicted demand into the initial procurement model, and the initial procurement model outputs the initial current procurement; construct a joint loss function based on the initial predicted demand, the initial current procurement, the standard demand, the standard current procurement and the weight; update the model parameters of the initial demand model and the initial procurement model based on the joint loss function to obtain a new initial demand model and a new initial procurement model; repeat the update operation of the initial demand model and the initial procurement model until the first preset condition is met, and use the initial demand model at this time as the demand model, and use the initial procurement model at this time as the procurement model. The first preset condition may refer to the convergence of the joint loss function or the number of iterations reaching the maximum number of iterations. Wherein, the expression of the joint loss function is:

[0036] ;

[0037] in, represents the joint loss function; represents the weight of the mth historical action time period; Indicates the standard current purchase quantity; represents the output of the initial procurement model; Indicates the standard demand; represents the output of the initial demand model; V represents the error value of the initial demand model, which is used to measure the accuracy of the initial demand model.

[0038] The supply quantity determination module 140 distributes the current purchase quantity to multiple suppliers through a genetic algorithm to obtain a target supply plan; the supply plan includes the multiple suppliers and the supply quantity corresponding to each supplier.

[0039] Through a genetic algorithm, the current purchase volume is allocated to multiple suppliers for supply, and a target supply plan is obtained, including: constructing multiple supply plans based on the current purchase volume and multiple suppliers and their supply volumes to obtain a supply plan set; using a roulette method to randomly select a supply plan from the supply plan set as a parent supply plan; performing crossover and / or mutation operations on the parent supply plan to obtain a child supply plan; calculating the fitness values ​​of multiple supply plans in the supply plan set and the child supply plan respectively through a fitness function; screening multiple supply plans in the supply plan set and the child supply plan based on the fitness value to obtain a new supply plan set; repeatedly generating a new supply plan set and calculating the fitness values ​​of the supply plans in the new supply plan set until a second preset condition is met, and the supply plan corresponding to the optimal fitness value is used as the target supply plan. Among them, the sum of the raw material supply amounts in the supply plan is the current purchase amount. Of course, the range of the current purchase amount can also be set, and the mutated chromosome whose sum of the raw material supply amounts falls within the purchase amount range is used as the child chromosome, otherwise, it is discarded and mutated again. The second preset condition may refer to the value of the fitness function being less than a preset cost threshold or the number of iterations reaching a maximum number of iterations. The fitness function is expressed as:

[0040] ;

[0041] Among them, d represents the supply plan; represents the fitness function; n represents the supplier variable; N represents the total number of suppliers; Indicates the supply price of raw materials from the nth supplier; represents the supply of the nth supplier; Represents the quality factor.

[0042] The purchase order generation module 150 generates a purchase order for the current action time period based on the target supply plan.

[0043] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A purchase order intelligent generation decision system based on data analysis, It is characterized in that It includes a data acquisition module, a weight allocation module, a current purchase quantity determination module, a supply quantity determination module and a purchase order generation module; The data acquisition module divides the historical time into multiple historical action time periods, and respectively acquires the historical data of the multiple historical action time periods; the historical data includes procurement information, inventory information, demand information and environmental information; the action time period is the production cycle; The weight allocation module calculates the correlation degree between the current action time period and the historical action time period, and assigns weights to the multiple historical action time periods based on the correlation degree; The current purchase quantity determination module inputs the historical data and weights of the multiple historical action time periods into a purchase quantity determination model, and the purchase quantity determination model outputs the current purchase quantity of the current action time period; The supply quantity determination module distributes the current purchase quantity to multiple suppliers through a genetic algorithm to obtain a target supply plan; The supply plan includes the multiple suppliers and the supply quantity corresponding to each supplier; The purchase order generation module generates a purchase order for the current action time period based on the target supply plan; The weight allocation module includes a vector extraction unit, a first similarity determination unit, a representation sequence construction unit, a first prediction unit, a second similarity determination unit, a second prediction unit, a third similarity determination unit, an association degree calculation unit and a weight allocation unit; The vector extraction unit extracts the current vector of the current action time period. and multiple historical vectors of the multiple historical action time periods ; Wherein, the current vector includes information related to the current action time period; They represent different related information in the current vector respectively; c represents the information variable; C represents the total number of information types; the historical vector includes information related to historical data; Respectively represent the historical vectors at different times; m represents the historical action time period variable; M represents the total number of historical action time periods; , They represent different related information in the historical action time period m; d represents the information variable in the historical vector; D represents the total number of information types in the historical vector; The first similarity determination unit determines the current element in the current vector A plurality of first similarities respectively with the corresponding historical elements in the plurality of historical vectors ; The current element includes a certain type of information of the current action time period; Represents the historical element corresponding to the information of the current element in the mth history vector; The representation sequence construction unit establishes a first history representation sequence based on corresponding history elements in the plurality of history vectors. and multiple second history representation sequences ; The first history representation sequence is composed of history elements related to the current element in multiple history vectors; the second history representation sequence is composed of history elements related to the current element in multiple history vectors except the target history vector, and the target history vector refers to the history vector currently performing the association degree calculation; The first prediction unit predicts a current prediction element of the current action time period based on the first history representation sequence; The second similarity determination unit determines a second similarity between the current element and the current predicted element; The second prediction unit predicts a plurality of historical prediction elements of the plurality of historical action time periods respectively based on the plurality of second historical representation sequences; The third similarity determination unit determines a third similarity between the historical element and the corresponding historical prediction element; The association degree calculation unit calculates the association degree between the current action time period and the plurality of historical action time periods respectively based on the first similarity, the second similarity and the third similarity; The weight allocation unit allocates weights to the multiple historical action time periods respectively based on the association degree; The expression of the degree of association is: ; in, Represents the current vector; represents the history vector; Indicates the degree of correlation between the current action time period and the mth historical action time period; Represents the current element in the current vector; Represents the historical element corresponding to the current element in the mth history vector; represents the first similarity; represents the second similarity; represents the third similarity; The current purchase volume is distributed to multiple suppliers through the genetic algorithm to obtain a target supply plan, including: Building multiple supply plans based on the current purchase volume and multiple suppliers and their supply volumes to obtain a supply plan set; A supply solution is randomly selected from the set of supply solutions as a parent supply solution using a roulette wheel method; Performing crossover and / or mutation operations on the parent supply solution to obtain a child supply solution; Calculating the fitness values ​​of the multiple supply schemes in the supply scheme set and the offspring supply scheme respectively through a fitness function; Screening multiple supply solutions in the supply solution set and the child supply solution based on the fitness value to obtain a new supply solution set; Repeatedly generate a new supply solution set and calculate the fitness values ​​of the supply solutions in the new supply solution set until a second preset condition is met, and use the supply solution corresponding to the optimal fitness value as the target supply solution; The expression of the fitness function is: ; Among them, e represents the supply plan; represents the fitness function; n represents the supplier variable; N represents the total number of suppliers; Indicates the supply price of raw materials from the nth supplier; represents the supply of the nth supplier; Represents the quality factor.

2. According to the purchase order intelligent generation decision system based on data analysis according to claim 1, It is characterized in that The weight allocation module includes a vector extraction unit, a neural network model, an attention model, a fully connected neural network and a weight allocation unit; The vector extraction unit extracts the current vector of the current action time period and multiple historical vectors of the multiple historical action time periods ; The current vector includes information related to the current action time period; the historical vector includes information related to historical data; The neural network model receives the current vector and the multiple historical vectors, and outputs a current feature and multiple historical features; The attention model receives the current feature and the multiple historical features and outputs a current attention vector and its corresponding historical attention vector ; The fully connected neural network is used to receive the current attention vector and its corresponding historical attention vector, and output the degree of association between the current action time period and the multiple historical action time periods respectively; The weight allocating unit allocates weights to the multiple historical action time periods based on the association degree.

3. According to the purchase order intelligent generation decision system based on data analysis according to claim 2, It is characterized in that The attention model includes a cross attention layer, an attention weight layer, and an attention vector layer: The cross attention layer calculates the cross attention matrices of the current feature and the multiple historical features respectively to obtain a current feature attention matrix and multiple historical feature attention matrices; The attention weight layer calculates a current attention weight and multiple historical attention weights based on the current feature attention matrix and the multiple historical feature attention matrices respectively; The attention vector layer calculates a current attention vector and its corresponding historical attention vector based on the current attention weight and the multiple historical attention weights respectively.

4. According to claim 1, the purchase order intelligent generation decision system based on data analysis, It is characterized in that The purchase quantity determination model includes a demand model and a purchase model: The demand model receives the historical data of the plurality of historical action time periods and outputs a predicted demand amount; The procurement model receives the historical data of the multiple historical action time periods and the predicted demand quantity, and outputs the current procurement quantity.

5. According to the purchase order intelligent generation decision system based on data analysis according to claim 4, It is characterized in that The demand model and the procurement model are obtained through joint training, including: Constructing an initial demand model and an initial procurement model; both the initial demand model and the initial procurement model are LSTM models; Constructing a first training sample and a first training label; the first training sample includes historical data of the multiple historical action time periods; the first training label includes the standard demand quantity, the standard current purchase quantity and the weight value of the multiple historical action time periods; Inputting the first training sample into the initial demand model, and the initial demand model outputs an initial predicted demand; Inputting the first training sample and the initial predicted demand into the initial procurement model, and the initial procurement model outputs an initial current procurement quantity; Constructing a joint loss function based on the initial predicted demand, the initial current purchase quantity, the standard demand, the standard current purchase quantity and the weight; Updating the model parameters of the initial demand model and the initial procurement model based on the joint loss function to obtain a new initial demand model and a new initial procurement model; Repeat the updating operation of the initial demand model and the initial procurement model until the first preset condition is met, and use the initial demand model at this time as the demand model, and use the initial procurement model at this time as the procurement model.

6. According to the purchase order intelligent generation decision system based on data analysis according to claim 5, It is characterized in that The expression of the joint loss function is: ; Among them, Loss represents the joint loss function; represents the weight of the mth historical action time period; Indicates the standard current purchase quantity; represents the output of the initial procurement model; Indicates the standard demand; represents the output of the initial demand model; V represents the error value of the initial demand model, which is used to measure the accuracy of the initial demand model.

Citation Information

Cited By

  • Decision support-oriented intelligent analysis system in station network in data

    CN120296346A