Skip to main content

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

Project description

Topsis-Simardeep-102003559 is a Python library for dealing Multiple Criteria Decision Making(MCDM)

Installation

pip install Topsis-Simardeep-102003559

Usage

Enter csv filename followed by .csv extentsion, then enter the weights string with values separated by commas, followed by the impacts string with comma separated signs (+,-) and name of file followed by -.csv- extension in which the user wants the output file

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

Example

sample.csv

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


 Mobile Name  Cost  Storage Space  Camera  Looks 
0          M1   250             16      12      5     
1          M2   200             16       8      3     
2          M3   300             32      16      4     
3          M4   275             32       8      4     
4          M5   225             16      16      2     

weights string = "0.25,0.25,0.25,0.25"

impacts string = "-,+,+,+"

input:

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

output:


 Mobile Name  Cost  Storage Space  Camera  Looks  Performance  Rank
0          M1   250             16      12      5     0.534277     3
1          M2   200             16       8      3     0.308368     5
2          M3   300             32      16      4     0.691632     1
3          M4   275             32       8      4     0.534737     2
4          M5   225             16      16      2     0.401046     4

An output csv file will also be auto generated.

License

2023 Simardeep Singh

This repository is licensed under the MIT license. See LICENSE for details.

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-Simardeep-102003559-1.0.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

Topsis_Simardeep_102003559-1.0.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-Simardeep-102003559-1.0.0.tar.gz.

File metadata

File hashes

Hashes for Topsis-Simardeep-102003559-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dfb868d3fef15871abec695d0d1b30b313f3c8d2e3110ad0a0b9fbcf880ad679
MD5 3cf8d97d10a8b98b3e3f36cc09bc0721
BLAKE2b-256 e3af751f176793e9ec63383c3ec21aa7c92f12f45b208e1cfd9c1e3cef5e5e8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Topsis_Simardeep_102003559-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 76dd887b999fbb7901eead2deaa06d230c3ffc326e817f226ff0d9d66617c445
MD5 fbb9355cdb5a6875b1aa6e58b948b97a
BLAKE2b-256 1d84351f89fa8ecb50656c586316be6926e9016504550721e26e77ce4742bb2b

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