Skip to main content

Python Package implementing TOPSIS method for multi-criteria decision making method

Project description

Topsis Python Package

This is a Python Package implementing Topsis Multi-Criteria Decison Making method.
It is a simple implementation using - pandas - numpy
It stores the output as a csv file with user-specified name.
Output contains the original data with two additional columns i.e. Topsis Score and Rank based on the score.

Installation

To install the package

pip install topsis-kanuj-102017188

Usage

To use the package from the command line (Data file and result file name should contain .csv extension)

topsis [data file name] [weights as string seperated by ','] [impacts as string seperated by ','] [result data file name]

For example

topsis data.csv "1,1,1,1,1" "+,+,+,-,+" result.csv

Sample

Data Sample

Model,StorageSpace,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

Sample topsis command

topsis data.csv "0.25,0.25,0.25,0.25" "+,+,-,+" result.csv

Sample Output file

Model,StorageSpace,Camera,Price,Looks,TopsisScore,Rank
M1,16,12,250,5,0.534277,3.0
M2,16,8,200,3,0.308368,5.0
M3,32,16,300,4,0.691632,1.0
M4,32,8,275,4,0.534737,2.0
M5,16,16,225,2,0.401046,4.0

Notes

The data should only contain numerical data.

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

topsis-kanuj-102017188-1.2.tar.gz (5.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page