Skip to main content

A Python package for TOPSIS multi-criteria decision analysis

Project description

TOPSIS Python Package

TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) is a multi-criteria decision analysis method.

Installation

pip install Topsis-Akshat-102303730

Usage

Command Line

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

Parameters

  • input_file: Path to input CSV file
  • weights: Comma-separated weights (e.g., "1,1,1,2")
  • impacts: Comma-separated impacts, either + or - (e.g., "+,+,-,+")
  • output_file: Path to output CSV file

Example

topsis data.csv "1,1,1,2" "+,+,-,+" result.csv

Input File Format

The input CSV file should have:

  • First column: Object/item names
  • Remaining columns: Criteria values (numeric)

Example:

Model,Price,Storage,Camera,Looks
M1,250,16,12,5
M2,200,16,8,3
M3,300,32,16,4

Output

The output file will contain:

  • All original columns
  • Topsis Score: Calculated TOPSIS score
  • Rank: Rank based on TOPSIS score

Requirements

  • Python >= 3.6
  • pandas >= 1.0.0
  • numpy >= 1.18.0

License

MIT License

Author

Akshat Kakkar

Links

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_akshat_102303730-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_akshat_102303730-1.0.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file topsis_akshat_102303730-1.0.0.tar.gz.

File metadata

  • Download URL: topsis_akshat_102303730-1.0.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for topsis_akshat_102303730-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9d5a63116176523813c7f3188031fe2e60b4a86cf5e30091f50641ec48cd9166
MD5 04579dfe85c160c4852a8e0c6c15a8e7
BLAKE2b-256 39d91e370c0b3cbd137a7ce4183bbf9372416525dcf1aec47f2f1eeff1afff45

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topsis_akshat_102303730-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ee33b5dd338d10231fbddb8d372bd2d8957b5e115cc676c75a317971dd0dbe4
MD5 965b50fb227910dc718d35fde9c40d18
BLAKE2b-256 73d56077ec969b2e05430ba4e42d5d206d846d6fb71c5d13e167d23a04067ca0

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