aarora2-be17/abhishek-arora


License: MIT

Language: Python


TOPSIS

Abhishek Arora

Roll No. 101703021

Group - COE 1

Project - 1 UCS633

TIET

TOPSIS method for multiple-criteria decision making (MCDM)

Description

The Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS) is a multiple-criteria decision making (MCDM) method.

Usage

topsis(data, weights, impacts)

Arguments

data: A numeric 2D list with m rows for m alternatives and n columns for n criterions.

weights: A string with numeric values of length equal to number of columns in decision matrix for weights of criterions, separated by commas.

impacts: A string of "+" and "-" signs separated by commas for the way that each criterion influences on the alternatives.

Output:

A dictionary with key and value pairs.

Key : row_no : Row number of alternatives in decision matrix.

Value is list having two elements:

Score: 	TOPSIS score of alternatives.
Rank:	Rank of alternatives based on TOPSIS scores.

Examples

import topsis as tp

tp.topsis(data,'1,1,1,1','+,+,+,+')

Project Statistics

Sourcerank 3
Repository Size 8.79 KB
Stars 0
Forks 0
Watchers 1
Open issues 0
Dependencies 2
Contributors 1
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

aarora2-be17

Packages Referencing this Repo

missing-101703021
Handling Missing Values In A Dataset
Latest release 1.0 - Published
outlier-101703021
Outlier Removal using Z-Score
Latest release 1.0 - Published
topsis-abhishek-arora
Topsis analysis of a numeric csv file
Latest release 1.0 - Published

Something wrong with this page? Make a suggestion

Last synced: 2020-01-19 16:18:59 UTC

Login to resync this repository