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
Hashes for Topsis-Ishaan-101903137-1.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5e8b18f5dc365da2f14d9e069eac8a147f32b83f8807690d8b39dd03a2e8f7d |
|
MD5 | c0742b10c0983051ef20d9c83542d35d |
|
BLAKE2b-256 | 1fdb33d4b48ac65af6b25153927503196c427ea4fec01437e9c8ca7e57d38db5 |