CN115564490A - A Supplier Evaluation Method Based on Attention Mechanism - Google Patents
A Supplier Evaluation Method Based on Attention Mechanism Download PDFInfo
- Publication number
- CN115564490A CN115564490A CN202211295379.4A CN202211295379A CN115564490A CN 115564490 A CN115564490 A CN 115564490A CN 202211295379 A CN202211295379 A CN 202211295379A CN 115564490 A CN115564490 A CN 115564490A
- Authority
- CN
- China
- Prior art keywords
- evaluation
- matrix
- decision
- supplier
- operator
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000011156 evaluation Methods 0.000 title claims abstract description 117
- 230000007246 mechanism Effects 0.000 title claims abstract description 22
- 239000011159 matrix material Substances 0.000 claims abstract description 58
- 238000013528 artificial neural network Methods 0.000 claims abstract description 19
- 238000000034 method Methods 0.000 claims abstract description 12
- 230000006870 function Effects 0.000 claims description 18
- 238000012360 testing method Methods 0.000 claims description 5
- NAWXUBYGYWOOIX-SFHVURJKSA-N (2s)-2-[[4-[2-(2,4-diaminoquinazolin-6-yl)ethyl]benzoyl]amino]-4-methylidenepentanedioic acid Chemical compound C1=CC2=NC(N)=NC(N)=C2C=C1CCC1=CC=C(C(=O)N[C@@H](CC(=C)C(O)=O)C(O)=O)C=C1 NAWXUBYGYWOOIX-SFHVURJKSA-N 0.000 claims description 4
- 230000004913 activation Effects 0.000 claims description 3
- 238000013210 evaluation model Methods 0.000 claims description 3
- 230000005484 gravity Effects 0.000 claims description 3
- 238000005457 optimization Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 238000012549 training Methods 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 238000010835 comparative analysis Methods 0.000 description 1
- 230000002860 competitive effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0201—Market modelling; Market analysis; Collecting market data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0639—Performance analysis of employees; Performance analysis of enterprise or organisation operations
- G06Q10/06393—Score-carding, benchmarking or key performance indicator [KPI] analysis
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Strategic Management (AREA)
- Human Resources & Organizations (AREA)
- Entrepreneurship & Innovation (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Economics (AREA)
- Educational Administration (AREA)
- General Business, Economics & Management (AREA)
- Marketing (AREA)
- Game Theory and Decision Science (AREA)
- Data Mining & Analysis (AREA)
- Biomedical Technology (AREA)
- Evolutionary Computation (AREA)
- Tourism & Hospitality (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Artificial Intelligence (AREA)
- Operations Research (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Quality & Reliability (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域technical field
本发明涉及供应商管理技术领域,具体涉及一种基于注意力机制的供应商评价方法。The invention relates to the technical field of supplier management, in particular to a supplier evaluation method based on an attention mechanism.
背景技术Background technique
随着经济和电子信息技术的快速发展,供应商的管理对于企业的发展与竞争越发重要,成为了研究的热点。供应商评价是供应商管理的一个基本环节,是指企业在与供应商在建立合作关系之前,采取各种方式对潜在供应商进行考核评估,并在建立合作之后的过程中不断跟踪及反馈的过程。供应商的评价和选择是采购管理和供应管理得以顺利开展的前提条件,亦是企业在全球化形势下保持长期竞争优势的基石。准确、高效的供应商评价算法不仅可以降低企业采购成本、提高产品质量,而且可以整合产业资源,促进整个产业链良性有序成长,因此对供应商评价方法的研究具有巨大的应用价值。With the rapid development of economy and electronic information technology, supplier management is becoming more and more important to the development and competition of enterprises, and has become a research hotspot. Supplier evaluation is a basic part of supplier management. It refers to the process of assessing and evaluating potential suppliers in various ways before establishing a cooperative relationship with suppliers, and continuously tracking and giving feedback during the process of establishing cooperation. process. The evaluation and selection of suppliers is the prerequisite for the smooth development of procurement management and supply management, and it is also the cornerstone for enterprises to maintain long-term competitive advantages under the globalization situation. Accurate and efficient supplier evaluation algorithms can not only reduce enterprise procurement costs and improve product quality, but also integrate industrial resources and promote the healthy and orderly growth of the entire industrial chain. Therefore, the research on supplier evaluation methods has great application value.
现有的供应商评价算法主要是使用算采购成本来进行比较分析,通过计算包括售价、采购费用、运输费用等各项支出的总和,选择采购成本较低的供应商。这种方法单纯从采购成本的角度来进行选择,有很大的局限性,往往与企业的战略目标相违背。因此有部分学者引入了数据包络分析法DEA,通过构造多指标的输入输出,增加供应商评价的维度。数据包络分析无法有效地反应决策者对判断准则的偏好.同时,由于未分析准则之间的相关性,导致重复评价。基于此,学者们提出层次分析算法AHP,通过专家确定评价准则,采取综合咨询评分确定权重。然而AHP需要满足迭代目标和约束条件,在要素目标众多、问题规模较大时,难以满足全局的一致性要求。The existing supplier evaluation algorithm mainly uses the calculation of procurement cost for comparative analysis, and selects suppliers with lower procurement costs by calculating the sum of various expenses including selling price, procurement costs, and transportation costs. This method simply chooses from the perspective of procurement cost, which has great limitations and often runs counter to the strategic goals of the enterprise. Therefore, some scholars have introduced the data envelopment analysis method DEA, and increased the dimension of supplier evaluation by constructing multi-indicator input and output. Data envelopment analysis cannot effectively reflect decision makers' preferences for judgment criteria. At the same time, because the correlation between criteria is not analyzed, it leads to repeated evaluation. Based on this, scholars put forward the Analytic Hierarchy Algorithm (AHP), which determines the evaluation criteria through experts and adopts comprehensive consulting scores to determine the weight. However, AHP needs to meet the iterative goals and constraints, and it is difficult to meet the global consistency requirements when there are many element goals and the problem scale is large.
发明内容Contents of the invention
有鉴于此,本发明实施例提供了一种基于注意力机制的供应商评价方法,用以解决或部分解决上述问题。In view of this, an embodiment of the present invention provides a supplier evaluation method based on an attention mechanism to solve or partially solve the above problems.
本发明实施例提供的一种基于注意力机制的供应商评价方法,包括以下步骤:An attention mechanism-based supplier evaluation method provided by an embodiment of the present invention includes the following steps:
步骤1:确定评价项及权值,获得最大特征根λmax,构造评价结果迭代算子A;Step 1: Determine the evaluation items and weights, obtain the largest characteristic root λ max , and construct the evaluation result iteration operator A;
步骤2:引入正则项和注意力机制,改进迭代目标L,构造神经网络,迭代至满足迭代阈值约束,输出评价结果迭代算子A的权值输出矩阵Aoutput;Step 2: Introduce the regular term and attention mechanism, improve the iterative target L, construct the neural network, iterate until the iterative threshold constraint is satisfied, and output the weight output matrix A output of the iterative operator A of the evaluation result;
步骤3:基于最大特征根λmax,构造一致性检验算子,并判断当前权值输出矩阵Aoutput是否有效。Step 3: Construct a consistency check operator based on the largest characteristic root λ max , and judge whether the current weight output matrix A output is valid.
根据本发明实施例的一种具体实现方式,所述步骤1包括以下步骤:According to a specific implementation of the embodiment of the present invention, the step 1 includes the following steps:
步骤1.1:构建层次评价模型,确定供应商评价决策事件的目标层、准则层和子准则层,针对子准则层的评价项构造判断矩阵A0:Step 1.1: Build a hierarchical evaluation model, determine the target layer, criterion layer and sub-criteria level of supplier evaluation decision-making events, and construct a judgment matrix A 0 for the evaluation items of the sub-criteria level:
步骤1.2:基于所述判断矩阵计算各因素aij对目标层的权重W,具体为:Step 1.2: Calculate the weight W of each factor a ij to the target layer based on the judgment matrix, specifically:
对于判断矩阵A0,按行元素求积,再球次幂:For the judgment matrix A0, calculate the product by row elements, and then ball power:
将归一化:Will Normalized:
则指标向量表示为:Then the indicator vector is expressed as:
W=(W1,W2…Wn)T (4);W = (W 1 , W 2 . . . W n ) T (4);
步骤1.3:基于权重W,计算最大特征根λmax:Step 1.3: Based on the weight W, calculate the largest characteristic root λ max :
AW=λmaxW (5);AW = λ max W (5);
进而得:And then get:
步骤1.4:构造评价结果迭代算子,具体为:Step 1.4: Construct the evaluation result iteration operator, specifically:
定义当前供应商评价决策事件为Ui,则Ui从属于决策事件嵌入矩阵U,其中m为历史决策事件的数目,d为数据库存储的决策用户数目,即决策并行数;Define the current supplier evaluation decision event as U i , then U i belongs to the decision event embedding matrix U, Where m is the number of historical decision-making events, d is the number of decision-making users stored in the database, that is, the number of decision-making parallelism;
定义评价项矩阵其中n为评价项数,Define the evaluation item matrix where n is the number of evaluation items,
构造评价结果迭代算子A:Construct the evaluation result iteration operator A:
A=UVT (7);A=UV T (7);
则迭代优化问题可以定义为:Then the iterative optimization problem can be defined as:
其中,||A-UVT||F表示A与其近似值UVT的Frobenius范数。where ||A-UV T || F represents the Frobenius norm of A and its approximation UV T.
根据本发明实施例的一种具体实现方式,所述步骤1.1中,A0中元素赋值使用Santy的1-9标度方法,并满足:According to a specific implementation of the embodiment of the present invention, in the step 1.1, the element assignment in A 0 uses the 1-9 scaling method of Santy, and satisfies:
根据本发明实施例的一种具体实现方式,所述步骤2具体为:According to a specific implementation manner of the embodiment of the present invention, the step 2 is specifically:
步骤2.1:对目标函数L引入l2正则项和gravity隐义矩阵的正则项:Step 2.1: Introduce the l2 regular term and the regular term of the gravity implicit matrix to the objective function L:
进一步得:Further get:
式中,L表示目标函数,i是决策事件矩阵索引,j是评价项目矩阵索引,Ω表示判断矩阵A0的子集,λr和λg是两个正则化系数,M为集合Ω中的供应商评价决策事件总数,N为集合Ω中的评价项总数;In the formula, L represents the objective function, i is the index of the decision-making event matrix, j is the index of the evaluation item matrix, Ω represents the subset of the judgment matrix A 0 , λ r and λ g are two regularization coefficients, and M is the The total number of supplier evaluation decision-making events, N is the total number of evaluation items in the set Ω;
步骤2.2:引入注意力机制,U可以进一步表示为:Step 2.2: Introducing the attention mechanism, U can be further expressed as:
式中,Ui为第i次决策的评价得分向量,Up为第i次之前的历史决策向量;In the formula, U i is the evaluation score vector of the i-th decision, and U p is the historical decision-making vector before the i-th time;
步骤2.3:根据步骤2.1和步骤2.2,构造神经网络;Step 2.3: Construct a neural network according to Step 2.1 and Step 2.2;
步骤2.4:连接数据库中的决策事件向量,构造决策事件嵌入矩阵U;Step 2.4: Connect the decision event vector in the database to construct the decision event embedding matrix U;
步骤2.5:根据当前迭代的序号,构造历史决策事件向量Up;Step 2.5: According to the serial number of the current iteration, construct the historical decision event vector U p ;
步骤2.6:初始化供应商评价项矩阵V为步骤1.2的W,设定神经网络学习率γ,正则超参数λr和λg,迭代阈值L0,最大迭代次数Maxgen,初始迭代次数k=1;Step 2.6: Initialize the supplier evaluation item matrix V as W in step 1.2, set the neural network learning rate γ, regular hyperparameters λ r and λ g , iteration threshold L 0 , maximum iteration number Maxgen, initial iteration number k=1;
步骤2.7:根据步骤2.2,将Ui以及Ui和Up的卷积向量作为输入数据,输入全连接层,经过非线性的ReLU激活函数,得到决策事件输入向量:Step 2.7: According to step 2.2, U i and the convolution vector of U i and U p are used as input data, input to the fully connected layer, and the decision event input vector is obtained through the nonlinear ReLU activation function:
步骤2.8:根据步骤2.6得到供应商评价矩阵V,对于迭代次数k,得到供应商评价项输入向量:Step 2.8: Obtain the supplier evaluation matrix V according to step 2.6. For the iteration number k, obtain the input vector of supplier evaluation items:
Vinput=Vk (15);V input = V k (15);
步骤2.9:将决策事件输入向量和供应商评价项输入向量输入神经网络,得到评价结果迭代算子A的权值输出矩阵:Step 2.9: Input the decision event input vector and the supplier evaluation item input vector into the neural network to obtain the weight output matrix of the iterative operator A of the evaluation result:
Aoutput=Softmax(FCs2(FCs1(Uinput,Vinput)) (16);A output = Softmax(FCs2(FCs1(U input , V input )) (16);
步骤2.10:根据步骤2.1的公式(10),计算目标函数值L;Step 2.10: Calculate the objective function value L according to the formula (10) in step 2.1;
步骤2.11:迭代次数k=k+1,若L≥L0且k<Maxgen,则返回步骤2.7,否则输出当前最优解,进入步骤3.1。Step 2.11: The number of iterations k=k+1, if L≥L 0 and k<Maxgen, return to step 2.7, otherwise output the current optimal solution, and enter step 3.1.
根据本发明实施例的一种具体实现方式,所述步骤3具体为:According to a specific implementation manner of the embodiment of the present invention, the step 3 is specifically:
步骤3.1:根据步骤1.3得到初始评价矩阵的最大特征根λmax,构造一致性检验算子为:Step 3.1: Obtain the maximum characteristic root λ max of the initial evaluation matrix according to step 1.3, and construct the consistency check operator as follows:
其中n表示评价矩阵阶数,C0为检验常数;in n represents the evaluation matrix order, and C 0 is a test constant;
步骤3.2:将步骤3.1的一次性检验算子consistency与阈值θ0比对,若consistency≤θ0,则步骤2.11输出的当前最优解有效,否则步骤2.11输出的当前最优解无效,返回步骤1。Step 3.2: Compare the consistency of the one-time check operator in step 3.1 with the threshold θ 0 , if consistency ≤ θ 0 , the current optimal solution output in step 2.11 is valid, otherwise the current optimal solution output in step 2.11 is invalid, return to step 1.
本发明的实施例至少具有如下技术效果:Embodiments of the present invention have at least the following technical effects:
第一、本发明引入的注意力机制,综合考虑了历史决策和供应商评价项的关系,可以根据当前企业的关注点,提炼核心评价项,提升评价准确度;引入一致性检验算子,对于神经网络获得的评价项组合进行检验,避免评价矩阵存在逻辑问题,保障供应商评价质量。First, the attention mechanism introduced by the present invention comprehensively considers the relationship between historical decision-making and supplier evaluation items, and can refine core evaluation items according to the current focus of the enterprise to improve evaluation accuracy; the introduction of a consistency check operator, for The combination of evaluation items obtained by the neural network is tested to avoid logic problems in the evaluation matrix and ensure the quality of supplier evaluation.
第二、本发明引入神经网络来代替传统的显式求解,随着决策次数等数据量的增加,数据库中存储的历史决策数等训练数据随之增加,注意力因子会愈发准确,实现“越使用越好用”的效果。Second, the present invention introduces a neural network to replace the traditional explicit solution. As the amount of data such as the number of decisions increases, the training data such as the number of historical decisions stored in the database increases accordingly, and the attention factor will become more accurate, realizing " The more you use it, the better it works".
第三、本发明构造评价结果迭代算子作为供应商选择的量度函数,综合考虑评价项权值和决策事件的影响,避免历史数据浪费,提升评价精度。Third, the present invention constructs an evaluation result iteration operator as a measurement function for supplier selection, comprehensively considers the impact of evaluation item weights and decision-making events, avoids waste of historical data, and improves evaluation accuracy.
附图说明Description of drawings
为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍。在所有附图中,类似的元件或部分一般由类似的附图标记标识。附图中,各元件或部分并不一定按照实际的比例绘制。In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the specific embodiments or the prior art. Throughout the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, elements or parts are not necessarily drawn in actual scale.
图1示出了本发明实施例所提供的一种基于注意力机制的供应商评价方法的步骤流程图;Fig. 1 shows a flow chart of the steps of an attention mechanism-based supplier evaluation method provided by an embodiment of the present invention;
图2示出了本发明实施例中的供应商评价决策事件层级图;FIG. 2 shows a hierarchical diagram of supplier evaluation decision-making events in an embodiment of the present invention;
图3示出了本发明实施例中的基于注意力机制的神经网络结构图。FIG. 3 shows a structural diagram of a neural network based on an attention mechanism in an embodiment of the present invention.
具体实施方式detailed description
下面将结合附图对本发明技术方案的实施例进行详细的描述。以下实施例仅用于更加清楚地说明本发明的技术方案,因此只是作为示例,而不能以此来限制本发明的保护范围。Embodiments of the technical solutions of the present invention will be described in detail below in conjunction with the accompanying drawings. The following examples are only used to illustrate the technical solution of the present invention more clearly, so they are only examples, and should not be used to limit the protection scope of the present invention.
需要注意的是,除非另有说明,本申请使用的技术术语或者科学术语应当为本发明所属领域技术人员所理解的通常意义。It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application shall have the usual meanings understood by those skilled in the art to which the present invention belongs.
图1为本发明实施例提供的一种基于注意力机制的供应商评价方法的步骤流程图,参见图1,该方法包括以下步骤:Fig. 1 is a flow chart of the steps of an attention mechanism-based supplier evaluation method provided by an embodiment of the present invention. Referring to Fig. 1, the method includes the following steps:
步骤1:确定评价项及权值,获得最大特征根λmax,构造评价结果迭代算子A。具体如下:Step 1: Determine the evaluation items and weights, obtain the largest characteristic root λ max , and construct the evaluation result iteration operator A. details as follows:
步骤1.1:结合AHP供应商评价算法和决策者对准则的偏好,构建层次评价模型,如图2所示,确定供应商评价决策事件的目标层、准则层和子准则层,针对子准则层的评价项构造判断矩阵A0:Step 1.1: Combining the AHP supplier evaluation algorithm and the decision maker's preference for criteria, construct a hierarchical evaluation model, as shown in Figure 2, determine the target layer, criterion layer and sub-criteria level of supplier evaluation decision-making events, and evaluate the sub-criteria level Item construction judgment matrix A 0 :
A0中元素赋值使用Santy的1-9标度方法,并满足:The element assignment in A 0 uses Santy's 1-9 scale method, and satisfies:
步骤1.2:基于所述判断矩阵计算各因素aij对目标层的权重W,具体为:Step 1.2: Calculate the weight W of each factor a ij to the target layer based on the judgment matrix, specifically:
对于判断矩阵A0,按行元素求积,再求次幂:For the judgment matrix A 0 , calculate the product by row elements, and then calculate power:
将归一化:Will Normalized:
则指标向量可表示为:Then the indicator vector can be expressed as:
W=(W1,W2…Wn)T (4)。W = (W 1 , W 2 . . . W n ) T (4).
步骤1.3:基于权重W,计算最大特征根λmax:Step 1.3: Based on the weight W, calculate the largest characteristic root λ max :
AW=λmaxW (5);AW = λ max W (5);
进而可得:Then you can get:
步骤1.4:构造评价结果迭代算子,具体为:Step 1.4: Construct the evaluation result iteration operator, specifically:
定义当前供应商评价决策事件为Ui,则Ui从属于决策事件嵌入矩阵其中m为历史决策事件的数目,d为数据库存储的决策用户数目,即决策并行数;Define the current supplier evaluation decision event as U i , then U i belongs to the decision event embedding matrix Where m is the number of historical decision-making events, d is the number of decision-making users stored in the database, that is, the number of decision-making parallelism;
定义评价项矩阵其中n为评价项数,构造评价结果迭代算子A:Define the evaluation item matrix Where n is the number of evaluation items, construct the evaluation result iteration operator A:
A=UVT (7);A=UV T (7);
则迭代优化问题可以定义为:Then the iterative optimization problem can be defined as:
其中,||A-UVT||F表示A与其近似值UVT的Frobenius范数。where ||A-UV T || F represents the Frobenius norm of A and its approximation UV T.
步骤2:引入正则项和注意力机制,改进迭代目标L,构造神经网络,迭代至满足迭代阈值约束,输出评价结果迭代算子A的权值输出矩阵Aoutput。具体为:Step 2: Introduce the regular term and attention mechanism, improve the iterative target L, construct the neural network, iterate until the iterative threshold constraint is satisfied, and output the weight output matrix A output of the iterative operator A of the evaluation result. Specifically:
步骤2.1:对目标函数L引入l2正则项和gravity隐义矩阵的正则项:Step 2.1: Introduce the l2 regular term and the regular term of the gravity implicit matrix to the objective function L:
进一步可得:Further available:
式中,L表示目标函数,即迭代的损失函数,i是决策事件矩阵索引,j是评价项目矩阵索引,Ω表示判断矩阵A0的子集,λr和λg是两个正则化系数,M为集合Ω中的供应商评价决策事件总数,N为集合Ω中的评价项总数。In the formula, L represents the objective function, that is, the iterative loss function, i is the index of the decision-making event matrix, j is the index of the evaluation item matrix, Ω represents the subset of the judgment matrix A 0 , λ r and λ g are two regularization coefficients, M is the total number of supplier evaluation decision-making events in the set Ω, and N is the total number of evaluation items in the set Ω.
传统的神经网络容易陷入过拟合,其原因一般是因为网络模型顾及到了样本中的每一个点,最终形成的函数波动很大,自变量稍微变化就会导致函数值剧烈变化,这里引入r(U,V)、g(U,V)两个正则项,将权重减小,从而减小函数值波动,进而避免过拟合的发生。The traditional neural network is prone to overfitting. The reason is generally that the network model takes into account every point in the sample, and the final function fluctuates greatly. A slight change in the independent variable will cause a drastic change in the function value. Here, r( U, V) and g(U, V) are two regular terms, which reduce the weight, thereby reducing the fluctuation of the function value, thereby avoiding the occurrence of overfitting.
步骤2.2:供应商评价时,不同的企业的有自己的评价标准,因此,需要充分考虑当前企业的评价准则和当前决策者对准则的偏好。注意力机制顾名思义,就是模型在预测的时候,对不同行为的注意力是不一样的,“相关”的行为历史看重一些,“不相关”的历史甚至可以忽略。对于供应商评价的决策过程,引入注意力机制,将本轮决策事件与历史决策事件的关系作为权值,若相关度较高,则证明当前企业对此评价项更为关注。Step 2.2: When evaluating suppliers, different companies have their own evaluation criteria. Therefore, it is necessary to fully consider the evaluation criteria of the current company and the preference of the current decision-makers for the criteria. As the name implies, the attention mechanism means that when the model is predicting, it pays different attention to different behaviors. The "related" behavior history is more important, and the "irrelevant" history can even be ignored. For the decision-making process of supplier evaluation, the attention mechanism is introduced, and the relationship between the current round of decision-making events and historical decision-making events is used as the weight. If the correlation is high, it proves that the current enterprise pays more attention to this evaluation item.
在传统供应商评价的算法中,公式(10)决策事件的决策事件嵌入矩阵U,一般为单次评价决策Ui的简单相加或者权值固定的加权和,即 In the traditional supplier evaluation algorithm, the decision event embedding matrix U of formula (10) decision event is generally a simple summation of a single evaluation decision U i or a weighted sum with fixed weights, namely
引入注意力机制,U可以进一步表示为:Introducing the attention mechanism, U can be further expressed as:
式中,Ui为第i次决策的评价得分向量,Up为第i次之前的历史决策向量。由于加入了注意力机制,Ui的权重wi就由Up与Ui的关系决定,也就是式(12)中的g(Up,Ui);In the formula, U i is the evaluation score vector of the i-th decision, and U p is the historical decision-making vector before the i-th time. Due to the addition of the attention mechanism, the weight w i of U i is determined by the relationship between U p and U i , that is, g(U p , U i ) in formula (12);
步骤2.3:根据步骤2.1和步骤2.2,构造神经网络,如图3所示;Step 2.3: Construct a neural network according to Step 2.1 and Step 2.2, as shown in Figure 3;
步骤2.4:连接数据库中的决策事件向量,构造决策事件矩阵U;Step 2.4: Connect the decision event vector in the database to construct the decision event matrix U;
步骤2.5:根据当前迭代的序号,构造历史决策事件向量Up;Step 2.5: According to the serial number of the current iteration, construct the historical decision event vector U p ;
步骤2.6:初始化供应商评价项矩阵V为步骤1.2的W,设定神经网络学习率γ,正则超参数λr和λg,迭代阈值L0,最大迭代次数Maxgen,初始迭代次数k=1;Step 2.6: Initialize the supplier evaluation item matrix V as W in step 1.2, set the neural network learning rate γ, regular hyperparameters λ r and λ g , iteration threshold L 0 , maximum iteration number Maxgen, initial iteration number k=1;
步骤2.7:根据步骤2.2,将Ui以及Ui和Up的卷积向量作为输入数据,输入全连接层,经过非线性的ReLU激活函数,得到决策事件输入向量:Step 2.7: According to step 2.2, U i and the convolution vector of U i and U p are used as input data, input into the fully connected layer, and the decision event input vector is obtained through the nonlinear ReLU activation function:
步骤2.8:根据步骤2.6得到供应商评价矩阵V,对于迭代次数k,得到供应商评价项输入向量:Step 2.8: Obtain the supplier evaluation matrix V according to step 2.6. For the iteration number k, obtain the input vector of supplier evaluation items:
Vinput=Vk (15);V input = V k (15);
步骤2.9:将决策事件输入向量和供应商评价项输入向量输入神经网络,得到构造评价结果迭代算子A的权值输出矩阵:Step 2.9: Input the decision-making event input vector and the supplier evaluation item input vector into the neural network to obtain the weight output matrix of the iterative operator A for constructing evaluation results:
Aouptut=Softmax(FCs2(FCs1(Uinput,Vinput)) (16);A ouptut = Softmax(FCs2(FCs1(U input , V input )) (16);
步骤2.10:根据步骤2.1的公式(10),计算目标函数值L;Step 2.10: Calculate the objective function value L according to the formula (10) in step 2.1;
步骤2.11:增加迭代次数k=k+1,若L≥L0且k<Maxgen,则返回步骤2.7,否则输出当前最优解,进入步骤3.1;Step 2.11: increase the number of iterations k=k+1, if L≥L 0 and k<Maxgen, return to step 2.7, otherwise output the current optimal solution, and enter step 3.1;
步骤3:基于最大特征根λmax,构造一致性检验算子,并判断当前权值输出矩阵Aoutput是否有效。Step 3: Construct a consistency check operator based on the largest characteristic root λ max , and judge whether the current weight output matrix A output is valid.
步骤3.1:构造一致性检验算子;Step 3.1: Construct a consistency check operator;
根据步骤1.3得到初始评价矩阵的最大特征根λmax,构造一致性检验算子为:According to step 1.3, the largest characteristic root λ max of the initial evaluation matrix is obtained, and the consistency check operator is constructed as follows:
其中n表示评价矩阵阶数,C0为检验常数,可通过随机一致性指标取值表查得。in n represents the order of the evaluation matrix, and C 0 is a test constant, which can be found through the value table of the random consistency index.
步骤3.2:根据步骤3.1,计算一致性检验结果,设一致性检验阈值为θ0。若consistency≤θ0,则步骤2.11输出的当前最优解有效,否则步骤2.11输出的当前最优解无效,返回步骤1.1。Step 3.2: According to step 3.1, calculate the result of the consistency test, and set the consistency test threshold as θ 0 . If consistency≤θ 0 , the current optimal solution output in step 2.11 is valid; otherwise, the current optimal solution output in step 2.11 is invalid, and return to step 1.1.
若步骤2.11输出的当前最优解有效,则后续按该评价矩阵输入各指标项分值,经对应权重及层级交叉计算后获得各供应商的客观评分。而步骤2.11输出的当前最优解无效,返回步骤1.1,即重新输入合理的初始评价矩阵A0,重新执行该方法。If the current optimal solution output in step 2.11 is valid, then input the scores of each index item according to the evaluation matrix, and obtain the objective score of each supplier after the corresponding weight and level cross calculation. But the current optimal solution output in step 2.11 is invalid, return to step 1.1, that is, re-input a reasonable initial evaluation matrix A 0 , and execute the method again.
需要说明的是,各个模块按照流式布局进行排列,仅仅是本发明的一个实施例,也可以采用其他的方式排列,本发明对此不做限定。It should be noted that the arrangement of the various modules according to the flow layout is only an embodiment of the present invention, and other arrangements may also be adopted, which is not limited in the present invention.
本发明的实施例具有如下技术效果:Embodiments of the invention have the following technical effects:
第一、本发明基于AHP供应商评价算法获得初始指标权重,保留了AHP算法的优点,关注分析准则之间的相关性,提炼决策者对准则的偏好;First, the present invention obtains the initial index weight based on the AHP supplier evaluation algorithm, retains the advantages of the AHP algorithm, pays attention to the correlation between the analysis criteria, and refines the decision maker's preference for the criteria;
第二、本发明构造评价结果迭代算子作为供应商选择的量度函数,综合考虑评价项权值和决策事件的影响,避免历史数据浪费,提升评价精度;Second, the present invention constructs an evaluation result iteration operator as a measurement function for supplier selection, comprehensively considers the impact of evaluation item weights and decision-making events, avoids waste of historical data, and improves evaluation accuracy;
第三、本发明引入的注意力机制,综合考虑了历史决策和供应商评价项的关系,可以根据当前企业的关注点,提炼核心评价项,提升评价准确度;Third, the attention mechanism introduced by the present invention comprehensively considers the relationship between historical decision-making and supplier evaluation items, and can refine core evaluation items according to the current focus of the enterprise to improve evaluation accuracy;
第四、本发明引入神经网络来代替传统的显式求解,随着决策次数等数据量的增加,数据库中存储的历史决策数等训练数据随之增加,注意力因子会愈发准确,实现“越使用越好用”的效果;Fourth, the present invention introduces a neural network to replace the traditional explicit solution. As the amount of data such as the number of decisions increases, the training data such as the number of historical decisions stored in the database increases accordingly, and the attention factor will become more accurate, realizing " The more you use it, the better it works”;
第五、本发明引入一致性检验算子,对于神经网络获得的评价项组合进行检验,避免评价矩阵存在逻辑问题,保障供应商评价质量。Fifth, the present invention introduces a consistency check operator to check the combination of evaluation items obtained by the neural network to avoid logic problems in the evaluation matrix and ensure the quality of supplier evaluation.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. All should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211295379.4A CN115564490A (en) | 2022-10-21 | 2022-10-21 | A Supplier Evaluation Method Based on Attention Mechanism |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211295379.4A CN115564490A (en) | 2022-10-21 | 2022-10-21 | A Supplier Evaluation Method Based on Attention Mechanism |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115564490A true CN115564490A (en) | 2023-01-03 |
Family
ID=84746648
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211295379.4A Pending CN115564490A (en) | 2022-10-21 | 2022-10-21 | A Supplier Evaluation Method Based on Attention Mechanism |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115564490A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117314233A (en) * | 2023-09-21 | 2023-12-29 | 国网河北省电力有限公司物资分公司 | Vendor evaluation method, device, terminal equipment and medium |
-
2022
- 2022-10-21 CN CN202211295379.4A patent/CN115564490A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117314233A (en) * | 2023-09-21 | 2023-12-29 | 国网河北省电力有限公司物资分公司 | Vendor evaluation method, device, terminal equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Huang et al. | Enterprise credit risk evaluation based on neural network algorithm | |
CN108876132B (en) | Cloud-based industrial enterprise energy efficiency service recommendation method and system | |
Chang et al. | A hybrid system by evolving case-based reasoning with genetic algorithm in wholesaler's returning book forecasting | |
Zhong et al. | Effects of cost-benefit analysis under back propagation neural network on financial benefit evaluation of investment projects | |
Zhang | Prediction of Purchase Volume of Cross‐Border e‐Commerce Platform Based on BP Neural Network | |
CN112686693A (en) | Method, system, equipment and storage medium for predicting marginal electricity price of electric power spot market | |
Guan et al. | Inventory Management Optimization of Green Supply Chain Using IPSO‐BPNN Algorithm under the Artificial Intelligence | |
Yang | Enterprise Network Marketing Prediction Using the Optimized GA‐BP Neural Network | |
CN115564490A (en) | A Supplier Evaluation Method Based on Attention Mechanism | |
Huang et al. | A novel stock trading utilizing long short term memory prediction and evolutionary operating-weights strategy | |
Wang | Research on enterprise financial performance evaluation method based on data mining | |
CN109003145A (en) | A kind of power coal price prediction technique | |
Ren et al. | Research of LSTM-RNN Model and Its Application Evaluation on Agricultural Products Circulation | |
Feng et al. | Optimization and analysis of intelligent accounting information system based on deep learning model | |
Pei | Construction and application of talent evaluation model based on nonlinear hierarchical optimization neural network | |
CN116341723A (en) | Stock trend prediction method, system, equipment and medium based on deep learning and multi-source data fusion | |
Tong et al. | An RNN-MCDA method to support efficient and stable matching under uncertain preferences in large-scale sharing platforms | |
CN115471009A (en) | Predictive Optimal Power System Planning Method | |
Zha et al. | A hierarchical reinforcement learning framework for stock selection and portfolio | |
Zhang et al. | Evaluation of enterprise performance based on FLI-GA model | |
Rong | Analysis of the comprehensive evaluation model of enterprise technological innovation ability based on improved genetic algorithm | |
CN110956528B (en) | Recommendation method and system for e-commerce platform | |
Zhao | [Retracted] Risk Assessment Method of Agricultural Management Investment Based on Genetic Neural Network | |
CN114238102A (en) | Staged workload prediction method and system based on composite variable characteristics | |
Kang et al. | Bi-objective inventory allocation planning problem with supplier selection and carbon trading under uncertainty |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20230103 |
|
RJ01 | Rejection of invention patent application after publication |