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.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_Akshat_102203644-1.1.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: topsis_akshat_102203644-1.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 78d4e0f8a306b6633f1f2e57e35f196a9ad94a550d5b3f79fd902f209372809e
MD5 05dc0db0f21ce619209f49fe01231e1c
BLAKE2b-256 98dfedbba2ffdd92858870b615586d27604bb6bd0cf655afdf82dad57233fff5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topsis_Akshat_102203644-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9158f3b3400b2ea6d4c650bd2c984981e052626c80e8e32c2a3167ce425bf019
MD5 3b48eb9b6a69b81cf5a274d3da9ba0e8
BLAKE2b-256 79d3ce2f8befecb6866913746b7fdc60368974a93772d953f61673d024a6bc42

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