A Python package for TOPSIS decision making
Project description
Topsis-Chetanya-102303778
Project Description
For: Project-1 (UCS654 – Predictive Analytics)
Submitted by: Chetanya
Roll Number: 102303778
Topsis-Chetanya-102303778 is a Python package designed 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 distance from the ideal best and ideal worst solutions. It is implemented as a command-line tool, making it easy to use for real-world decision-making applications.
Installation
Install the package using pip:
pip install Topsis-Chetanya-102303778
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 vectors contain spaces, they must be enclosed within double quotes (" ").
Input Format
- Input file must be in CSV format
- First column contains alternatives (e.g., items, models, options)
- Remaining columns contain numeric criteria values
- Minimum of three columns required
- No categorical values 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 based on TOPSIS score
(Higher score indicates better rank)
Features
- Command-line based execution
- Supports user-defined weights and impacts
- Input validation and error handling
- Ranks alternatives using TOPSIS method
- Generates results in CSV format
Notes
- Number of weights must match number of criteria
- Number of impacts must match number of criteria
- Impacts must be either
+or- - Input CSV must contain only numeric values (except first column)
License
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_chetanya_102303778-1.0.1.tar.gz.
File metadata
- Download URL: topsis_chetanya_102303778-1.0.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fc9c01418f3b4857d7de80f2ec5492139483b56f180a432b6325d0d79c38f73
|
|
| MD5 |
372fabec22c6880d0cfbce3f7854f2db
|
|
| BLAKE2b-256 |
7f2b58ccd6dcbc49a76445e8bce0760d400c17c72bd96e8a4cc6699ef7a0f367
|
File details
Details for the file topsis_chetanya_102303778-1.0.1-py3-none-any.whl.
File metadata
- Download URL: topsis_chetanya_102303778-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a9a8eddacc50b752102a49715e9e97fd5921f4c15ed6a1049df87d31905f721
|
|
| MD5 |
9b3e6a4bbb5812c2b7f25ae49e8f079f
|
|
| BLAKE2b-256 |
2358f71be5791b2e82c0303069c2d60e100719a618ad5b4ccbac37c52a3d279d
|