A Python package for TOPSIS decision making
Project description
# Topsis-Tanya-102303077
## Project Description
**For:** Project-1 (UCS654 – Predictive Analytics)
**Submitted by:** Tanya Mediratta
**Roll Number:** 102303077
**Topsis-Tanya-102303077** is a Python package developed to solve **Multiple Criteria Decision Making (MCDM)** problems using the **Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS)** method.
The package ranks multiple alternatives based on their relative closeness to the ideal best and ideal worst solutions. It is implemented as a **command-line tool**, making it easy to use for practical and academic decision-making problems.
---
## Installation
Install the package using `pip`:
```bash
pip install Topsis-Tanya-102303077
Usage
Run the package from the command line by providing:
- Input CSV file
- Weights vector
- Impacts vector
- Output file name
topsis data.csv "1,1,1,2" "+,-,-,+" result.csv
If weights or impacts contain spaces, they must be enclosed within double quotes (" ").
Input Format
- Input file must be in CSV format
- First column contains the names of alternatives
- Remaining columns contain numeric criteria values
- Minimum of three columns is required
- Categorical values are not allowed in criteria columns
Example
Sample Input File (data.csv)
Fund Name,P1,P2,P3,P4
M1,0.67,0.45,6.5,42.6
M2,0.60,0.36,3.6,53.3
M3,0.82,0.67,3.8,63.1
M4,0.60,0.36,3.5,69.2
M5,0.76,0.58,4.8,43.0
Command
topsis data.csv "1,1,1,2" "+,-,-,+" result.csv
Output
The output CSV file contains:
- Original input data
- TOPSIS Score for each alternative
- Rank of each alternative based on the TOPSIS score (Higher score indicates a better rank)
Features
- Command-line based execution
- Supports user-defined weights and impacts
- Input validation with clear error messages
- Ranks alternatives using TOPSIS methodology
- Outputs results in CSV format
Notes
- Number of weights must match the number of criteria
- Number of impacts must match the number of criteria
- Impacts must be either
+or- - Criteria columns must contain numeric values only
License
MIT 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_tanya_102303077-1.0.1.tar.gz.
File metadata
- Download URL: topsis_tanya_102303077-1.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
511fb9df8c7590d07d37028d9bba836a1d7b9f698e90a5bf876bf175ae6156de
|
|
| MD5 |
f77b44f5b7f78b3a6ba0a02e4aa812b7
|
|
| BLAKE2b-256 |
eb0468fe0406d3a733840ee87a308c4a61803d1640856d77b7ab0a78d011f7e9
|
File details
Details for the file topsis_tanya_102303077-1.0.1-py3-none-any.whl.
File metadata
- Download URL: topsis_tanya_102303077-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df085d4d886b9064e1812b8f800672cf3443596af5d58a7c5c7bd6739523ebca
|
|
| MD5 |
867c39daa740629e0fafc484139a5099
|
|
| BLAKE2b-256 |
3fcc7f1c4277417a45f26397515201b86b515f30f815309647ecb6560f4cc632
|