topsis package for MCDM problems
Project description
topsis_102017134
for: Project-1 (UCS654) submitted by: Soumya Srivastava Roll no: 102017134 Group: 3CS6
topsis-102017134 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).
Installation
Use the package manager pip to install topsis_102017134.
pip install topsis_102017134
Usage
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 (+,-), and lastly the outputFileName.
topsis sample.csv "1,1,1,1" "+,-,+,+" "outputFile.csv"
Example
sample.csv
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) |
|---|---|---|---|---|
| M1 | 16 | 12 | 250 | 5 |
| M2 | 16 | 8 | 200 | 3 |
| M3 | 32 | 16 | 300 | 4 |
| M4 | 32 | 8 | 275 | 4 |
| M5 | 16 | 16 | 225 | 2 |
weights vector = [ 0.25 , 0.25 , 0.25 , 0.25 ]
impacts vector = [ + , + , - , + ]
input:
topsis sample.csv "0.25,0.25,0.25,0.25" "+,+,-,+"
output:
P-Score Rank
1 0.534277 3
2 0.308368 5
3 0.691632 1
4 0.534737 2
5 0.401046 4
License
Github Repository
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file topsis_102017134-0.3.tar.gz.
File metadata
- Download URL: topsis_102017134-0.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e17fc37cf80d18f21403569f7c25eec52ea245acf34425421ec475ab3b7446e7
|
|
| MD5 |
2f90b3378ae5ae704f40363895403171
|
|
| BLAKE2b-256 |
6820ed348f64a6db7a3bf31fd238bbbb79915211740587c5e276e321df73a9ea
|