Skip to main content

A Python package for TOPSIS MCDM problems

Project description

TOPSIS-Khushnoor-102303219

Project: UCS654 Project 1
Submitted by: Khushnoor Kaur
Roll No: 102303219

TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) is a multi-criteria decision-making (MCDM) method used to rank alternatives based on their distance from the ideal best and ideal worst solutions.


Installation

pip install topsis-khushnoor-102303219

Usage

This package provides a command-line tool called topsis.

topsis <InputDataFile> <Weights> <Impacts> <OutputResultFileName>

Example

topsis sample.csv "1,1,1,2" "+,+,-,+" result.csv

Input Format

The input file must be a CSV file with:

  • First column as alternative names
  • Remaining columns as numerical criteria

Sample Input (sample.csv)

Model Storage space Camera Price Looks
M1 16 12 250 5
M2 16 8 200 3
M3 32 16 300 4

Output

The output file will contain the original columns plus the Topsis Score and Rank.

P-Score Rank
0.534277 2
0.308368 3
0.691632 1

Other notes:

  • The first column (alternatives) is ignored during TOPSIS computation.
  • All criteria values must be numerical.
  • Weights and impacts must match the number of criteria.
  • Impacts must be either + (benefit) or - (cost).

License:

MIT

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_khushnoor_102303219-1.1.1.tar.gz (3.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_khushnoor_102303219-1.1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file topsis_khushnoor_102303219-1.1.1.tar.gz.

File metadata

File hashes

Hashes for topsis_khushnoor_102303219-1.1.1.tar.gz
Algorithm Hash digest
SHA256 8a3a0e3a47331640bb327a27d60b76962a1abee473156c74ecc0c1f9d5a968bb
MD5 468a3bc863198c5ef06a8c972473f4df
BLAKE2b-256 eb30c8ec09cd4510208bafc6dc847de0b1fce9337230fab6ea95ad6f72ded162

See more details on using hashes here.

File details

Details for the file topsis_khushnoor_102303219-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_khushnoor_102303219-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cb535002dbb9ee50ce307bd537f3fc8a9986d74b70ce839a31cafe3dd8df4135
MD5 ee342672af1f424f2227c5e576e4d8c3
BLAKE2b-256 955124068cfeb1a629612a4e7ca28821c2528d2e53799a7ef082dc7418d4ed81

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