Metadata-Version: 2.1
Name: Topsis-Taruna-102003464
Version: 0.3
Summary: This is package for topsis of version 0.3
Home-page: UNKNOWN
Author: Taruna Jain
Author-email: tjain_be20@thapar.edu
License: UNKNOWN
Platform: UNKNOWN
Description-Content-Type: text/markdown
License-File: license.txt
Requires-Dist: pandas

## Topsis:-MULTIPLE-CRITERIA DECISION MAKING

# TOPSIS

Submitted By: **TARUNA JAIN 102003464**.

Date: **21-JAN-2023**.

Description: **Evaluation of alternatives based on multiple criteria using TOPSIS method.**.

---

## What is TOPSIS?

**T**echnique for **O**rder **P**reference by **S**imilarity to **I**deal **S**olution
TOPSIS chooses the alternative of shortest Euclidean distance from the ideal solution,
and greatest distance from the negative-ideal solution.

<br>

## How to install this package:

```
>> pip install Topsis_Taruna_102003464
```

### In Command Prompt

```
>> topsis123 data.csv "1,1,1,1," "+,+,-,+" result.csv
```

## Input file (data.csv)

The decision matrix should be constructed with each row representing a Model alternative, and each column representing a criterion like Price or cost, Storage Space, Camera, Looks, and many more.

| Attribute | Price or cost | Storage Space | Camera| Looks |
| -----     | -----------   | ------------- | ---- | -------|
| Mobile 1  |250$           | 16GB          | 12MP | 5      |
| Mobile 2  | 200$          | 16GB          | 8MP  | 3      |
| Mobile 3  | 300$          | 32GB          | 16MP | 4      |
| Mobile 4  |  275$         | 32GB          | 8MP  | 4      |
| Mobile 5  | 225$          | 16GB          | 16MP | 2      |

Weights (`weights`) is not already normalised will be normalised later in the code.

Information of benefit positive(+) or negative(-) impact criteria should be provided in `impacts`.

<br>

## Output file (result.csv)

| Attribute | Price or cost | Storage Space | Camera| Looks | Topsis_score | Rank|
| -----     | -----------   | ------------- | ---- | -------| ------------ | ----|
| Mobile 1  |250$           | 16GB          | 12MP | 5      | 0.4228       | 4   |
| Mobile 2  |200$           | 16GB          | 8MP  | 3      | 0.4635       | 3   |
| Mobile 3  |300$           | 32GB          | 16MP | 4      | 0.5097       | 2   |
| Mobile 4  |275$           | 32GB          | 8MP  | 4      | 0.3772       | 5   |
| Mobile 5  |225$           | 16GB          | 16MP | 2      | 0.6871       | 1   |


<br>
The output file contains columns of input file along with two additional columns having **Topsis_score** and **Rank**

