Skip to main content

This is a Python library for handling problems related to Multiple Criteria Decision Making(MCDM)

Project description

Project Description

TOPSIS-Mudrika-102017143

Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) is a multi-criteria-based decision-making method. It is a way to allocate the ranks by calculating topsis score on basis of the weights and impact of the given factors.

Installation

Use the package manager pip to install Topsis-Mudrika-102017143

Syntax

topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>
Example:
topsis inputfile.csv “1,1,1,2” “+,+,-,+” result.csv
or 
topsis inputfile.csv 1,1,1,2 +,+,-,+ result.csv

Example

Sample input data

Fund Name P1 P2 P3 P4 P5
M1 0.75 0.56 5.8 40.9 12
M2 0.85 0.72 5 70 19.14
M3 0.72 0.52 4.3 37.9 10.86
M4 0.81 0.66 5.3 66.2 18.24
M5 0.71 0.5 3 69.8 18.5
M6 0.86 0.74 4.8 54.8 15.3
M7 0.9 0.81 5.2 37.4 11.08
M8 0.68 0.46 5.1 45.5 12.94

Sample output data

Fund Name P1 P2 P3 P4 P5 Performance Rank
M1 0.75 0.56 5.8 40.9 12 0.361305 7
M2 0.85 0.72 5 70 19.14 0.524739 3
M3 0.72 0.52 4.3 37.9 10.86 0.435908 6
M4 0.81 0.66 5.3 66.2 18.24 0.470017 5
M5 0.71 0.5 3 69.8 18.5 0.527621 2
M6 0.86 0.74 4.8 54.8 15.3 0.546181 1
M7 0.9 0.81 5.2 37.4 11.08 0.524433 4
M8 0.68 0.46 5.1 45.5 12.94 0.340656 8

Note

1.Enter the path for your input csv file
2.Enter the weights vector with each weight separated by commas
3.Enter the impact vector with each impact separated by commas
4.Enter the name of csv file in which you want to store output dataframe. This file will be
created in the users/pc if you open cmd without being in any directory.
Else it will be created in the current directorty

License

MIT

Free Software, Hell Yeah!

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-Mudrika-102017143-1.0.3.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file Topsis-Mudrika-102017143-1.0.3.tar.gz.

File metadata

File hashes

Hashes for Topsis-Mudrika-102017143-1.0.3.tar.gz
Algorithm Hash digest
SHA256 e3d9fd602d3d08c41eebb174fec3690a81229e753ca115ce5868bb1db7cf38b3
MD5 d26edb2e570c424a0644fa449747ca7b
BLAKE2b-256 0eb24dd092b3bf7b9561f1bfaea3d5f1afb08c5364449ccc9f8af61ba741cd83

See more details on using hashes here.

Supported by

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