Skip to main content

Topsis package for Multiple Criteria Decision Making problems(MCDM) problems

Project description

TOPSIS SCORE EVALUATOR

Project-1 (UCS654)

Submitted by: Jashan Arora Roll no: 102003206 Group: 3COE9

Topsis-Jashan-102003206 is a Python library for dealing with Multiple Criteria Decision Making(MCDM) problems by using Technique for Order of Preference by Similarity to Ideal Solution(TOPSIS).

Installation

Use the package manager pip to install Topsis-Jashan-102003206.

pip install Topsis-Jashan-102003206

Usage

Enter csv filename followed by .csv extentsion, then enter the weights vector with vector values separated by commas, followed by the impacts vector with comma separated signs (+,-), followed by name of output file to be generated. It generates output csv file in the present working directory.

Syntax

topsis <input_file> <weights> <impacts> <output_file>

topsis input.csv "1,1,1,1" "+,-,+,+" result.csv

Example

Data.csv

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

Model Storage space Camera Price Looks
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 Data.csv "0.25,0.25,0.25,0.25" "+,+,-,+" Result.csv

Output:

Result.csv

A csv file generated by program containing output showing original data with Topsis Score and Rank columns.

Model Storage space Camera Price Looks Topsis Score Rank
M1 16 12 250 5 0.534277 3
M2 16 8 200 3 0.308368 5
M3 32 16 300 4 0.691632 1
M4 32 8 275 4 0.534737 2
M5 16 16 225 2 0.401046 4

Other notes

  • The first column and first row are removed by the library before processing, in attempt to remove indices and headers. So make sure the csv follows the format as shown in sample.csv.
  • Make sure the csv does not contain categorical values
  • Impacts must be either + or -
  • Weights must be numeric only
  • Weights and Impacts must be seperated only by commas (' , ')

License

MIT

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-Jashan-102003206-1.0.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Jashan_102003206-1.0.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Jashan-102003206-1.0.0.tar.gz.

File metadata

  • Download URL: Topsis-Jashan-102003206-1.0.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for Topsis-Jashan-102003206-1.0.0.tar.gz
Algorithm Hash digest
SHA256 86d8ae2e547c028b9f809906302549d9487560f97ffbaf6af8501ea49ecb3b0c
MD5 7f228d73b094875038f8ca818f52a457
BLAKE2b-256 98339e208e4f59dbdc9652cb675a05927fa03daed4e024db9303df6997b039b8

See more details on using hashes here.

File details

Details for the file Topsis_Jashan_102003206-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Jashan_102003206-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 917afb066088157427fb3265cb097940699716323a566eeec5403106d6b9daa0
MD5 f1a9c19500e743bdc977d5cfd23421d7
BLAKE2b-256 2f05e531354e21d972341fd72672495cf39a676c7dc7245e5a2e818f813c54f0

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