Skip to main content

A Python package to perform TOPSIS (Technique for Order Preference by Similarity to Ideal Solution).

Project description

TOPSIS Implementation in Python

This Python project implements the Technique for Order Preference by Similarity to Ideal Solution (TOPSIS). The algorithm ranks alternatives based on multiple criteria, considering their relative importance (weights) and impacts (benefit or cost).

Features

  • Input Validation: Checks for correct input parameters, file format, and consistency in weights/impacts.
  • Error Handling: Handles file-related errors, invalid data, and incorrect inputs gracefully.
  • Outputs: Saves results including scores, rankings, and all original columns into a CSV file.

How to Use

  1. Clone the repository and navigate to the project directory.
  2. Ensure you have Python installed with the necessary packages.
  3. Use the following command to run the program:
    python -m topsis_Akshat_102203644.topsis <InputDataSet.csv> <Weights> <Impacts> <ResultFile.csv>
    

You can access my package through this link

Input dataset

TOPSIS Example

Weights used

[1,1,1,1,1]

Impacts used

[0,1,1,0,1]

1 for benifit

0 for cost

Output

Result

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_akshat_102203644-1.2.5.tar.gz (3.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_akshat_102203644-1.2.5-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file topsis_akshat_102203644-1.2.5.tar.gz.

File metadata

  • Download URL: topsis_akshat_102203644-1.2.5.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for topsis_akshat_102203644-1.2.5.tar.gz
Algorithm Hash digest
SHA256 ec0c983f24852264f14a2dabacc53cb329c1eea0f454819c1998bee8e3b6926d
MD5 3890ef1779af1a4b924f5ff0b60c9b7b
BLAKE2b-256 71102bb4557c758a859619debba63ddf94161776cd41671e0e87db242c51c912

See more details on using hashes here.

File details

Details for the file topsis_akshat_102203644-1.2.5-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_akshat_102203644-1.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c9aac3bce39261798b42468d1aaeec05f7f6e89033565a383bbc61ef56930471
MD5 2e24fa967727d38ebadc9e2898e2ac39
BLAKE2b-256 93e6bd1ea873b8009bbac37d1b546cbc0b854d5b2707bf158689f2d3265e3e70

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