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>
    

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

topsis_Akshat_102203644-1.1.5-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for topsis_Akshat_102203644-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c83d4f80b73335407ea69685965da2a29ad324db95e0e52fee9929fc8f9cf8c6
MD5 4a2ae9c36c9997c807d9210ae1dbbf16
BLAKE2b-256 8ed03d3f94f0bc08c585cba2e42290ef6d6b85acf772d63f7938da04f972b0ed

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