TOPSIS implementation using command line
Project description
🧮 Topsis-JaspreetSingh-102303163
A simple and powerful Python implementation of the TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) method that runs directly from the command line after installation.
This package allows users to rank alternatives based on multiple criteria using weights and impacts — without writing any code.
🚀 Features
- Works directly from command line
- Reads any CSV file with numeric criteria
- Accepts custom weights and impacts
- Calculates Topsis Score and Rank
- Generates output CSV automatically
- Easy to install using
pip
📦 Installation
pip install Topsis-JaspreetSingh-102303163
▶️ How to Use
After installation, simply run:
topsis data.csv "1,1,1,2" "+,+,-,+" result.csv
Arguments Explained
| Argument | Description |
|---|---|
data.csv |
Input CSV file |
"1,1,1,2" |
Weights for each numeric column |
"+,+,-,+" |
Impacts (+ for benefit, - for cost) |
result.csv |
Output file with Topsis Score and Rank |
📄 Input CSV Format
- First column: Alternative names (non-numeric)
- Remaining columns: Numeric criteria values
Example:
| Model | Price | Mileage | Safety | Comfort |
|---|---|---|---|---|
| A | 25000 | 18 | 7 | 8 |
| B | 27000 | 15 | 9 | 6 |
📤 Output
The output CSV will contain two extra columns:
- Topsis Score
- Rank
🧠 About TOPSIS
TOPSIS is a multi-criteria decision-making method that identifies solutions closest to the ideal and farthest from the worst case.
👨💻 Author
Jaspreet Singh
Roll No: 102303163
🌐 Project Links
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_jaspreetsingh_102303163-0.3.tar.gz.
File metadata
- Download URL: topsis_jaspreetsingh_102303163-0.3.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01927971faac700472b38876c8b0c1f31559243389092d866173a00ba32b9d01
|
|
| MD5 |
8e888b5ff66b6809cdcd097d15a2690b
|
|
| BLAKE2b-256 |
35db9c4d3e2ec37fea95b7a2d3188942b4de4834993d87ca0730690c99579d15
|
File details
Details for the file topsis_jaspreetsingh_102303163-0.3-py3-none-any.whl.
File metadata
- Download URL: topsis_jaspreetsingh_102303163-0.3-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f678ccadce70f582cbd5589ef0cf5d0d743138429a80d945a3c235b77416e930
|
|
| MD5 |
9f418962d8dfc9aa9a805d7352415f15
|
|
| BLAKE2b-256 |
32f4e60ae04b93ef0a6f49a4651b00ae41bfc2655ff9d7cf95d6ecec982b2e25
|