Skip to main content

TOPSIS method for multi-criteria decision making

Project description

topsis_rupanshi_102017010

TopsisPy is a Python Package implementing Topsis method used for multi-criteria decision analysis. Topsis stands for 'Technique for Order of Preference by Similarity to Ideal Solution'.

Installation

Install the Package using the command -

$ pip install topsis_rupanshi_102017010

Usage

python -m topsis_rupanshijain_102017010.topsis102017010 <InputDataFile> <Weights> <Impacts> <ResultFileName>

Example

Fund Name P1 P2 P3 P4 P5
M1 0.94 0.88 3.8 40.8 11.61
M2 0.77 0.59 5.6 45.4 13.09
M3 0.8 0.64 7 57.7 16.54
M4 0.67 0.45 3.1 61.6 16.46
M5 0.89 0.79 5.9 67.7 18.82
M6 0.66 0.44 6.2 62.1 17.35
M7 0.73 0.53 6.6 34.5 10.59
M8 0.91 0.83 3.2 55.3 15.06
weights : [1, 1, 1, 2, 1]
impacts : [+, +, -, +, +]

input: 102017010.csv

python3 -m topsis_rupanshijain_102017010.topsis102017010 102017010.csv "1,1,1,2,1" "+,+,-,+,+" 102017010-result.csv

output: 102017010-result.csv

Fund Name P1 P2 P3 P4 P5 Performance Score Rank
M1 0.94 0.88 3.8 40.8 11.61 0.47123375880088600 6
M2 0.77 0.59 5.6 45.4 13.09 0.33633254123378100 7
M3 0.8 0.64 7.0 57.7 16.54 0.5217872008890350 5
M4 0.67 0.45 3.1 61.6 16.46 0.6239838869195070 3
M5 0.89 0.79 5.9 67.7 18.82 0.7322985618518600 1
M6 0.66 0.44 6.2 62.1 17.35 0.5354177643750590 4
M7 0.73 0.53 6.6 34.5 10.59 0.09985769514278550 8
M8 0.91 0.83 3.2 55.3 15.06 0.706943829440074 2

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

Free Software, Hell Yeah!

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_rupanshijain_102017010-1.1.1.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file topsis_rupanshijain_102017010-1.1.1.tar.gz.

File metadata

File hashes

Hashes for topsis_rupanshijain_102017010-1.1.1.tar.gz
Algorithm Hash digest
SHA256 5b27fa03564652d4821b36f972efa2328984a218027f71da360971463ca9db60
MD5 890c047a371ae41a1d7a8b7656bd68f9
BLAKE2b-256 bc47e29bcd3668849f51da87d6fe64f9c254b77e2c98d0805e64146f784389a8

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