A Python package implementing TOPSIS technique.
Project description
TOPSIS-Python
Submitted By: Ishaan 101903137
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-Ishaan-101903137 can be run as in the following example:
In Command Prompt
>> topsis data.csv "1,1,1,1" "+,+,-,+" output_file.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_file.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-Ishaan-101903137-1.1.3.tar.gz
.
File metadata
- Download URL: Topsis-Ishaan-101903137-1.1.3.tar.gz
- Upload date:
- Size: 4.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.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b5e8b18f5dc365da2f14d9e069eac8a147f32b83f8807690d8b39dd03a2e8f7d
|
|
MD5 |
c0742b10c0983051ef20d9c83542d35d
|
|
BLAKE2b-256 |
1fdb33d4b48ac65af6b25153927503196c427ea4fec01437e9c8ca7e57d38db5
|