Skip to main content

This is a Python library for handling problems related to Multiple Criteria Decision Making(MCDM)

Project description

TOPSIS

Title: TOPSIS method for multiple-criteria decision making (MCDM).

Version: 1.0.0.

Author: Rohit Thapar.

Description: Evaluation of alternatives based on multiple criteria using TOPSIS method.


How to install this package:

>> pip install topsis-rohitThapar-102003482

In Command Prompt

>> topsis data.csv "1,1,1,1,1" "+,+,-,+,-" output.csv

Input file (data.csv)

Fund Name          P1        P2        P3        P4        P5    

0 M1 0.395818 0.419886 0.221712 0.485574 0.467084
1 M2 0.271291 0.196656 0.221712 0.485574 0.4624
2 M3 0.413607 0.457091 0.286079 0.45586 0.446787
3 M4 0.302422 0.244491 0.479183 0.28917 0.310695
4 M5 0.271291 0.196656 0.479183 0.226118 0.252928
5 M6 0.413607 0.457091 0.221712 0.226118 0.234713
6 M7 0.413607 0.457091 0.286079 0.28917 0.297164
7 M8 0.302422 0.244491 0.479183 0.226118 0.253969


Output file (result.csv)

Fund Name          P1        P2        P3        P4        P5    Topsis Score    Rank

0 M1 0.395818 0.419886 0.221712 0.485574 0.467084 0.924217 1 1 M2 0.271291 0.196656 0.221712 0.485574 0.4624 0.591977 3 2 M3 0.413607 0.457091 0.286079 0.45586 0.446787 0.864965 2 3 M4 0.302422 0.244491 0.479183 0.28917 0.310695 0.208741 6 4 M5 0.271291 0.196656 0.479183 0.226118 0.252928 0.0340168 8 5 M6 0.413607 0.457091 0.221712 0.226118 0.234713 0.530087 5 6 M7 0.413607 0.457091 0.286079 0.28917 0.297164 0.577036 4 7 M8 0.302422 0.244491 0.479183 0.226118 0.253969 0.110191 7


The output file contains columns of input file along with two additional columns having Topsis_score and Rank

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_rohitThapar_102003482-1.0.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

topsis_rohitThapar_102003482-1.0.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file topsis_rohitThapar_102003482-1.0.0.tar.gz.

File metadata

File hashes

Hashes for topsis_rohitThapar_102003482-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b79bd23004629de8b726234dd77e5354de482caa3a6090ce10b08e50dacd901c
MD5 6ec44e59cf6c894d2eb52b0d5a72e780
BLAKE2b-256 9a0124172bbe135e8ecb523bb442b6de99b11f04a9201213d611c39925b6fce1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topsis_rohitThapar_102003482-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 350138948e0d8337ea614541899d35fc5605a8865d299dadc774196d2eb16f45
MD5 af2456a695dce4cf0979470870f82107
BLAKE2b-256 c1933774e61673b1690596620ce55554e63ae45142b34a8b78b1327148ec1d28

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