No project description provided
Project description
Topsis-Vedika-102313060
A Python command-line tool that implements the TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) method to rank alternatives using multiple criteria.
The program reads a CSV file, applies TOPSIS using given weights and impacts, and generates a ranked output CSV file.
Installation
Install using pip:
pip install Topsis-Vedika-102313060
Usage
Enter csv filename followed by .csv extentsion, then enter the weights vector with vector values separated by commas, followed by the impacts vector with comma separated signs (+,-)
topsis <input.csv> <output.csv>
Example
A CSV file containing fund performance data with multiple criteria.
Example format:
| Fund Name | P1 | P2 | P3 | P4 | P5 |
|---|---|---|---|---|---|
| M1 | 0.9 | 0.81 | 3 | 36 | 10.18 |
| M2 | 0.82 | 0.67 | 4.3 | 50.1 | 13.97 |
| M3 | 0.79 | 0.62 | 5.3 | 38.7 | 11.35 |
| M4 | 0.87 | 0.76 | 5.8 | 47.5 | 13.73 |
| M5 | 0.72 | 0.52 | 5.8 | 40.2 | 11.81 |
| M6 | 0.95 | 0.90 | 4.4 | 60.3 | 16.64 |
| M7 | 0.82 | 0.67 | 4.8 | 48.7 | 13.75 |
| M8 | 0.62 | 0.38 | 5.4 | 40.2 | 11.65 |
weights vector:[1,1,1,1,1] impacts vector:[+,+,+,+,+]
input command: topsis data.csv "1,1,1,1,1" "+,+,+,+,+" result.csv
Output
The generated result.csv file will include:
- Topsis Score
- Rank
Each fund will be ranked based on TOPSIS score. Higher score indicates better rank.
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_vedika_102313060-1.0.0.tar.gz.
File metadata
- Download URL: topsis_vedika_102313060-1.0.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
662bc1093d9b70b0b56a017768e965452f0407cbd831cd10fd06a8cba9d4cbbc
|
|
| MD5 |
cd5f97db706f970c6b519807c263f9d7
|
|
| BLAKE2b-256 |
2e668a1687b0912dc1a22a1429c19d30e43e836b18f3f8995e67aef53ada0fe7
|
File details
Details for the file topsis_vedika_102313060-1.0.0-py3-none-any.whl.
File metadata
- Download URL: topsis_vedika_102313060-1.0.0-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.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1377e7faa6720578960c804c70ead6ad6bcf91cff29abac11ca7df8493a3fc6
|
|
| MD5 |
1f635aaf79223845b08689134d27db63
|
|
| BLAKE2b-256 |
be51f37757f5185ef0f2ce9b5183ad202ce843158efa41ac53b5f16aba1aa2b3
|