Skip to main content

A Python package implementing the TOPSIS method

Project description

Topsis-Aryan-102217019

A Python package for implementing the Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) method, used for multi-criteria decision analysis.

Installation

pip install Topsis-Aryan-102217019 

Usage

The package can be used through command line:

topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>

Example

topsis data.xlsx "1,1,1,1,1" "+,+,+,+,+" output.csv

Input Format

  • Input File:
    • The file can be in CSV or Excel format (.csv or .xlsx).
    • The first column should contain the names of the objects/variables.
    • The remaining columns must contain numeric values only (criteria values).

Parameters

  1. : The input file name along with its path (e.g., data.csv or data.xlsx).
  2. : A comma-separated string of numeric weight values for each criterion (e.g., "1,1,1,1").
  3. : A comma-separated string of + or - symbols, indicating whether the criterion is beneficial (+) or non-beneficial (-) (e.g., "+,+,-,+").
  4. : The desired output file name including its path (e.g., output.csv).

Output

The output file (CSV format) will include:

All input data columns Additional columns: TOPSIS Score: The calculated score for each alternative. Rank: The rank of each alternative based on the TOPSIS score (higher score = better rank).

License

MIT License

Author

Aryan Sharma Roll Number: 102217019

If you have any questions or suggestions, feel free to reach out!

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_aryan_7019-0.0.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

topsis_Aryan_7019-0.0.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file topsis_aryan_7019-0.0.1.tar.gz.

File metadata

  • Download URL: topsis_aryan_7019-0.0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for topsis_aryan_7019-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ae2e9ac11abf4a8873ab767cf8e03e562a38d1912d41db5b5b085672aaf8fb2e
MD5 e2adcc9cbdbae22f50c1abd7d19ef104
BLAKE2b-256 a73a8ed51132fd5b5d20c2d73ad59a891e6a6fc3ab29f102198ed747d207cfb4

See more details on using hashes here.

File details

Details for the file topsis_Aryan_7019-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_Aryan_7019-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0dc74b5bf4f7592bfc863d016dbecee06fe10ab42d375bc9790104973368a2ac
MD5 ef00f2bac8d893d0b10944b4bf27f7a8
BLAKE2b-256 f89a2da41aed1d9a5a603cd8a1806311646b3ad13a4da390fc60e1bde9eeb1bb

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