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

Usage (Command Line)

topsis <InputDataFile> <Weights> <Impacts> <OutputResultFileName>

Example

topsis data.csv "1,1,1,2" "+,+,-,+" output.csv

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

Example Input

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

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.2.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.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: topsis_vani_102303064-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 b373f1c04186be12d1ce6b820136fcd688cb11b98859482b1eb74ee12e149c44
MD5 6f52103bc22bba1b39acd9ae5271e17d
BLAKE2b-256 5912ad6ffc14ff095865d45397611d1315306642b3711b38481062b85827e959

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topsis_vani_102303064-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 33d895337fed4732e3b261dedb5e6702209a0dbcf00e5f2df59b342e7dff49cc
MD5 bf496ef3e184589a7202a98b780ff3d1
BLAKE2b-256 af961260e56a0e9fd2eeec891dda514312044611770c8c6d73e06dd87903e11f

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