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 package implements the Technique for Order Preference by Similarity to Ideal Solution (TOPSIS). It ranks alternatives based on multiple criteria while considering their weights (importance) and impacts (benefit or cost).

Features

  • Input Validation: Ensures the dataset, weights, and impacts are correctly formatted.
  • Error Handling: Handles invalid data, incorrect parameters, and file-related issues gracefully.
  • Outputs: Generates a CSV file with scores, rankings, and original data columns.

How to Use

  1. Clone the repository and navigate to the project directory.
  2. Ensure Python is installed with the required libraries.
  3. Run the program using the following command:
    python -m topsis_Navyaa_102203376.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 Distribution

topsis_navyaa_102203276-1.0.0.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_Navyaa_102203276-1.0.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file topsis_navyaa_102203276-1.0.0.tar.gz.

File metadata

  • Download URL: topsis_navyaa_102203276-1.0.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.1

File hashes

Hashes for topsis_navyaa_102203276-1.0.0.tar.gz
Algorithm Hash digest
SHA256 10dd1d8545cacd719ac45181f8a0691e770ce05f3052495afb6712ef5dc2ff10
MD5 cec970295e302ae1c0c1ed9dc992dbc0
BLAKE2b-256 28181a6c93c4fc8a917e7fff98fca9c9c531bf88b141161d29b214d4ae84e202

See more details on using hashes here.

File details

Details for the file topsis_Navyaa_102203276-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_Navyaa_102203276-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f852b1d5b1a65667e9761915e1ca1fce6d482916c725b6594a0a0d1b50737c64
MD5 5bae43223d0e2cd9f5db60798a53a47b
BLAKE2b-256 0ea78904d28c70f33e990647caa8a3f7ad82f0a19a1f52e265d0cc0550c5c85b

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