A Python package to perform TOPSIS (Technique for Order Preference by Similarity to Ideal Solution)
Project description
topsis_ineshkumar_102203363
topsis_ineshkumar_102203363 is a Python package that implements the Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) method for multi-criteria decision analysis.
Installation
You can install the package using pip:
pip install topsis_ineshkumar_102203363
Usage
Input File Format
The input CSV file should have the following structure:
- The first column should contain the names of the models.
- The subsequent columns should contain the criteria values for each alternative.
- The first row should contain the headers for each column.
Example:
| model | Criteria 1 | Criteria 2 | Criteria 3 |
|---|---|---|---|
| m1 | 250 | 16 | 12 |
| m2 | 200 | 14 | 8 |
| m3 | 300 | 18 | 15 |
Command-line Usage
After installation, you can use the topsis command in the terminal:
topsis <input_file> <weights> <impacts> <output_file>
<input_file>: Path to the input CSV file.<weights>: Comma-separated string of weights for the criteria.<impacts>: Comma-separated string of '+' or '-' indicating the desirability of the criteria.<output_file>: Path to the output CSV file to save the results.
Example
topsis data.csv "0.5,0.3,0.2" "+,-,+" results.csv
This command will process the data.csv file using the specified weights and impacts and output the results to results.csv.
NOTE
- Ensure that the input file has at least three columns: one for alternatives and at least two for criteria.
- All criteria columns should contain numeric values.
- The number of weights and impacts must match the number of criteria.
- Impacts should only be '+' or '-'.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file topsis_ineshkumar_102203363-1.0.3.tar.gz.
File metadata
- Download URL: topsis_ineshkumar_102203363-1.0.3.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2257344234918409d0a2706e84bfa81e7ed8af51166c7d9e006eb07cf0c0d8fe
|
|
| MD5 |
32c493197eb8f051b1f891595aefb538
|
|
| BLAKE2b-256 |
6a06ab6be2e5cef6f16d3424578bcdb7db7eb826978e89c8cbfc11effeb722eb
|
File details
Details for the file topsis_ineshkumar_102203363-1.0.3-py3-none-any.whl.
File metadata
- Download URL: topsis_ineshkumar_102203363-1.0.3-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd6d7f9d9a66c340be82bc56dc5f63885094baaba2511f6ed8b8a97fc3ec8048
|
|
| MD5 |
4dbeed1c8a3805499213e00eefce3f6c
|
|
| BLAKE2b-256 |
5d5ac6c039ea2183f87723e119471e5c2d7c92f7764551999eba930aecff15bd
|