Skip to main content

TOPSIS package for Multi-Criteria Decision Making

Project description

By Harsaihaj Singh (Roll No: 102303957)

This Python package implements the TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) method for solving Multi-Criteria Decision Making problems.


Installation

pip install Topsis-Harsaihaj-102303957


Input File Format

First column: Alternatives
Remaining columns: Numeric criteria

Example CSV:

Device Battery Performance Cost Weight
D1 4000 7 300 1.8
D2 4500 6 280 2.0
D3 4200 8 350 1.9
D4 3800 5 260 1.7
D5 4600 7 310 2.1

Weights and Impacts

Weights vector: 0.25,0.25,0.25,0.25

Impacts vector: +,+,-,-


Command Line Usage

topsis

Example:

topsis sample.csv "0.25,0.25,0.25,0.25" "+,+,-,-" result.csv


Output File Example

Result CSV will contain Topsis Score and Rank:

Device Score Rank
D1 0.562 2
D2 0.431 4
D3 0.688 1
D4 0.317 5
D5 0.501 3

Higher score means better alternative.


Error Handling

Program validates:

File existence
Numeric values
Correct weights count
Correct impacts
Invalid symbols


Conclusion

TOPSIS helps rank alternatives based on multiple criteria and is useful in decision-making problems.

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_harsaihaj_123456-1.0.6.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

topsis_harsaihaj_123456-1.0.6-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file topsis_harsaihaj_123456-1.0.6.tar.gz.

File metadata

  • Download URL: topsis_harsaihaj_123456-1.0.6.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for topsis_harsaihaj_123456-1.0.6.tar.gz
Algorithm Hash digest
SHA256 8ed48b3071fa681d5714c22ad1c0bc5e274e93cf831a222e7e40503dfc2692bb
MD5 5f184a98eae6db3983187e68228360da
BLAKE2b-256 667274ee2c1cfd578b92c0c992c3ce3f6d9c5781e5e4323e948ad198f6644695

See more details on using hashes here.

File details

Details for the file topsis_harsaihaj_123456-1.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_harsaihaj_123456-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 793e74114b23dfe0a0c139c5d547f22b967d1a087b61fbc9a952354623576bc2
MD5 f77d899a44653d0daaf11e81007ee023
BLAKE2b-256 745277e3d1c61d34015f1b6db0b2ad3e3ebd55eedfcb01efa18ec4e1249e9caf

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