topsis package for MCDM problems
submitted by: Nandita Roll no: 101917191 Group: 3CSE8
TOPSIS-NANDITA-101917191 is a Python library for dealing with Multiple Criteria Decision Making(MCDM) problems by using Technique for Order of Preference by Similarity to Ideal Solution(TOPSIS).
Use the package manager pip to install TOPSIS-NANDITA-101917191.
pip install TOPSIS-NANDITA-101917191
Enter csv filename followed by .csv extentsion, then enter the weights vector with vector values separated by commas, followed by the impacts vector with comma separated signs (+,-)
topsis sample.csv "1, 1, 1, 1" "+, -, +, +" output.csv
or vectors can be entered without " "
topsis sample.csv 1,1,1,1 +,-,+,+ output.csv
But the second representation does not provide for inadvertent spaces between vector values. So, if the input string contains spaces, make sure to enclose it between double quotes (" ").
To view usage help, use
A csv file showing data for different mobile handsets having varying features.
|Model||Storage space(in gb)||Camera(in MP)||Price(in $)||Looks(out of 5)|
weights vector = [ 0.25 , 0.25 , 0.25 , 0.25 ]
impacts vector = [ + , + , - , + ]
topsis sample.csv 0.25,0.25,0.25,0.25 +,+,-,+ output.csv
TOPSIS RESULTS (P-Score, Rank) are appended to the input csv and saved
|Model||Storage space(in gb)||Camera(in MP)||Price(in $)||Looks(out of 5)||P-Score||Rank|
- The first column and first row are removed by the library before processing, in attempt to remove indices and headers. So make sure the csv follows the format as shown in sample.csv.
- Make sure the csv does not contain categorical values
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for TOPSIS-NANDITA-101917191-3.0.tar.gz