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 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_AryanSharma_7019-0.0.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for topsis_AryanSharma_7019-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 534627fd129b438e52d467b51d591f8e01aebef3a24120fab2fe3ea7d31fc108
MD5 70c5f71edd3b93d1e60d00be396d9f9f
BLAKE2b-256 75eb181d07c4342a0a8c2c92ffa47b89d8d87ce2c24d2f20d18b6d73a1c6b7f7

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