Skip to main content

Topsis-Jasween-102017187 is a Python library to solve Multiple Criteria Decision Making(MCDM) problems by using TOPSIS

Project description

TOPSIS

Goals of this project :

:star: Learn about mathematics of TOPSIS Algorithm
:star: Implementation of TOPSIS Algorithm using python. The code for same is available in 102017187.py file
:star: Create a package and publish it on (https://pypi.org/). Also, provide a user manual for it.
:star: Test the package by installing it and run it through command line.
:star: Create a web app for TOPSIS


What is TOPSIS ?

  • Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) is a multi-criteria-based decision-making method
  • {Eg. You want to purchase a mobile phone. But you are confused because there are so many factors like price, memory, battery, camera quality etc. So, TOPSIS provides you the solution.}
  • It is a way to allocate the ranks on basis of the weights and impact of the given factors.

How to install this package ?

pip install Topsis-Jasween-102017187


Example of how to use it on command line:

Usages: topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>

Parameters:

Arguments Description
InputDataFile Input CSV file path
Weights Comma separated numbers
Impacts Comma separated either '+' or '-'
ResultFileName Output CSV file path

It accepts input file (which contains parameters and their values in csv format) and weights and impacts.

It creates a output file(.csv), that contains the original data with Topsis Score and Ranks.


Be careful about these, otherwise you will get an error :smile: :

  • Correct no. of parameters must be provided in command line
  • Input file must be in csv format and must be present
  • Input file must contain three or more columns
  • Input file: first column is the object/variable name (e.g. M1, M2, M3, M4…...)
  • Input file: from 2nd to last column the valuse should be only numeric
  • Result file should be .csv file
  • Weights and impacts should be in correct format and separated by ","
  • Number of weights, number of impacts and number of columns (from 2nd to last columns) must be same.
  • Impacts must be either +ve or -ve

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-Jasween-102017187-0.2.tar.gz (5.7 kB view details)

Uploaded Source

File details

Details for the file Topsis-Jasween-102017187-0.2.tar.gz.

File metadata

  • Download URL: Topsis-Jasween-102017187-0.2.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.2

File hashes

Hashes for Topsis-Jasween-102017187-0.2.tar.gz
Algorithm Hash digest
SHA256 69eef7ff95518a087c86ec40f2fc5e36d67ae216325dd15441b4e630dc7b2df1
MD5 6dabcc38eca0cebe9f7eed5760bef538
BLAKE2b-256 c806ad5251322c15f0538ffa3f2ed223bed395aeefcc89d920f7d9777d71b352

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