Skip to main content

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

Project description

Topsis-Shantanu-102353013

A Python package to implement the TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) decision-making algorithm.

Installation

pip install Topsis-Shantanu-102353013

Usage

This package can be used via the command line.

Command Line Interface

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

Arguments:

  1. InputDataFile: Path to the input CSV file.
    • The first column should contain the object/alternative names (e.g., Fund Name, Model Name).
    • From the 2nd to the last column, the file must contain numeric values.
  2. Weights: A comma-separated string of weights (e.g., "1,1,1,2").
  3. Impacts: A comma-separated string of impacts, either '+' or '-' (e.g., "+,+,-,+").
  4. ResultFileName: The name of the output CSV file to save the results.

Example

topsis data.csv "1,1,1,1" "+,+,+,+" result.csv

Output

The output file will contain the original data with two additional columns:

  • Topsis Score: The calculated performance score.
  • Rank: The rank of the alternative.

License

This project is licensed under the MIT License.

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

Uploaded Source

Built Distribution

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

topsis_shantanu_102353013-1.0.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for topsis_shantanu_102353013-1.0.0.tar.gz
Algorithm Hash digest
SHA256 973f94a284decb175f0b8bfb00e5e2ea458e8fcfc912278485e9bcb8c8ec6105
MD5 417f6f0459bb7dd21b81826b4508608e
BLAKE2b-256 5c6f6b2ea70a4dca48e91f5e93ddb329baca13bda3e8bb481f311ddb97b26e00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topsis_shantanu_102353013-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 843dcc727cce9ee58d8548c22a06e054e9000fddaeb08651ee69c692ccaf60a4
MD5 d02231de153ac33a3ba22a27ced7ea44
BLAKE2b-256 aceca8cad125b4b68d10b91aff9d8f5e6cfb5fa484b3badab500a3fb3bb84c0a

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