semvec/pypi-packages huggingface dataset:
Topsis-Saniya-102303183 1.0.5
TOPSIS implementation as a Python package
License: MIT
Requires Python: >=3.7

# Topsis-Saniya-102303183

Topsis-Saniya-102303183 is a Python package for solving Multiple Criteria Decision Making (MCDM) problems using the Technique for Order Preference by Similarity to Ideal Solution (TOPSIS).

## Installation

Use pip to install the package:

```bash
pip install Topsis-Saniya-102303183
```

## Usage

Run the package from the command line:

```bash
topsis <InputDataFile.csv> <Weights> <Impacts> <ResultFile.csv>
```

## Example

Input file: sample.csv

```
Model,Storage,Camera,Price,Looks
M1,16,12,250,5
M2,16,8,200,3
M3,32,16,300,4
M4,32,8,275,4
M5,16,16,225,2
```

Command:

```bash
topsis sample.csv "1,1,1,1" "+,-,+,+" result.csv
```

## Output

```
TOPSIS RESULTS
-----------------------------
   P-Score   Rank
1  0.534277     3
2  0.308368     5
3  0.691632     1
4  0.534737     2
5  0.401046     4
```

Higher score indicates a better alternative.

## Assumptions

- Input file must be a CSV file
- All values must be numeric
- Number of weights must equal number of criteria
- Impacts must be either + or -
- No missing values allowed

## Author

Saniya

## License

MIT License