public Calculation(AHPIndexHierarchy ahp, GroupedMonitorDataByTime groupedMonDataByTime, DateTime evaluationDate) { _ahpIndexHierarchy = ahp; _judgementMatrixInfosSet = BinaryIO.ReadMatrixInfosSet();///读取判断矩阵 _ahpIndexUtil = new AHPIndexHierarchyUtil(ahp); InitialBaseData(groupedMonDataByTime, evaluationDate); if (!IsMatrixExist()) { MessageBox.Show("需要定义判断矩阵!"); return; } CalculateWeightVctor(); CalculateFuzzyMatrix(); ShowResult(); }
AllExpertJudgementMatrixs _judgementMatrixInfosSet; //所有有关信息 #endregion Fields #region Constructors public LookUpJudgementMatrixWnd(AHPIndexHierarchy ahpIndexHierarchy) { MatrixGrade = new List<string> { "1/2", "1", "2"}; InitializeComponent(); _judgementMatrixInfosSet = BinaryIO.ReadMatrixInfosSet();//读取已有的,这个地方需要细化 if(_judgementMatrixInfosSet==null) { _judgementMatrixInfosSet = new AllExpertJudgementMatrixs(); } this.DataContext = _judgementMatrixInfosSet.JudgementMatrixInfosList; judgeMatrixDic = _judgementMatrixInfosSet.JudgementMatrixInfosList[0].JudgeMatrixDic; matrixNo = 0; matrixTotalNo = judgeMatrixDic.Count; SingleBasicJudgementMatrixInfo judgemtInfo = judgeMatrixDic.ElementAt(matrixNo).Value; RefreshData(judgemtInfo.IndexsSequence, judgemtInfo.JudgementMatrix); dgWeight.CellEditEnding += dgWeight_CellEditEnding; }
public NewJudgementMatrixWnd(AHPIndexHierarchy ahpIndexHierarchy) { MatrixGrade = new List<string> { "1/2", "1", "2"}; InitializeComponent(); _judgementMatrixInfosSet = BinaryIO.ReadMatrixInfosSet();//读取已有的,这个地方需要细化 if (_judgementMatrixInfosSet==null)//没有现成的就新建 { _judgementMatrixInfosSet = new AllExpertJudgementMatrixs(); } judgemetnMatrixInfos = new JudgementMatrixsGroup(ahpIndexHierarchy); //新建空的判断矩阵集 judgeMatrixDic = judgemetnMatrixInfos.JudgeMatrixDic; //judgeMatrixDic = _judgementMatrixInfosSet.JudgementMatrixInfosList[0].JudgeMatrixDic; matrixNo = 0; matrixTotalNo = judgeMatrixDic.Count; SingleBasicJudgementMatrixInfo judgemtInfo = judgeMatrixDic.ElementAt(matrixNo).Value; RefreshData(judgemtInfo.IndexsSequence, judgemtInfo.JudgementMatrix); dgWeight.CellEditEnding += dgWeight_CellEditEnding; }
public static void OutputMatrixInfosSet(AllExpertJudgementMatrixs _matrixInfosSet) { BinarySerialization<AllExpertJudgementMatrixs>.Serialization(_matrixFilePath,_matrixInfosSet); }
public JudgementMatrixExpertDateListWnd() { InitializeComponent(); _allExpertJudgementMatrix = BinaryIO.ReadMatrixInfosSet();//读取已有的 this.lvJudgeMatrixDetailList.ItemsSource = _allExpertJudgementMatrix.JudgementMatrixInfosList; }