Skip to main content

topsis package for MCDM problems

Project description

topsis-102197016

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

topsis-102197016 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-102197016.

pip install topsis-102197016

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-102197016-1.1.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

topsis_102197016-1.1.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file topsis-102197016-1.1.2.tar.gz.

File metadata

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

File hashes

Hashes for topsis-102197016-1.1.2.tar.gz
Algorithm Hash digest
SHA256 52979b32d6618f2c2edd68f402accfc8b35f11b8350688a51413e054e3bd84d1
MD5 1a853eea20bf97b7f76a109c534cbc1c
BLAKE2b-256 5e0d5b8fc65774e077c377fbda59b7bd3eacb0d3d6ae6237262bd9c652a3c6ab

See more details on using hashes here.

File details

Details for the file topsis_102197016-1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_102197016-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9a2f00cbf794d18dc97808174620283a97d2427235fa93150d958fbd1f34faef
MD5 17a5698c7589542a305ee58a4cd4a9a7
BLAKE2b-256 e90e663c1338c745f4acaa61fc47251922b3f0e484107e55f367f06dd66bf4c0

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