Skip to main content

TOPSIS implementation as a Python package

Project description

Topsis-Saniya-102303183

Topsis-Saniya-102303183 is a Python package for solving Multiple Criteria Decision Making (MCDM) problems using the Technique for Order Preference by Similarity to Ideal Solution (TOPSIS).

Installation

Use pip to install the package:

pip install Topsis-Saniya-102303183

Usage

Run the package from the command line:

topsis <InputDataFile.csv> <Weights> <Impacts> <ResultFile.csv>

Example

Input file: sample.csv

Model,Storage,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

Command:

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

Output

The output CSV file will contain:

  • Topsis Score
  • Rank

Higher score indicates a better alternative.

Assumptions

  • Input file must be a CSV file
  • All values must be numeric
  • Number of weights must equal number of criteria
  • Impacts must be either + or -
  • No missing values allowed

Author

Saniya

License

MIT License

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_saniya_102303183-1.0.4.tar.gz (2.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_saniya_102303183-1.0.4-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file topsis_saniya_102303183-1.0.4.tar.gz.

File metadata

  • Download URL: topsis_saniya_102303183-1.0.4.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for topsis_saniya_102303183-1.0.4.tar.gz
Algorithm Hash digest
SHA256 19a20d3dfa3d4a8337417ca26958eab9ec426a594c463aeca02c04b7a0b35f6d
MD5 e4156dd65e63f14c156a3dc694912840
BLAKE2b-256 27550c1fd8352952af3b23d8b6ef4c82df1d770790490e3534fbca1d553ce4bb

See more details on using hashes here.

File details

Details for the file topsis_saniya_102303183-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_saniya_102303183-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4edc464f2cc2985c9496f668b8b0588119338d2518df30f8fe8c5655b26583fa
MD5 9cd35767368fde62fe8e09439a2efab1
BLAKE2b-256 2dad90ff51840c68d8cb2d0cd660b0310764ae4659e197de9b1058b8d521fff4

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