Implementation of Topsis
Project description
Project Description
- for: Assignment-1(UCS654)
- Submitted by: Himanshu Bansal
- Roll no: 102103568
- Group: 3COE20
TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution)
This Python script implements the TOPSIS method for multi-criteria decision-making. It takes a CSV file containing a decision matrix, weights, and impacts as input, and produces a ranked result based on the TOPSIS score.
Usage
InputDataFile
: Path to the CSV file containing the decision matrix.Weights
: Comma-separated weights for each criterion.Impacts
: Comma-separated impact direction for each criterion (+
for maximization,-
for minimization).ResultFileName
: Name of the file to save the TOPSIS results.
Requirements
- Python 3
- pandas
- numpy
Input File Format
Output
The script generates a CSV file containing the TOPSIS score and rank for each object:
Error Handling
- If the input file is not found, an error message will be displayed.
- If the number of weights, impacts, or columns in the decision matrix is incorrect, a
ValueError
will be raised. - If the columns from the 2nd to the last do not contain numeric values, a
ValueError
will be raised. - Any unexpected errors during the execution will be displayed.
Project details
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
Close
Hashes for Topsis-Himanshu-102103568-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ebb4ac7677cd9723ea236bcd19f2949c6c6c58fdeb91e61b3fe31bbf272f438 |
|
MD5 | 4b4c2d108bb424ca5687b8c917ecf137 |
|
BLAKE2b-256 | bc59116af1c9a9962e7bf10792a93d2f8da8ec33fdef4046cec88e7e5f0522f1 |
Close
Hashes for Topsis_Himanshu_102103568-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f31c2e099fe74032868b2a16669bf4d7cadbcef1fba17541c6d84fcf485c78ea |
|
MD5 | 7d83448b646a0455df52080dbc5f4cae |
|
BLAKE2b-256 | 59987b813f16f5b3b0d530e1afc5a8fd29169ee78fdb869177929742a295d934 |