A Python package implementing TOPSIS technique.
Project description
TOPSIS-Python
Submitted By: Yoshna Marwaha
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-Yoshna-101903502 can be run as in the following example:
In Command Prompt
topsis data.csv "1,1,1,1" "+,+,-,+" output.csv
In Python IDLE:
import pandas as pd from topsis_py.topsis import topsis dataset = pd.read_csv('data.csv').values d = dataset[:,1:] w = [1,1,1,1] im = ["+" , "+" , "-" , "+" ] topsis(d,w,im,output.csv)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file Topsis-Yoshna-101903502-1.0.0.tar.gz.
File metadata
- Download URL: Topsis-Yoshna-101903502-1.0.0.tar.gz
- Upload date:
- Size: 3.2 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/3.10.0 keyring/22.3.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a0386610ad80419463362866c991c09f4fe3e3dba4f715df4c29ca993b665b2
|
|
| MD5 |
f01f19edc4ad76c0aafeb14876e2252c
|
|
| BLAKE2b-256 |
23103fd2f5ba41f7990aa17dd68a2adefbfbaa88fb2333fc8519cc265b92f9b8
|