Skip to main content

A Python package implementing the TOPSIS method

Project description

Topsis-Samdeep-102217183

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-Samdeep-102217183 

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

Samdeep Sharma Roll Number: 102217183

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

Uploaded Source

Built Distribution

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

topsis_SamdeepSharma_17183-0.0.1-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for topsis_samdeepsharma_17183-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c69c646afa1e6644af4dd7d1a0977d4b279b4838ba9aab9f33e419f008ae3f7d
MD5 2ccdaf8395cc47bc090f6b084fbc0abb
BLAKE2b-256 2fbca40cf87a6b32e00be0d53ad8b569048c81a45449abe45a2fee6bff1eb38d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topsis_SamdeepSharma_17183-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 35b23a6ec492fb726613a88cf770e2366fb3497996933e0e5ab366cefcad2f3d
MD5 dc61c9eac8d26c272ce750afb9991449
BLAKE2b-256 0b0cab77311dd53b38a5f37894ecb76a9f0ba199b1f4af4af0c2b80e07ad0808

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