Skip to main content

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

Project description

Topsis-Hardik-102303945

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

Installation

pip install Topsis-Hardik-102303945

Usage

This package can be used via the command line.

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

Arguments

  1. InputDataFile: Path to the input CSV file containing data.
    • First column should be the name/ID of the alternative.
    • Other columns must be numeric.
  2. Weights: Comma-separated numbers representing weights for each criterion (e.g., "1,1,1,2").
  3. Impacts: Comma-separated signs ('+' or '-') representing the impact of each criterion (e.g., "+,+,-,+").
  4. ResultFileName: Path where the result CSV will be saved.

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 ranking of the alternative.

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

Uploaded Source

Built Distribution

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

topsis_hardik_102303945-1.0.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: topsis_hardik_102303945-1.0.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for topsis_hardik_102303945-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a8c9893d29031f5a887904b2c78c516103003bd73a13674b4054a33b7c093762
MD5 5b358c6db11eec62a58bf067a9242f57
BLAKE2b-256 778adac62871f6ed55415e830d8b0010a65318eb0674ce91532fa8c94f99882d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topsis_hardik_102303945-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0226d262567012580269808c713c36f869a0e84aef0d67e7fa6ec55f9f89f36d
MD5 3e606ee4482060ac6839036a27b515c9
BLAKE2b-256 c4832b744c76e1418c32b15f604033d13140a3e10cb2858b2dbd4aaa02fd87eb

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