# 数据对比 **Repository Path**: NathanCap/data-comparison ## Basic Information - **Project Name**: 数据对比 - **Description**: 纯 Java 实现 TOPSIS 算法(多指标决策) 安装简单,轻量级,适合大批量方案筛选 你可设定指标权重,输入数据矩阵(double[][]),获得每组方案的 TOPSIS 得分与理想排名 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-06-25 - **Last Updated**: 2025-06-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # topsis This is an implementation of the MCDM (Multi-Criteria Decision Making) solution using TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) algorithm To understand more about: - TOPSIS: https://en.wikipedia.org/wiki/TOPSIS - MCDM: https://en.wikipedia.org/wiki/Multiple-criteria_decision_analysis Tutorial where I got test data from: https://www.youtube.com/watch?v=Br1NQK0Iumg Free online tool to run TOPSIS: https://decision-radar.com/ 数据格式 { "name": "Alternative 2", //方案名 "criteriaValues": [//该方案在指标上的原始值 { "criteria": { //评价指标 "name": "平均利用率",//指标名称 "weight": 0.7,//指标权重 "negative": false }, "value": 10.64//该方案在该指标上的原始值 }, { "criteria": { "name": "总平均等待时间", "weight": 0.3, "negative": true }, "value": 15569.1 } ], "calculatedPerformanceScore": 1.0,//TOPSIS 算法计算出的该方案的“贴近度”分数,范围一般在 0~1 之间,越高表示越优。 "rawData":{ } }