Skip to main content

Perform TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) analysis on a dataset.

Project description

Topsis-Garima-102203385

It performs TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) analysis on a given dataset.

Installation

pip install Topsis-Garima-102203385

How to use it?

Open the terminal and type the following command:

topsis <input_file> <weights> <impacts> <output_file>


<input_file>: Path to the input CSV file.
<weights>: Comma-separated weights for each criterion (e.g., 1,2,3).
<impacts>: Comma-separated impacts for each criterion (e.g., +,+,-).
<output_file>: Path to save the result CSV file.


Example:

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


Input File Format:

The input file must have at least three columns:

  • The first column contains object names.
  • The remaining columns contain numeric criteria values.


Example input file (data.csv):

Object Criteria1 Criteria2 Criteria3
A 250 16 12
B 200 20 15
C 300 14 18


Output File Format:

The output file will include:

  • Topsis Score: Calculated for each object.
  • Rank: Objects ranked based on their Topsis scores.


Example output file (result.csv):

Object Criteria1 Criteria2 Criteria3 Topsis_Score Rank
A 250 16 12 0.78 1
B 200 20 15 0.52 3
C 300 14 18 0.68 2

License

© 2025 Garima Ahuja

This repository is licensed under the MIT license. See LICENSE for details.

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_garima_102203385-1.0.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Garima_102203385-1.0.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file topsis_garima_102203385-1.0.1.tar.gz.

File metadata

  • Download URL: topsis_garima_102203385-1.0.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for topsis_garima_102203385-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5429a310aef49f96884e230a84c6ca91fe20c48a42f5ee85e31f9a27db054e0d
MD5 68340540dbb787fcebaa27ccf3672110
BLAKE2b-256 cef60b71c4355d2f9a11bb92c7106b4e6d806cea7f6fc786503bcc7b3e8393e6

See more details on using hashes here.

File details

Details for the file Topsis_Garima_102203385-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Garima_102203385-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1138100f2363affb48c4e2752855b04a8803f69e48f0176317de897a659c297d
MD5 95c8e0d73295b9826f1ba263e2efdd66
BLAKE2b-256 dd7137b486e94a655fc4e590be45a7bf6ced364e5d3232b485e8d503306e5a76

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