No project description provided
Project description
TOPSIS-Aartha-102302941
A robust Python command-line utility to implement the TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) method.
This tool helps in multi-criteria decision-making by ranking alternatives based on their geometric distance from the ideal best and worst solutions.
🛠️ Installation
Install the package directly from PyPI:
pip install Topsis-Aartha-102302941
💻 Usage
Run the package using:
topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>
Parameters
- InputDataFile → Path to the
.csvfile - Weights → Comma-separated numeric values
Example:"1,1,1,2" - Impacts → Comma-separated signs (
+or-)
Example:"+,+,-,+" - ResultFileName → Output
.csvfile name
📌 Requirements
- Input file must contain at least 3 columns
- Column 1 → Alternative names/IDs
- Column 2 onward → Numeric criteria only
📊 Example
Input (data.csv)
| Alternative | P1 | P2 | P3 | P4 |
|---|---|---|---|---|
| M1 | 250 | 16 | 12 | 5 |
| M2 | 200 | 16 | 8 | 3 |
| M3 | 300 | 32 | 16 | 4 |
Command
topsis data.csv "1,1,1,2" "+,+,-,+" result.csv
Output (result.csv)
The output file will include:
- Original data
- Topsis Score
- Rank (1 = Best)
🧠 Workflow
-
Validation
- Checks column count, weights, impacts, and numeric data
-
Preprocessing
- Converts values to numeric
- Handles missing values using mean imputation
-
Normalization
- Uses Euclidean normalization
-
Ideal Solutions
- Determines:
- V⁺ (Best)
- V⁻ (Worst)
- Determines:
-
Closeness Score
- Computes distance from ideal best and worst
-
Ranking
- Assigns rank based on closeness score
👤 Author
Aartha Singh
- 🌐 Portfolio: https://myportfolio-phi-one-88.vercel.app/
- 🐈 GitHub: https://github.com/WorkaholicCat
📜 License
Distributed under the MIT License.
See LICENSE for more information.
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_aartha_102302941-1.0.7.tar.gz.
File metadata
- Download URL: topsis_aartha_102302941-1.0.7.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7acc4151cc4dca881b34a84cff6e3adfb3aed9cc12c6be10ee8793c07f4c6fb
|
|
| MD5 |
09f2ff9dd4b31a53f30d5b35a9a3f271
|
|
| BLAKE2b-256 |
37517c6ad2843f1a73bb9026abdf2d5c343a3c36ff4ce3ead049f25272127c34
|
File details
Details for the file topsis_aartha_102302941-1.0.7-py3-none-any.whl.
File metadata
- Download URL: topsis_aartha_102302941-1.0.7-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00b7c0ca591d02c0495415608dccfa31a07ff9879b2e382fbc74c02a1aeffcbc
|
|
| MD5 |
33d3c20a9b1423b0bf8707c8511d4573
|
|
| BLAKE2b-256 |
0d79ad9723b6d72a234cba15b03bb7b8cbb4f9ee5fc95dc4ee73a6d059956993
|