Command-line implementation of TOPSIS (MCDA technique)
Project description
TOPSIS Command Line Assignment
Submitted byt: Tarun Krishna Shastri / 102303315 / 3C23
Description
This project implements the TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) method as a command-line Python program, as required for the Data Science elective assignment.
Folder Structure
TOPSIS_Assignment/
│
├── topsis.py # Main TOPSIS implementation
├── README.md # Instructions to run the program
Requirements
- Python 3.x
- pandas
- numpy
Install dependencies using:
pip install pandas numpy
▶ How to Run (Command Line)
General Syntax
python topsis.py <InputDataFile> <Weights> <Impacts> <OutputFileName>
Example
python topsis.py data.csv "1,1,1,2" "+,+,-,+" output-result.csv
Input File Rules
- CSV file with minimum 3 columns
- First column: Alternatives (string)
- Remaining columns: Numeric criteria
Output File
- Contains all original columns
- Adds:
Topsis ScoreRank(1 = Best)
Error Handling
The program checks:
- Correct number of parameters
- File not found
- Minimum column count
- Numeric data validation
- Weight & impact consistency
- Valid impact symbols (+ / -)
Notes
- Weights and impacts must be comma-separated
- Impacts must be only
+or- - Ranking uses descending TOPSIS score
🎓 Author
Data Science Elective Assignment
Project details
Release history Release notifications | RSS feed
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_tarun-0.1.0.tar.gz.
File metadata
- Download URL: topsis_tarun-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ad60cd3df52878430d6526705a8ee1b0083cd0deed84f330b5bbd3299c20690
|
|
| MD5 |
f9fec8147c4a56a95a783def4bc05335
|
|
| BLAKE2b-256 |
f62c636f0cf090942cd8e3684ac62633a893cc37004971871773f75fa17af3d2
|
File details
Details for the file topsis_tarun-0.1.0-py3-none-any.whl.
File metadata
- Download URL: topsis_tarun-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02cfcc917e4043ee91d168dbc439b724d7cd960c8a96239d83e870cded734984
|
|
| MD5 |
6a25d4154de95b4ad7feda345fb6eac8
|
|
| BLAKE2b-256 |
8a64c322495d16fee35f1bcb65703fcf3feecd5602f64d5cb975bc53d92c0c95
|