Skip to main content

A Python package for TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution)

Project description

TOPSIS-102203313-Aryan_Chharia

Description

This package implements the Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) method. TOPSIS is a multi-criteria decision analysis method that helps in ranking alternatives based on multiple criteria.

Installation

pip install Topsis-102203313-Aryan_Chharia

Usage

The package can be used from the command line:

topsis-aryan <InputDataFile> <Weights> <Impacts> <ResultFileName>

Arguments:

  1. InputDataFile: CSV file containing the decision matrix
    • First column: Object/Alternative names
    • Second column onwards: Criteria values (numeric)
  2. Weights: Comma-separated weights for criteria (e.g., "1,1,1,2")
  3. Impacts: Comma-separated impacts for criteria ('+' for benefit, '-' for cost) (e.g., "+,+,-,+")
  4. ResultFileName: Name of the output CSV file

Example:

topsis-aryan data.csv "1,1,1,2" "+,+,-,+" result.csv

Input File Format:

The input CSV file should look like this:

Fund Name,P1,P2,P3,P4
M1,0.85,0.72,4.6,42
M2,0.65,0.66,4.8,53
M3,0.90,0.77,4.5,38

Output:

The program will create a result CSV file with additional columns:

  • Topsis Score
  • Rank

License

MIT License

Author

Aryan Chharia

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_102203313_aryan_chharia-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

File details

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

File metadata

File hashes

Hashes for topsis_102203313_aryan_chharia-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e2a6d36e6cd4911e8ee04d2950b6d3ea6777b7c159539bc1994cbbef6c4c78b3
MD5 d2d9b6cf2c3480c685f04df0fa3e2bfe
BLAKE2b-256 7647e6b53415a9ab9f15e68729d5d26c46a2e9d02cdd7fc5572d8c5fe8d63f1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Topsis_102203313_Aryan_Chharia-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d92d6990cd62dc316cb1ae2e9c20b52f03daac57d6b0a8c9fd52987ee4502752
MD5 d931b90485a3bde061f33f5fac5ea188
BLAKE2b-256 44aa07260dc8b13f0926cddf87f633ef205f3b72368cf62b7c4f936338c1f9d2

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