Skip to main content

Implementation of TOPSIS

Project description

TOPSIS Implementation by Ansh Gupta 101803121

This package will get topsis score for selected csv file.

Important Details

Input/Output Files:

Input File

-> Input file contain three or more columns

-> First column is the object/variable name (e.g. M1, M2, M3, M4...)

-> From 2nd to last columns contain numeric values only

Output Files -> Result file contains all the columns of input file and two additional columns having TOPSIS SCORE and RANK

The parameters for the topsis functions are as follows: -> The input file name. It must end with .csv or .txt. You can give the complete file path if you want to read a file from some specific place

-> The weights string which is comma seperated for each weight. Example: "1,1,2,3"

-> The impact string which is comma seperated for each impact and determines if weight at that index is to be taken positive or negative. Example: "-,+,+,+"

-> The output file name. It must end with .csv or .txt. You can give the complete path along with file name to save the file at specific place. Otherwise, it will save it as default where the package is installed.

The package has only one function topsis(4 parameters(all necessary else exceptions occur)).

Sample Use case:

import TOPSIS_AnshGupta_101803121 as t
t.topsis("input.csv","1,1,1,1","+,+,+,+","output.csv")

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_Ansh_Gupta_101803121-0.0.4.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file TOPSIS_Ansh_Gupta_101803121-0.0.4.tar.gz.

File metadata

  • Download URL: TOPSIS_Ansh_Gupta_101803121-0.0.4.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.2

File hashes

Hashes for TOPSIS_Ansh_Gupta_101803121-0.0.4.tar.gz
Algorithm Hash digest
SHA256 4302070155f6311abf25cf43043e48b9d0af009d87290695c95e7c93e6724ce9
MD5 8e9fa1f68f15a84b4f109396dedc3910
BLAKE2b-256 6cc6ef0905667cc9c451d001619be23b1682846404dcf53d5bf9054a21394aaf

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