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 topsis.py <InputDataSet.csv> <Weights> <Impacts> <ResultFile.csv>
    

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.1.0.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_Akshat_102203644-1.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: topsis_akshat_102203644-1.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for topsis_akshat_102203644-1.1.0.tar.gz
Algorithm Hash digest
SHA256 338f7e18e101ac909d1bb00c9685974ca0aaa9e6f67cb1b8da50d05002aa5a95
MD5 320825b769a0f70bf4a29c34e90bf479
BLAKE2b-256 4121cf1e4b86ffc70f2797f092e310a44276fd96accd1deb2ef2285e7be5feaf

See more details on using hashes here.

File details

Details for the file topsis_Akshat_102203644-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_Akshat_102203644-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d4ee555d4fc4b8f7fd7e78149fcf042f7c3a79eea6e80674fcf6965d1ac5607a
MD5 4512225959212f97748011e8d7468ca8
BLAKE2b-256 70834bd1a9d9f80640eb60e5225c0c51016a49b33e28d9581b30103f6f8ca3a8

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