Skip to main content

topsis package for MCDM problems

Project description

topsis-7016

for: Project-1 (UCS654) submitted by: Mukul Sharda Roll no: 102197016 Group: 3CS-4

topsis-7016 is a Python library which implements the TOPSIS algorithm used for Multiple Criteria Decision Making(MCDM). Know more about Topsis

Installation

Use the package manager pip to install topsis-7016.

pip install topsis-7016

Usage

Enter filename followed by .csv or .xlsx extentsion, then enter the weights vector with vector values separated by commas, followed by the impacts vector with comma separated signs (+,-), make sure to pass the file where you want to store your results.

topsis sample.csv "1,1,1,1" "+,-,+,+" output.csv

Example

sample.csv

A csv file showing data for different mobile handsets having varying features.

Model Storage space(in gb) Camera(in MP) Price(in $) Looks(out of 5)
M1 16 12 250 5
M2 16 8 200 3
M3 32 16 300 4
M4 32 8 275 4
M5 16 16 225 2

weights vector = [ 0.25 , 0.25 , 0.25 , 0.25 ]

impacts vector = [ + , + , - , + ]

input:

topsis sample.csv "0.25,0.25,0.25,0.25" "+,+,-,+" output.csv

Other notes

  • Make sure the csv does not contain categorical values.
  • Make sure your dataset has atleast 3 rows and 3 columns.
  • The length of weights vector and impact vector must equal the number of columns in dataset.
  • While writing weights vector or impact vectors, please make sure not to put extra spaces.

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-7016-0.0.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

topsis_7016-0.0.1-py3.10.egg (6.0 kB view details)

Uploaded Egg

File details

Details for the file topsis-7016-0.0.1.tar.gz.

File metadata

  • Download URL: topsis-7016-0.0.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for topsis-7016-0.0.1.tar.gz
Algorithm Hash digest
SHA256 83f5734a10f3dd6312dd13742feb2ee3d26efbe45b4648985ac6f89cc19eeeb3
MD5 e44f2dcb2a4a5c69544a47bfbf137e87
BLAKE2b-256 c261239ee1561b3af1eca84204794e371d0b0da3e8ea34411efa8c049b867561

See more details on using hashes here.

File details

Details for the file topsis_7016-0.0.1-py3.10.egg.

File metadata

  • Download URL: topsis_7016-0.0.1-py3.10.egg
  • Upload date:
  • Size: 6.0 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for topsis_7016-0.0.1-py3.10.egg
Algorithm Hash digest
SHA256 4c672aa32acb5b9e53add47f7416f3e4f94351551f718de21745d41c0db51c55
MD5 6325deeef3d3f15b20e580d9ddca9f97
BLAKE2b-256 0faf9100cc4d9cf9eea71836a0c4ae41eba3cd63e8364930c00276efec16134c

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