Skip to main content

Implementation of TOPSIS (Technique for Order Preference by Similarity to Ideal Solution)

Project description

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

Installation

bash pip install Topsis-Satyam-102303729

Usage

Command Line

bash topsis <input_file> <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

bash topsis-satyam data.csv "1,1,1,1,1" "+,+,+,+,+" output.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.8
  • pandas >= 1.0.1
  • numpy >= 1.18.0

License

MIT License

Author

Satyam Gupta

Links

-GitHub: https://github.com/sat-yam-12/TOPSIS-SATYAM-102303729

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_satyam_102303729-1.0.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

topsis_satyam_102303729-1.0.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file topsis_satyam_102303729-1.0.1.tar.gz.

File metadata

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

File hashes

Hashes for topsis_satyam_102303729-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e21c6fa19196006a8c80d5acf17559e56f89026002d9f8ebb7a55d8a5aa6598f
MD5 0b2880f5f2df48e40cfaf62560138d98
BLAKE2b-256 929256c44aaf02647fb12f439b04a5bc0d6487fdcbebe793e9fc8c16ddfb7f40

See more details on using hashes here.

File details

Details for the file topsis_satyam_102303729-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_satyam_102303729-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 22d7fd2aeeb6e1828c5d4b4dfeea1165ae8491ac723c9d5c8fa97fc69a4acd2d
MD5 5a8da9c659cf62e0e093460c66f2ad09
BLAKE2b-256 a47db75ec0d779285524f6bd3404d4a6f96e3aefa67c6b45667aaddfbb7bb253

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