资源简介
利用层次分析法需要计算权重,而权重的计算和使用是比较麻烦的,在这里封装了一些方法。注意的吧,这个东西需要一点知识,代码应该没问题。

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WindowsFormsApplication2;
namespace WindowsFormsApplication2
{
public partial class AHPWightCalculateForm : Form
{
#region 变量
private IList m_matrixInfos = null; //传入的矩阵信息
private List m_childControls = new List();
private bool m_IsOK = true;
private Dictionary m_Index_Width;
private AHPWeightMatrixInfo m_topItem = null;
#endregion
#region 属性
public IList MatrixInfo
{
get { return m_matrixInfos; }
}
#endregion
#region 构造函数
public AHPWightCalculateForm(IList matrixInfos)
{
InitializeComponent();
m_matrixInfos = matrixInfos;
m_topItem = new AHPWeightMatrixInfo(“总权重“);
m_topItem.AddRange(m_matrixInfos);
m_Index_Width = new Dictionary();
BuildTree();
}
private void FormCalcWeight_Load(object sender EventArgs e)
{
CreateTablePage(m_matrixInfos);
button1_Click(nullnull);
}
#endregion
#region 构建树界面
private void BuildTree()
{
TreeNode gtn = new TreeNode();
gtn.Text = “综合权重-1“;
gtn.ImageIndex = 0;
gtn.Tag = m_topItem;
this.treeView1.Nodes.Add(gtn);
for (var i = 0; i < m_matrixInfos.Count; i++)
{
TreeNode tn = new TreeNode(m_matrixInfos[i].Name + “-0“);
tn.Tag = m_matrixInfos[i];
tn.ImageIndex = 0;
gtn.Nodes.Add(tn);
BuildChildItem(m_matrixInfos[i] tn);
}
this.treeView1.ExpandAll();
}
private void BuildChildItem(AHPWeightMatrixInfo matrixTreeNode parentNode)
{
for (var j = 0; j < matrix.ChildItems.Count; j++)
{
TreeNode tn = new TreeNode(matrix.ChildItems[j].Name + “-0“);
tn.Tag = matrix.ChildItems[j];
tn.ImageIndex = 1;
parentNode.Nodes.Add(tn);
}
}
private void treeView1_AfterSelect(object sender TreeViewEventArgs e)
{
var tn = this.treeView1.SelectedNode;
if (tn == null) return;
if (tn == this.treeView1.Nodes[0])
{
this.tablePage1.SelectedIndex = 0;
}
else
{
AHPWeightMatrixInfo matrix = tn.Tag as AHPWeightMatrixInfo;
if (matrix != null)
{
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 371 2018-05-01 11:59 层次分析法权重1.2\folder.png
文件 4624 2018-05-16 17:22 层次分析法权重1.2\WindowsFormsApplication2\AHPCompute.csproj
文件 16842 2018-05-22 15:10 层次分析法权重1.2\WindowsFormsApplication2\AHPWightCalculateForm.cs
文件 11251 2018-05-16 18:09 层次分析法权重1.2\WindowsFormsApplication2\AHPWightCalculateForm.designer.cs
文件 11615 2018-05-16 18:09 层次分析法权重1.2\WindowsFormsApplication2\AHPWightCalculateForm.resx
文件 15665 2018-05-22 15:29 层次分析法权重1.2\WindowsFormsApplication2\AHPWightCalculateWeightsControl.cs
文件 12180 2018-05-22 15:16 层次分析法权重1.2\WindowsFormsApplication2\AHPWightCalculateWeightsControl.Designer.cs
文件 6017 2018-05-22 15:16 层次分析法权重1.2\WindowsFormsApplication2\AHPWightCalculateWeightsControl.resx
文件 40448 2018-05-22 15:30 层次分析法权重1.2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.exe
文件 79360 2018-05-22 15:30 层次分析法权重1.2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.pdb
文件 11600 2018-05-22 15:29 层次分析法权重1.2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.vshost.exe
文件 490 2012-06-06 02:06 层次分析法权重1.2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.vshost.exe.manifest
文件 2455 2018-05-22 14:56 层次分析法权重1.2\WindowsFormsApplication2\Form1.cs
文件 2043 2018-05-16 21:08 层次分析法权重1.2\WindowsFormsApplication2\Form1.Designer.cs
文件 5817 2018-05-16 21:08 层次分析法权重1.2\WindowsFormsApplication2\Form1.resx
文件 3317 2018-05-22 15:11 层次分析法权重1.2\WindowsFormsApplication2\MatrixCalculusHelper.cs
文件 2018 2018-05-22 14:58 层次分析法权重1.2\WindowsFormsApplication2\MatrixInfo.cs
文件 19238 2018-05-22 14:19 层次分析法权重1.2\WindowsFormsApplication2\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
文件 6417 2018-05-22 15:30 层次分析法权重1.2\WindowsFormsApplication2\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 4179 2018-05-16 18:09 层次分析法权重1.2\WindowsFormsApplication2\obj\x86\Debug\WindowsFormsApplication2.AHPWightCalculateForm.resources
文件 180 2018-05-22 15:18 层次分析法权重1.2\WindowsFormsApplication2\obj\x86\Debug\WindowsFormsApplication2.AHPWightCalculateWeightsControl.resources
文件 3932 2018-05-22 15:29 层次分析法权重1.2\WindowsFormsApplication2\obj\x86\Debug\WindowsFormsApplication2.csproj.FileListAbsolute.txt
文件 1263 2018-05-22 15:18 层次分析法权重1.2\WindowsFormsApplication2\obj\x86\Debug\WindowsFormsApplication2.csproj.GenerateResource.Cache
文件 40448 2018-05-22 15:30 层次分析法权重1.2\WindowsFormsApplication2\obj\x86\Debug\WindowsFormsApplication2.exe
文件 180 2018-05-16 21:08 层次分析法权重1.2\WindowsFormsApplication2\obj\x86\Debug\WindowsFormsApplication2.Form1.resources
文件 79360 2018-05-22 15:30 层次分析法权重1.2\WindowsFormsApplication2\obj\x86\Debug\WindowsFormsApplication2.pdb
文件 180 2018-05-16 17:22 层次分析法权重1.2\WindowsFormsApplication2\obj\x86\Debug\WindowsFormsApplication2.Properties.Resources.resources
文件 505 2018-05-15 16:51 层次分析法权重1.2\WindowsFormsApplication2\Program.cs
文件 1391 2018-05-22 15:30 层次分析法权重1.2\WindowsFormsApplication2\Properties\AssemblyInfo.cs
文件 2900 2018-05-15 16:51 层次分析法权重1.2\WindowsFormsApplication2\Properties\Resources.Designer.cs
............此处省略17个文件信息
相关资源
- 基于AHP-Fuzzy-VIKOR的装配式建筑混凝土
- Kubo-Martin-Schwinger权重的κ-Poin
- 知识型员工敬业度评价指标体系构建
- 变权排序法对汽车企业生存能力影响
- 基于ISM和AHP的初等教育现状及影响因
- 基于模糊层次分析法的WIA-PA健康评估
- 基于Fuzzy-AHP的风电场建设项目综合评
- 基于AHP-模糊综合评价的员工培训满意
- 基于改进AHP-综合评价法的露天矿开采
- 基于AHP-TOPSIS评判模型的硫化矿石自燃
- 基于AHP-MF绿色施工评价研究
- 基于AHP-Fuzzy的电子商务风险探析
- 基于AHP-TOPSIS的大学生就业力指标评价
- 基于AHP-TOPSIS的房地产项目后评价研究
- 数学建模层次分析法经典论文精选
- 层次分析法详细介绍和具体案例
- super-decision 使用说明
- MCE现代综合评价方法软件
- 国泰君安_金融工程专题报告_基于组合
- yaahp软件操作方法
- AHP统计软件使用教学
- XP版本专家打分软件(基于ahp)
- 现代综合评价软件
- 一种基于层次分析法的改进KNN算法
- 数学建模层次分析法获奖论文整理合
- 中文词库(120万带IDF权重)
- 数学建模层次分析法案例大学毕业生
- pose_hrnet_w48_384x288.pth
- 基于深度学习的人脸表情识别Tensorf
- deepsort的权重 文件 ckpt.t7
评论
共有 条评论