当前位置:网站首页>数学建模之层次分析法(含MATLAB代码)
数学建模之层次分析法(含MATLAB代码)
2022-07-05 15:03:00 【苡荏】
1. 层次分析法的基本原理和步骤
层次分析法的基本原理与步骤
人们在进行社会的、经济的以及科学管理领域问题的系统分析中,面临的常常是
一个由相互关联、相互制约的众多因素构成的复杂而往往缺少定量数据的系统。层次
分析法为这类问题的决策和排序提供了一种新的、简洁而实用的建模方法。

基本原理

运用层次分析法建模,大体上可按下面四个步骤进行:
(i) 建立递阶层次结构模型;
(ii) 构造出各层次中的所有判断矩阵;
(iii)层次单排序及一致性检验;
(iv) 层次总排序及一致性检验。




1.1 层次单排序及一致性检验







举例


1.2 层次总排序及一致性检验





举例
例 2 挑选合适的工作。经双方恳谈,已有三个单位表示愿意录用某毕业生。该
生根据已有信息建立了一个层次结构模型,如图 2 所示。


2. matlab代码
% 层次分析及一致性检验代码使用:
%(1)构造判断矩阵A
%(2)将下文代码复制粘贴到Matlab中即可
% 例如:A=[1 3 5;0.33 1 3;0.2 0.33,1]
disp('请输入准则层判断矩阵A(n阶)');
A=input('A=');
[n,n]=size(A); % 得到矩阵的阶数
[V,D]=eig(A); % 求得特征向量和特征值
% 求出最大特征值和它所对应的特征向量
tempNum=D(1,1); % 特征值的初值
pos=1; % 标记的第一个数
for h=1:n
if D(h,h)>tempNum
tempNum=D(h,h);
pos=h; % 最大特征值的位置
end
end
w=abs(V(:,pos)); % 找最大特征值对应的特征向量
w=w/sum(w); % 归一化处理
t=D(pos,pos); % t指的是最大的特征值
disp('准则层特征向量w=');disp(w);disp('准则层最大特征根t=');disp(t);
% 一致性检验
CI=(t-n)/(n-1);RI=[0 0 0.52 0.89 1.12 1.26 1.36 1.41 1.46 1.49 1.52 1.54 1.56 1.58 1.59 1.60 1.61 1.615 1.62 1.63];
CR=CI/RI(n);
if CR<0.10
disp('此矩阵的一致性可以接受!');
disp('CI=');disp(CI);
disp('CR=');disp(CR);
else disp('此矩阵的一致性验证失败,请重新进行评分!');
end
3. 应用过程举例






4. 参考资料
《数学建模算法与应用》(司守奎)《数学建模算法与应用习题解答》(司守奎)- >> bilibili数学建模学习教程
边栏推荐
- 30岁汇源,要换新主人了
- [JVM] operation instruction
- GPS original coordinates to Baidu map coordinates (pure C code)
- No one consults when doing research and does not communicate with students. UNC assistant professor has a two-year history of teaching struggle
- 可转债打新在哪里操作开户是更安全可靠的呢
- Detailed explanation of QT creator breakpoint debugger
- Surpass palm! Peking University Master proposed diverse to comprehensively refresh the NLP reasoning ranking
- Bugku's Ah Da
- Ctfshow web entry command execution
- I spring and autumn blasting-2
猜你喜欢

Live broadcast preview | how to implement Devops with automatic tools (welfare at the end of the article)

华为哈勃化身硬科技IPO收割机

Crud of MySQL

你童年的快乐,都是被它承包了

Bugku's eyes are not real

Bugku's Eval

Behind the ultra clear image quality of NBA Live Broadcast: an in-depth interpretation of Alibaba cloud video cloud "narrowband HD 2.0" technology

I include of spring and Autumn

Your childhood happiness was contracted by it

Reasons and solutions for redis cache penetration and cache avalanche
随机推荐
go学习 ------jwt的相关知识
Cartoon: programmers don't repair computers!
Go learning ----- relevant knowledge of JWT
[12 classic written questions of array and advanced pointer] these questions meet all your illusions about array and pointer, come on!
12 MySQL interview questions that you must chew through to enter Alibaba
How can I quickly check whether there is an error after FreeSurfer runs Recon all—— Core command tail redirection
GPS original coordinates to Baidu map coordinates (pure C code)
Ionic Cordova project modification plug-in
Common redis data types and application scenarios
Talking about how dataset and dataloader call when loading data__ getitem__ () function
SQL Server learning notes
No one consults when doing research and does not communicate with students. UNC assistant professor has a two-year history of teaching struggle
可视化任务编排&拖拉拽 | Scaleph 基于 Apache SeaTunnel的数据集成
我这边同时采集多个oracle表,采集一会以后,会报oracle的oga内存超出,大家有没有遇到的?
qt creater断点调试程序详解
Long list optimized virtual scrolling
【jvm】运算指令
Fr exercise topic - simple question
Interpretation of Apache linkage parameters in computing middleware
Leetcode: Shortest Word Distance II