Metadata-Version: 2.4
Name: Topsis-Mehul-102317146
Version: 1.0.0
Summary: A Python package for TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution)
Author: Mehul Luthra
Author-email: mluthra_be23@thapar.edu
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pandas
Requires-Dist: numpy
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# Topsis-Mehul-102317146

## Description
A Python package implementing TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) method for multi-criteria decision making.

## Installation

```
pip install Topsis-Mehul-102317146
```

## Usage

### Command Line

```
topsis <InputDataFile> <Weights> <Impacts> <OutputResultFileName>
```

### Example

```
topsis data.csv "1,1,1,2" "+,+,-,+" output-result.csv
```

### Input File Format

The input file must be a CSV file with the first column as the object/variable name and the remaining columns as numeric criteria values.

| Fund Name | P1   | P2   | P3  | P4   | P5    |
|-----------|------|------|-----|------|-------|
| M1        | 0.67 | 0.45 | 6.5 | 42.6 | 12.56 |
| M2        | 0.6  | 0.36 | 3.6 | 53.3 | 14.47 |
| M3        | 0.82 | 0.67 | 3.8 | 63.1 | 17.1  |
| M4        | 0.6  | 0.36 | 3.5 | 69.2 | 18.42 |
| M5        | 0.76 | 0.58 | 4.8 | 43   | 12.29 |
| M6        | 0.69 | 0.48 | 6.6 | 48.7 | 14.12 |
| M7        | 0.79 | 0.62 | 4.8 | 59.2 | 16.35 |
| M8        | 0.84 | 0.71 | 6.5 | 34.5 | 10.64 |

### Output File Format

The output file will contain the original data along with two additional columns: **Topsis Score** and **Rank**.

| Fund Name | P1   | P2   | P3  | P4   | P5    | Topsis Score | Rank |
|-----------|------|------|-----|------|-------|--------------|------|
| M1        | 0.67 | 0.45 | 6.5 | 42.6 | 12.56 | 20.58        | 2    |
| M2        | 0.6  | 0.36 | 3.6 | 53.3 | 14.47 | 40.83        | 4    |
| M3        | 0.82 | 0.67 | 3.8 | 63.1 | 17.1  | 30.07        | 3    |
| M4        | 0.6  | 0.36 | 3.5 | 69.2 | 18.42 | 50.22        | 5    |
| M5        | 0.76 | 0.58 | 4.8 | 43   | 12.29 | 10.41        | 1    |
| M6        | 0.69 | 0.48 | 6.6 | 48.7 | 14.12 | 80.51        | 8    |
| M7        | 0.79 | 0.62 | 4.8 | 59.2 | 16.35 | 70.74        | 7    |
| M8        | 0.84 | 0.71 | 6.5 | 34.5 | 10.64 | 60.33        | 6    |

*Your input-data and output-result may be different.

## Validations

- Correct number of parameters (inputFileName, Weights, Impacts, resultFileName)
- Handling of "File not Found" exception
- The input file must contain three or more columns
- From 2nd to last columns must contain numeric values only
- The number of weights, number of impacts and number of columns (from 2nd to last columns) must be the same
- Impacts must be either +ve or -ve
- Impacts and weights must be separated by ',' (comma)

## License

MIT
