Skip to main content

Implementation of TOPSIS

Project description

TOPSIS Implementation by Ayush Jain 101803690

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_AyushJain_101803690 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_Ayush_Jain_101803690-0.0.4.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

TOPSIS_Ayush_Jain_101803690-0.0.4-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: TOPSIS_Ayush_Jain_101803690-0.0.4.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for TOPSIS_Ayush_Jain_101803690-0.0.4.tar.gz
Algorithm Hash digest
SHA256 3bfb5fb8b1c10da224c9c7c195779c87100abb4ff151b6bae15d156fa18fa244
MD5 8ae0f997e0d22f1cb0b23823dee3c613
BLAKE2b-256 9e85c55c6075f7133ef533639c4061507f91391bd2fc2c49c910aff241e7c1c2

See more details on using hashes here.

File details

Details for the file TOPSIS_Ayush_Jain_101803690-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: TOPSIS_Ayush_Jain_101803690-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for TOPSIS_Ayush_Jain_101803690-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3453cd3bdd65476a75d161e21420300e404dd565eebf0ecf5b2f9e91976990ec
MD5 46926e6a666e57df2dbcd61cb0e4e3b1
BLAKE2b-256 6b548d4e29b748212e36a088a5946a8a483e68d24eb7a003f474fd699fb4722a

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