Skip to main content

TOPSIS implementation as a Python package

Project description

Topsis-Vani-102303064

This package implements the TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) method. It is used to rank alternatives based on multiple criteria.


Installation

pip install topsis-vani-102303064

```bash

Usage (Command Line)

```bash
topsis <InputDataFile> <Weights> <Impacts> <OutputResultFileName>
```bash

Example
```bash
topsis data.csv "1,1,1,2" "+,+,-,+" output.csv
```bash

Input File Format
-CSV file
-Minimum 3 columns
-First column: alternative names (non-numeric)
-Remaining columns: numeric criteria values

Example Input
```bash
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
```bash

Weights and Impacts
Weights (comma separated):
-1,1,1,2
Impacts (+ for benefit, - for cost):
-+,+,-,+

Output
-Output file is generated in CSV format
-Two new columns are added:
-Topsis Score
-Rank (Rank 1 = Best alternative)

License
-MIT License

Author
-Vani
-Roll Number: 102303064

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

topsis_vani_102303064-1.0.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

topsis_vani_102303064-1.0.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file topsis_vani_102303064-1.0.1.tar.gz.

File metadata

  • Download URL: topsis_vani_102303064-1.0.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for topsis_vani_102303064-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2869eae5aafa072ac38da13372ea14f9a780b722de060e15bf25d9b89870f6f0
MD5 a869ae10ecea11dffad5647dc90e6418
BLAKE2b-256 1d813896c4efae926f81c45f680d6178bb28fa11d28ceda5a3056a17ca8da4ca

See more details on using hashes here.

File details

Details for the file topsis_vani_102303064-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_vani_102303064-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aa50b9b6807b2383e5c4fae85484d7f048870be1b349e487e23336d83e007760
MD5 69d1eb7c7ca8322aa90201d036e5a032
BLAKE2b-256 e6ce1faf1862d4bbe876da4d4ee9dde4b5479bb65a17dfc83c42db37ea054a4b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page