Skip to main content

Topsis-Aryan-102103140

Project description

#Project Description

for: Assignment-1 (UCS654) submitted by: Aryan Gupta Roll no: 102103140 Group: 3COE5

Topsis-Aryan-102103140 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

pip install Topsis-Aryan-102103145

How to use it?

Enter csv filename followed by .csv extension, then enter the weights separated by commas, followed by the impacts with comma separated signs (+,-) and then the csv filename in which you want to store the result by .csv extension .

Topsis sample.csv "1,1,1,2,2" "+,+,-,+,+" result.csv

#Example

sample.csv

Fund Name,P1,P2,P3,P4,P5

M1,0.93,0.86,6.9,32.1,10.2

M2,0.73,0.53,5.5,36.9,10.92

M3,0.77,0.59,3.7,34.5,9.89

M4,0.61,0.37,3.6,54.7,14.82

M5,0.73,0.53,7,57.3,16.39

M6,0.67,0.45,6.3,46.4,13.46

M7,0.93,0.86,3.6,55.6,15.25

M8,0.8,0.64,5.1,40.9,11.86

M8 0.81 0.66 3.7 35.9 10.27

weights vector = [ 1,1,3,2,2 ]

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

input

Topsis sample.csv "1,1,3,2,2" "+,+,-,+,-" result.csv

output

result.csv

Fund Name,P1,P2,P3,P4,P5,Topsis Score,Rank

M1,0.93,0.86,6.9,32.1,10.2,0.6568246813608912,3.0

M2,0.73,0.53,5.5,36.9,10.92,0.7507442242528632,2.0

M3,0.77,0.59,3.7,34.5,9.89,0.834669716472082,1.0

M4,0.61,0.37,3.6,54.7,14.82,0.38659050631435843,6.0

M5,0.73,0.53,7.0,57.3,16.39,0.20489354804132592,8.0

M6,0.67,0.45,6.3,46.4,13.46,0.47228704243057956,5.0

M7,0.93,0.86,3.6,55.6,15.25,0.25781450881467294,7.0

M8,0.8,0.64,5.1,40.9,11.86,0.6235072426142194,4.0

#Other Notes

  1. The first column and first row are removed by the library before processing, in attempt to remove indices and headers. Make sure the csv follows the format as shown in sample.csv.

  2. Make sure the csv does not contain categorical values

License

© 2024 Aryan Gupta

This repository is licensed under the MIT license.

See LICENSE for details.

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-Aryan-102103140-1.1.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

Topsis_Aryan_102103140-1.1.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Aryan-102103140-1.1.2.tar.gz.

File metadata

File hashes

Hashes for Topsis-Aryan-102103140-1.1.2.tar.gz
Algorithm Hash digest
SHA256 4b8c82ce454bbbd96711274703915917f9dc083c8c6db5b6c3c4c37174a1d297
MD5 f5f46b1caa50680e068fdfe47750301c
BLAKE2b-256 9a708415bb6cc973d3da21d51d91a18438249ff6d5296cb487939c29a9ac26df

See more details on using hashes here.

File details

Details for the file Topsis_Aryan_102103140-1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Aryan_102103140-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 37b5278ef8baeaad19ee853ceda2e03a28b5d69fbf3ed8f7745b8b1fc8b1bbbb
MD5 210fe2798096468a9fa8da5767ab7780
BLAKE2b-256 f77a7b2f62b3f9150e154470b89cfb0aefb019763d0f45efc3d989649f6ad3ad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page