Metadata-Version: 2.1
Name: Topsis-Ishaan-101903137
Version: 1.1.3
Summary: A Python package implementing TOPSIS technique.
Home-page: UNKNOWN
Author: Ishaan Bajaj
Author-email: ibajaj1_be19@thapar.edu
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
License-File: LICENSE.txt

# TOPSIS-Python

Submitted By: **Ishaan 101903137**

---

## What is TOPSIS

**T**echnique for **O**rder **P**reference by **S**imilarity to **I**deal
**S**olution (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](https://en.wikipedia.org/wiki/TOPSIS).

<br>

## 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
```

<br>

### 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")
```

<br>
<br>

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.


