Skip to main content

TOPSIS implementation as a Python package

Project description

Topsis-Savree-102317097

A Python package implementing the TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) method for multi-criteria decision making.


📌 About TOPSIS

TOPSIS is a ranking technique used to evaluate multiple alternatives based on several criteria.
The best alternative is the one:

  • Closest to the ideal best solution
  • Farthest from the ideal worst solution

This package allows users to perform TOPSIS analysis easily via command line.


⚙️ Installation

Install directly from PyPI:

pip install Topsis-Savree-102317097

🚀 Usage (Command Line)

topsis-s102317097 <InputDataFile> <Weights> <Impacts> <ResultFileName>

Example:

topsis-s102317097 input.csv "1,1,1" "+,+,-" result.csv

📂 Input File Requirements

  • CSV file with at least three columns
  • First column → Alternative names
  • Remaining columns → Numeric criteria values only

Example Input (input.csv)

Option Cost Quality Durability
A1 250 7 8
A2 200 6 9
A3 300 8 7

📊 Parameters

Weights

Comma-separated numeric values
Example: "1,1,1"

Impacts

Comma-separated signs

  • + → Benefit criterion (higher is better)
  • - → Cost criterion (lower is better)

Example: "+,+,-"


📈 Output

The result CSV file will include:

  • Original data
  • Topsis Score
  • Rank

Higher score → Better alternative.


🛠 Error Handling

The package validates:

  • Incorrect number of weights
  • Incorrect number of impacts
  • Non-numeric data in criteria columns
  • Invalid impact symbols
  • Missing input file

👤 Author

Savree Dohar
Roll Number: 102317097


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_savree_102317097-0.0.3.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

topsis_savree_102317097-0.0.3-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file topsis_savree_102317097-0.0.3.tar.gz.

File metadata

  • Download URL: topsis_savree_102317097-0.0.3.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for topsis_savree_102317097-0.0.3.tar.gz
Algorithm Hash digest
SHA256 8c2d616cce8b3dcd0d772baaf6167fbc0f2b0e83214fc986619bf26181862477
MD5 dec33cb668ea6ddb00f2ae9b0746884e
BLAKE2b-256 9ad362ff9f64f68c7a0e698ec832fda86ed9c1b63fa8ec38141a23e0032bcf70

See more details on using hashes here.

File details

Details for the file topsis_savree_102317097-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_savree_102317097-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ca75fa14f4f2c72bc2d1355b1feb5ea627970697484bc6ace0050bf7765b0835
MD5 070b6790066276200336a3d3f3387543
BLAKE2b-256 051c7a12b661f0eba04ad945d1a0707dfed757fb95b974ab1cc5fa8f82b4248d

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