TOPSIS implementation for MCDM problems
Project description
Topsis-Rakshita-102303498
Project Description
Topsis-Rakshita-102303498 is a Python package that implements the
Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS),
a widely used method for Multiple Criteria Decision Making (MCDM).
This package allows users to rank alternatives based on multiple criteria by providing a CSV file, weights, and impacts through the command line.
What is TOPSIS?
TOPSIS is based on the concept that the best alternative should have:
- the shortest distance from the ideal solution, and
- the farthest distance from the negative-ideal solution.
Installation
Install the package from PyPI using pip:
pip install Topsis-Rakshita-102303498
Usage
Run the package from the command line:
topsis input.csv "1,1,1,1" "+,+,-,+" output.csv
Arguments
input.csv : CSV file containing alternatives and criteria
weights : Weights for each criterion (comma-separated)
impacts : Impact of each criterion (+ for benefit, - for cost)
output.csv: Output CSV file containing TOPSIS scores and ranks
Input File Format
First column: Alternatives
Remaining columns: Numeric criteria values
No categorical data allowed in criteria columns
Example Input (sample.csv)
Model,Storage,Camera,Price,Looks
M1,16,12,250,5
M2,16,8,200,3
M3,32,16,300,4
M4,32,8,275,4
M5,16,16,225,2
Output
The output file will contain two additional columns: Topsis Score Rank Higher score indicates a better alternative.
Notes
The first column is treated as an identifier and not used for calculations. All criteria values must be numeric. Weights and impacts must match the number of criteria columns.
License
This project is licensed under the MIT 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_rakshita_102303498-1.0.4.tar.gz.
File metadata
- Download URL: topsis_rakshita_102303498-1.0.4.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
857a0bf578675db95fb3db8cc6e657f2f174cbb6de3cfc3cbeb53161a61c3a79
|
|
| MD5 |
643cc63ec2ffc56f3d9a36090072701a
|
|
| BLAKE2b-256 |
66f1e63f4f5b20228457862e3dc6a9c91f8a1f37a5fab2dad5857a405970a489
|
File details
Details for the file topsis_rakshita_102303498-1.0.4-py3-none-any.whl.
File metadata
- Download URL: topsis_rakshita_102303498-1.0.4-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.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c9bdbca17e15484e886aa609ef873abcb9df4e405003f76a7d1939ba2429426
|
|
| MD5 |
3308c4bedfc0d26704b5d6abb1b0e213
|
|
| BLAKE2b-256 |
7402bf5f7c5c87b5ebcd6724850c3740567fa60613f118a0ee6bbd6da521c309
|