Skip to main content

A Python package implementing TOPSIS technique.

Project description

TOPSIS-Python

Submitted By: YASHWARDHAN RATHORE 101917117 ASSIGNMENT 4


What is TOPSIS

Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) originated in the 1980s as a multi-criteria decision making method. TOPSIS chooses the alternative of shortest Euclidean distance from the ideal solution, and greatest distance from the negative-ideal solution. More details at wikipedia.


How to use this package:

TOPSIS-YASHWARDHAN_RATHORE_101917117 can be run as in the following example:

In Command Prompt to run the code:

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

Sample dataset

The decision matrix (a) should be constructed with each row representing a Model alternative, and each column representing a criterion like Fund Name , P1 ,P2 , P3 , P4 , P5.

M1| 0.8 |0.64 |3.5 |37.5 |10.61 M2| 0.86 |0.74 |3.4 |42.2 |11.8 M3| 0.69 |0.48 |5.7 |70 |19.22 M4| 0.65 |0.42 |5.7 |65.5 |18.07 M5| 0.9 |0.81 |6.6 |39.1 |11.85 M6| 0.76 |0.58 |4 |53.5 |14.71 M7| 0.69 |0.48 |6.2 |51.3 |14.67 M8| 0.65 |0.42 |6 |50.2 |14.32


Output

Row_NO	Performance_score	Rank
1	0.436737	7
2	0.389937	8
3	0.56565	4
4	0.590487	3
5	0.522924	5
6	0.4513	6
7	0.637889	1
8	0.635536	2


The rankings are displayed in the form of a table using a package 'tabulate', with the 1st rank offering us the best decision, and last rank offering the worst decision making, according to TOPSIS method.

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

Uploaded Source

Built Distribution

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

topsis_10191117_1yash-1.0.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: topsis_10191117_1yash-1.0.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.59.0 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9

File hashes

Hashes for topsis_10191117_1yash-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3c0a12d8be8c8ba14f6693a80d182bd81338b591b73208dbfa1bb53cc4bc945c
MD5 f552175de4be3d762ac0a000df6e073a
BLAKE2b-256 35a16c9b0eca681b66a94c4abcc402a2c90f35d411dacc1b9a44cf49d8516037

See more details on using hashes here.

File details

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

File metadata

  • Download URL: topsis_10191117_1yash-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.59.0 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9

File hashes

Hashes for topsis_10191117_1yash-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 443645de37244140254c68ceea5ef2b9357f026d9e34a7e0c71cbebede134b40
MD5 7f398027e8148f615ade521e1fe114a6
BLAKE2b-256 775faa388752999bf169912277f045d6e4b3f0b2dae250e890501658331318e0

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