Skip to main content

Performs TOPSIS

Project description

Project description

Topsis

for: Project-1 (UCS633) submitted by: Suvansh Gupta Roll no: 102103759 Group: 3COE27

Topsis-Suvansh-Gupta-102103759 is a Python library for dealing with Multiple Criteria Decision Making(MCDM) problems by using Technique for Order of Preference by Similarity to Ideal Solution(TOPSIS).

Installation

Use the package manager pip to install topsis.

pip install Topsis-Suvansh_Gupta-102103759

Usage

Enter csv filename followed by .csv extentsion, then enter the weights vector with vector values separated by commas, followed by the impacts vector with comma separated signs (+,-)

topsis sample.csv "1,1,1,1" "+,-,+,+" or vectors can be entered without " "

topsis sample.csv 1,1,1,1 +,-,+,+

But the second representation does not provide for inadvertent spaces between vector values. So, if the input string contains spaces, make sure to enclose it between double quotes (" ").

To view usage help, use

topsis /h

Example

sample.csv

A csv file showing data for different mobile handsets having varying features.

Model Storage (in gb) Camera (in MP) Price (in $) Looks (out of 5)
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 vector = [ 0.25 , 0.25 , 0.25 , 0.25 ]

impacts vector = [ + , + , - , + ]

input:

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

output:

      TOPSIS RESULTS
-----------------------------

    P-Score  Rank
1  0.534277     3
2  0.308368     5
3  0.691632     1
4  0.534737     2
5  0.401046     4

Other notes

The first column and first row are removed by the library before processing, in attempt to remove indices and headers. So make sure the csv follows the format as shown in sample.csv. Make sure the csv does not contain categorical values

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-Suvansh_Gupta-102103759-1.0.0.tar.gz (4.3 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-Suvansh_Gupta-102103759-1.0.0.tar.gz.

File metadata

File hashes

Hashes for Topsis-Suvansh_Gupta-102103759-1.0.0.tar.gz
Algorithm Hash digest
SHA256 822c6931496f0ebaa6c715e36ed62eaed04f1b67cf4ec27ea1034f61f33933c9
MD5 e0b64ef8dd7c49690a0adf71abb56114
BLAKE2b-256 f2da45d4e1633c62be6896140d8d36370e1f59eed2bb0d6c319e7f14bf70afc4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Topsis_Suvansh_Gupta_102103759-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a37603524c379768372246b8418c4ffff7a54de5a497a77be14f7797ac8585e0
MD5 e7070b60e4ef87254411a19c029d7167
BLAKE2b-256 769a9ef9728f4b2c59e4b338e161f11b5fb96d49e24ab37564273845c4282e34

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