This python module aims to implement Multiple Criteria Decision Making using TOPSIS ranking. The module is available at https://pypi.org/project/TOPSIS-suryansh-101983044/0.1/.
This module basically is a function which requires a CSV file as input which contains the model on which you wish to implement TOPSIS along with impacts,weights and a name for the result file.The model basically builts a result csv file which has two additional columns, TOPSIS score and rank respectively.
Use package manager pip to install the module.
pip install TOPSIS-suryansh-101983044
After intalling the package use the following code:
module =__import__('TOPSIS-suryansh-101983044')
module.topsis(file_name,weights,impacts,resultant_filename)
The first attribute is a string containg the name of the input csv file.It should contain the input model and should be present in the working directory.
The second attribute is a string containing comma seperated weights. Example: "1,1,1,1"
The third attribute is a string containing comma seperated impacts. Example: "+,-,-,+"
* Number of WEIGHTS and IMPACTS must be equal to the number of COLUMNS(excluding the first object column) in the input file
Suryansh Bhardwaj