Metadata-Version: 2.4
Name: topsis_abhiraj_singh_jhajj_102217094
Version: 1.0.6
Summary: TOPSIS implementation for multi-criteria decision analysis
Home-page: https://github.com/abhirajsinghjhajj/Topsis_Abhiraj_Singh_Jhajj_102217094
Author: Abhiraj Singh Jhajj
Author-email: abhirajsinghjhajj@gmail.com
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: numpy>=1.18.0
Requires-Dist: pandas>=1.0.0
Requires-Dist: openpyxl>=3.0.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# Topsis-Abhiraj-Singh-Jhajj-102217094

`Topsis-Abhiraj-Singh-Jhajj-102217094` is a Python package that implements the TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) method for multi-criteria decision making. This tool is ideal for evaluating and ranking alternatives based on multiple criteria, which is essential in fields like supply chain management, finance, and engineering.

## Installation

You can install `Topsis-Abhiraj-Singh-Jhajj-102217094` directly from the Python Package Index using pip:

pip install Topsis-Abhiraj-Singh-Jhajj-102217094


## Usage

### Command Line Interface

To use the package from command line, you need to prepare your data in CSV or Excel format where the first column contains the names/labels of the alternatives, and the subsequent columns contain the criteria values.

Using the CLI program
python 102217094.py data-1.xlsx "1,2,3,1,2" "+,+,-,+,+" 102217094-result.csv

Using the installed package
topsis data.csv "1,2,3" "+,-,+" results.csv


### Python Script Usage

from topsis_Abhiraj_102217094 import topsis_analysis

Perform TOPSIS analysis
result = topsis_analysis('data.csv', '1,2,3,1,2', '+,+,-,+,+', 'result.csv')


## Parameters

- **Input file**: CSV or Excel file with alternatives and criteria
- **Weights**: Comma-separated string of weights for each criterion (e.g., "1,2,3,1,2")
- **Impacts**: Comma-separated string of impacts for each criterion:
  - `+` indicates that higher values are better
  - `-` indicates that lower values are better
- **Output file**: Path where results will be saved

## Example

Given a dataset with 5 criteria (P1, P2, P3, P4, P5):

python 102217094.py 102217094-data.csv "1,2,3,1,2" "+,+,-,+,+" 102217094-result.csv


## Features

- **Easy integration** with Pandas DataFrames
- **Customizable weights** and criteria impacts
- **Automatic normalization** and ranking of alternatives
- **Command line interface** for easy access and usage
- **Support for both CSV and Excel** input files
- **Comprehensive error handling** and validation

## Repository

GitHub: [abhirajsinghjhajj/Topsis_Abhiraj_Singh_Jhajj_102217094](https://github.com/abhirajsinghjhajj/Topsis_Abhiraj_Singh_Jhajj_102217094)

## Author

**Abhiraj Singh Jhajj** (102217094)
- Email: abhirajsinghjhajj@gmail.com
- GitHub: [@abhirajsinghjhajj](https://github.com/abhirajsinghjhajj)

## License

This project is licensed under the MIT License - see the [LICENSE.txt](LICENSE.txt) file for details.
