Command line implementation of TOPSIS for MCDM problems
Project description
Package Description
This package is built as a submission to Assignment 1
Submitted by: Shivank Bhatia (102303655), 3C45
Definition: TOPSIS, acronym for Technique for Order Preference by Similarity to Ideal Solution, is a multi-criteria decision-making (MCDM) method used to rank alternatives by selecting the option that is closest to the ideal solution and farthest from the worst (negative ideal) solution.
✅ Installation
Use the package manager pip to install topsis-shivank-102303655
pip install topsis-shivank-102303655==0.2.2
⚙️ Usage
topsis data.csv 1,1,1,1,1 +,+,-,+,+ result.csv
where,
- data.csv is your input file
- Weights to be assigned to each feature
- Impacts to optimize each feature (
'+': Maximize,'-': Minimize) - Output file path to save the results
🪴Example
weights = [1,1,1,1,1] impacts = [+,+,-,+,+]
| Input Dataset | TOPSIS Output | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
📄 data.csv
|
📊 result.csv
|
🗒️ Notes
The package handles the following:
- Correct number of parameters (inputFileName, Weights, Impacts, resultFileName).
- Show the appropriate message for wrong inputs.
- Handling of “File not Found” exception
- The input file must contain three or more columns.
- From 2nd to last columns must contain numeric values only (Handling of non-numeric values)
- The number of weights, number of impacts and number of columns (from 2nd to last columns) must be the same.
- Impacts must be either +ve or -ve.
- Impacts and weights must be separated by ‘,’ (comma).
License
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file topsis_shivank_102303655-0.2.3.tar.gz.
File metadata
- Download URL: topsis_shivank_102303655-0.2.3.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
350a99cab8ced8f1ebf2e0510930549566b084f90f7fb8e3a8e8b9a0e968c75a
|
|
| MD5 |
a26f4bde2c85d9d4dd9e369285c7bcd7
|
|
| BLAKE2b-256 |
92af558b1a5a77a37eabaffd5574e51c3080457e9a399d7f268e7fbcac483415
|
File details
Details for the file topsis_shivank_102303655-0.2.3-py3-none-any.whl.
File metadata
- Download URL: topsis_shivank_102303655-0.2.3-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e27916dd5f4e01a481ea106188279717ab6e8864b9907dd44a3fbccf33764fd
|
|
| MD5 |
31d575ac38e147a00545299f72ea1e86
|
|
| BLAKE2b-256 |
3df925d69e61c1b7884c24595368a87cf1204ef578a8b249287522070447dacb
|