A Python package for TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution)
Project description
Topsis-Naman-102303496
A Python package implementing TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) for multi-criteria decision making.
Installation
pip install Topsis-Naman-102303496
Usage
Command Line
topsis <InputDataFile> <Weights> <Impacts> <OutputResultFileName>
Example
topsis data.csv "1,1,1,2" "+,+,-,+" output.csv
As a Module
from topsis_naman_102303496 import topsis
topsis("data.csv", "1,1,1,2", "+,+,-,+", "output.csv")
Input File Format
The input CSV file should have the following format:
- First column: Object/Alternative names
- Remaining columns: Numeric values for each criterion
| Fund Name | P1 | P2 | P3 | P4 | P5 |
|---|---|---|---|---|---|
| M1 | 0.67 | 0.45 | 6.5 | 42.6 | 12.56 |
| M2 | 0.6 | 0.36 | 3.6 | 53.3 | 14.47 |
Output File Format
The output file includes all original columns plus:
- Topsis Score: The calculated TOPSIS score
- Rank: Ranking based on the score (1 = best)
Parameters
- InputDataFile: Path to the input CSV file
- Weights: Comma-separated weights for each criterion (e.g., "1,1,1,2")
- Impacts: Comma-separated impacts, + for benefit, - for cost (e.g., "+,+,-,+")
- OutputResultFileName: Path for the output CSV file
License
MIT
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_naman_102303496-1.0.0.tar.gz.
File metadata
- Download URL: topsis_naman_102303496-1.0.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1dc54af825e2a54af34e2755396dff159e186dd3d6f89ecb62cc32adbbcdacb
|
|
| MD5 |
93646bdb8733b0c7c17fd7a3e664e7e0
|
|
| BLAKE2b-256 |
4b21481c5447853aaf71bf35e09aabf2658c8fc5ebbc9c042eb9c0550c32e6b7
|
File details
Details for the file topsis_naman_102303496-1.0.0-py3-none-any.whl.
File metadata
- Download URL: topsis_naman_102303496-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
822b5cd9e903d554c0cbb26884ef0e2c838c64f5891a82c5879a2c03f11ef2e4
|
|
| MD5 |
7ea757f95d2f9da37c5523fa4f6a74bc
|
|
| BLAKE2b-256 |
a920f9912bcc57d40164c505db9582d1db4ccf954ff22af8c2c4f10996808dfc
|