Skip to main content

Topsis-Samarjeet-102103145

Project description

Project Description

for: Assignment-1 (UCS654) submitted by: Samarjeet Singh Gandhi Roll no: 102103145 Group: 3COE5

Topsis-Samarjeet-102103145 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-Samarjeet-102103145

How to use it?

Enter csv filename followed by .csv extension, then enter the weights vector with vector values separated by commas, followed by the impacts vector 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.68 0.46 4 52.7 14.46

M2 0.61 0.37 6.9 51.5 14.85

M3 0.61 0.37 4.4 53.5 14.72

M4 0.7, 0.49 6 54.5 15.42

M5 0.65 0.42 4.1 68.7 18.47

M6 0.62 0.38 3.6 36.4 10.25

M7 0.92 0.85 5.2 44.6 12.89

M8 0.81 0.66 3.7 35.9 10.27

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

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

input

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

output

result.csv

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

M1,0.68,0.46,4.0,52.7,14.46,0.5903064989592446,4.0

M2,0.61,0.37,6.9,51.5,14.85,0.5408709514358343,5.0

M3,0.61,0.37,4.4,53.5,14.72,0.5933191124418361,3.0

M4,0.7,0.49,6.0,54.5,15.42,0.4714313335411608,7.0

M5,0.65,0.42,4.1,68.7,18.47,0.3803866453639049,8.0

M6,0.62,0.38,3.6,36.4,10.25,0.9855303249104818,1.0

M7,0.92,0.85,5.2,44.6,12.89,0.5209148114910495,6.0

M8,0.81,0.66,3.7,35.9,10.27,0.7535236734320149,2.0

Other Notes

  1. 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.

  2. Make sure the csv does not contain categorical values

License

© 2024 Samarjeet Singh Gandhi

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-Samarjeet-102103145-1.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Samarjeet_102103145-1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Samarjeet-102103145-1.1.tar.gz.

File metadata

File hashes

Hashes for Topsis-Samarjeet-102103145-1.1.tar.gz
Algorithm Hash digest
SHA256 ea6ad8fb1e7ecd8fe9e542b588efa8041092f611fee8870c33c3a8548b0c0074
MD5 5577c4e5f05df54802716daa7f571b31
BLAKE2b-256 b2feb3b35cbaa767957b82524ff4d366c64a23739b984b13705e783b08582524

See more details on using hashes here.

File details

Details for the file Topsis_Samarjeet_102103145-1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Samarjeet_102103145-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ddb4cbc19d01c11d496f662c80efafb1e53f77d3c5ad826a86ef85d61b00fabb
MD5 6599532d68ea25908e0c2514ca70bbb3
BLAKE2b-256 a9c24402cf26479c9a8e7a6051094f4bccd7d006cc314cd0261df7b0b5bbf0af

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