Skip to main content

Calculate Topsis score and save it in a csv file

Project description

#Project description ##TOPSIS What is TOPSIS? Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) came in the 1980s as a multi-criteria-based decision-making (MCDM) method. TOPSIS chooses the alternative of shortest the Euclidean distance from the ideal solution and greatest distance from the negative ideal solution.

##How to Install this Package? pip install Topsis-Eshita-102003522

##How to Run this Package? topsis

Eg. topsis /Users/Eshita/Desktop/102003522-data.csv "1,1,1,1,1" "+,+,-,+,+" /Users/Eshita/Desktop/result.csv

##Constraints Applied Number of parameters should be correct i.e. 5. Print error message if input file doesn't exist. The impacts and weights should be comma separated. Impacts should only have +ve or -ve symbols. Number of columns in the input csv file should be more or equal to 3. The 2nd to last columns should be in numeric data type. Number of weights, impacts and columns should be equal. Input File Fund Name P1 P2 P3 P4 P5 M1 0.75 0.56 6.3 51.1 14.68 M2 0.82 0.67 4.2 41.2 11.72 M3 0.89 0.79 6.5 40.2 12.1 M4 0.92 0.85 5.8 49.7 14.32 M6 0.72 0.52 5.3 61.1 16.91 M7 0.69 0.48 3.6 57.9 15.67 M8 0.92 0.85 5.7 31.2 9.67 Output File Fund Name P1 P2 P3 P4 P5 TOPSIS Score Rank M1 0.32 0.29 0.39 0.36 0.37 0.3655 8 M2 0.35 0.34 0.26 0.29 0.29 0.55 2 M3 0.38 0.41 0.41 0.28 0.30 0.48 5 M4 0.39 0.44 0.36 0.35 0.36 0.57 1 M5 0.33 0.30 0.41 0.39 0.39 0.39 7 M6 0.31 0.27 0.33 0.43 0.42 0.44 6 M7 0.29 0.25 0.22 0.41 0.39 0.50 4 M8 0.39 0.44 0.36 0.22 0.24 0.53 3 License MIT

##Written By Name : Eshita Arora Roll No. : 102003522

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-Eshita-102003522-0.1.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distributions

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

topsis_Eshita_102003522-0.1.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

Topsis_Eshita_102003522-0.1.2-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file topsis-Eshita-102003522-0.1.2.tar.gz.

File metadata

  • Download URL: topsis-Eshita-102003522-0.1.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for topsis-Eshita-102003522-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2fcff674ba1666417285d1c893dfefcc11e2de20166a4b25b803dfac0be7da47
MD5 bb288d77f2d6adf5d1f75d6dfa3e39fe
BLAKE2b-256 2ca81af52988be547bab1ccaa49e6784637c461a8a4674b49cac056110428cab

See more details on using hashes here.

File details

Details for the file topsis_Eshita_102003522-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_Eshita_102003522-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e35240a65108b59e8afc8e64bec5e028e00cad412200015a00ac49fd7cac09de
MD5 0244235b1d7ecb1bef69a4ce7ff47771
BLAKE2b-256 d4f9a930675e0bd5c7b74363c54a9e2380b176523dc485c06aaff88ab6559493

See more details on using hashes here.

File details

Details for the file Topsis_Eshita_102003522-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Eshita_102003522-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fae2e104537baabebfc433d9ac63d9f8dcacb15d84a5a8121ec0a41d04f4793c
MD5 1f27b997581708f6116a4a44acb247c9
BLAKE2b-256 b0919e49c3e46082963d310cd7a79ea195548c5d7110f8d2b0ebd815fcf9b251

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