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

TOPSIS RESULTS
-----------------------------
   P-Score   Rank
1  0.534277     3
2  0.308368     5
3  0.691632     1
4  0.534737     2
5  0.401046     4

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.5.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.5-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: topsis_saniya_102303183-1.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 313ab4ef948d2d9655ba07b423e4b1771c7cb92b84959c38905494d206bb767f
MD5 ce92911805a6f9f111e03e66ba0128bf
BLAKE2b-256 b62c61e5dfb3dc2212135371f470826e5ac9857cfd4a24409f1c079a149a85b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topsis_saniya_102303183-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 65f287248fd8140d097cf29309c83b34b65a30fe32e96f033186a1be9220dfd4
MD5 baab8398a2f42315accd38b20142caa3
BLAKE2b-256 af550427503de3c1d5d5f601799dda50ac5d1e0c05d1f3f6035f7d8706a20309

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