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. : Comma-separated weights for each criterion (e.g., 1,2,3). : 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: The output file will include:

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

Example output (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.0.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.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: topsis_garima_102203385-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 cf8a03f61456384ad81d0b5799dda9f6a8709fec40b4d787ba3a1e479c760a9e
MD5 453ba037d2e3d8268add0d6fb69fda09
BLAKE2b-256 1921b57fe0dd2a1e6382b2cd6aabb74aa1c49c4bb76d1be95ad0484f3305c40f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Topsis_Garima_102203385-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b2210c6d3f104846be301a9378272b2c27c111660cc46989e3a8af3b15bb974
MD5 cc1e366cd7a89a4869b67c8364a2408d
BLAKE2b-256 caf7667efdeebae0f013df4eae24f2a6d928d7f85da8b9b889b1c00c82dbc11b

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