Skip to main content

A Python package for TOPSIS multi-criteria decision making

Project description

Topsis-Gurshaan-Bajwa-102303264

By Gurshaan Bajwa (Roll No: 102303264)

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


Installation

pip install Topsis-Gurshaan-Bajwa-102303264

Input File Format

First column: Alternatives
Remaining columns: Numeric criteria

Example CSV:

Model Storage Camera Price Looks
M1 16 12 250 5
M2 16 8 200 3
M3 32 16 300 4
M4 32 8 275 4
M5 16 16 225 2

Weights and Impacts

Weights vector:

0.25,0.25,0.25,0.25

Impacts vector:

+,+,-,+

Command Line Usage

topsis <inputfile> <weights> <impacts> <outputfile>

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:

Model Score Rank
M1 0.534 3
M2 0.308 5
M3 0.692 1
M4 0.535 2
M5 0.401 4

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_gurshaan_bajwa_102303264-0.0.6.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file topsis_gurshaan_bajwa_102303264-0.0.6.tar.gz.

File metadata

File hashes

Hashes for topsis_gurshaan_bajwa_102303264-0.0.6.tar.gz
Algorithm Hash digest
SHA256 30486ead31f561f2e7ffed7fcecdecb355dbac87016f8c5146f17bafb81fcf82
MD5 af3df52897bb651835f4646c3dc1f72d
BLAKE2b-256 c835cd9c8010932873ac2898eed193c809496952b2f7544aa60db5f33cfd65d1

See more details on using hashes here.

File details

Details for the file topsis_gurshaan_bajwa_102303264-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_gurshaan_bajwa_102303264-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c7c6d2fcf8bcbf1bd82524aeaf83097537f0cf0ef5248b4565b8c99cf0bd00ff
MD5 273d84a08afc45ac81bd36eb2cd5fd40
BLAKE2b-256 2903cf20bab925c3eb81ad183291ecd461033b751d9f45b98cdfd0e054182858

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