Topsis PDF
Topsis PDF
Analysis
Raghu Nandan Sengupta
Industrial & Management Department
Indian Institute of Technology Kanpur
Minimizing 𝑈 𝑊 ensures
minimizing dispersion, i.e.,
minimization of 𝑉𝑎𝑟 𝑋
One ranks the ratios, 𝑟𝑖 , to get the
best alternative
TOPSIS RNSengupta,IME Dept.,IIT Kanpur,INDIA 6
Algorithm for TOPSIS
Assume decisions/alternatives as 𝐴𝑖 , 𝑖 =
1, ⋯ , 𝑚
Assume attributes/decision criteria/goals are
𝐶𝑗 , 𝑗 = 1, ⋯ , 𝑛
We state the pseudo-codes for the working
principle of TOPSIS
2: INPUT: 𝑿𝑚×𝑛 (matrix consisting of priority scores assigned to decisions/alternatives),𝐴𝑖 ,based on attributes/decision criteria/goals,𝐶𝑗 ;𝑤𝑗 (weight for the
attributes/decision criteria/goals) such that σ𝑛𝑗=1 𝑤𝑗 = 1;𝑩 (benefit matrix);𝑪 (cost matrix). Here 𝑖 = 1, ⋯ , 𝑚 and 𝑗 = 1, ⋯ , 𝑛
3: START if: 𝑖 = 1: 𝑚
4: START if: 𝑗 = 1: 𝑛
𝑥𝑖,𝑗
5: CALCULATE: 𝑟𝑖,𝑗 = ;𝑣𝑖,𝑗 = 𝑤𝑗 𝑟𝑖,𝑗 where 𝑖 = 1, ⋯ , 𝑚 and 𝑗 = 1, ⋯ , 𝑛
σ𝑚 2
𝑖=1 𝑥𝑖,𝑗
6: END if
7: END if
8: CALCULATE: 𝑣𝑖+ ; 𝑣𝑖− ;𝐴𝐼𝑆;𝑃𝐼𝑆;𝑆𝑖+ ;𝑆𝑖− ; 𝑀;𝑇𝑖
9: REPORT: 𝐴𝐼𝑆;𝑃𝐼𝑆;𝑀;𝑇𝑖
10: END
Thus we get 𝑹 = ⋮ ⋱ ⋮ = ⋮ ⋱ ⋮
𝑟𝑚1 ⋯ 𝑟𝑚𝑛 𝑥𝑚1 𝑥𝑚𝑛
⋯
σ𝑚 2
𝑘=1 𝑥𝑘1 σ𝑚 2
𝑘=1 𝑥𝑘𝑛