Skip to main content

No project description provided

Project description

TOPSIS Command Line Tool

By Ashpreet Singh (Roll No: 102303263)

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-Ashpreet-102303263


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

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_ashpreet_102303263-1.0.2.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_ashpreet_102303263-1.0.2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file topsis_ashpreet_102303263-1.0.2.tar.gz.

File metadata

File hashes

Hashes for topsis_ashpreet_102303263-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ea4de9dbb9e98e3f290c4f4630e2734826ec4e62af322faeaa53d30e43191302
MD5 ba9617a2eefb13e1312019dae152cf9a
BLAKE2b-256 935d64e04300c7fa74202f932f73b536a8e0e9abfff652d4858f4a6b13d69777

See more details on using hashes here.

File details

Details for the file topsis_ashpreet_102303263-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_ashpreet_102303263-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9c28e4290666aea4e8f0489e379711e06f507556dbf18cc8654a109e05a58de4
MD5 82a7d3747893921686542d089ded1c7b
BLAKE2b-256 e4fd70baf77b9e8876b13bae780137bce0846030744483062c295137a3a8031a

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