Skip to main content

A Python package for implementing TOPSIS (Technique for Order Preference by Similarity to Ideal Solution)

Project description

Topsis-Nitish-102303239

This package implements the TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) method for multi-criteria decision making.


Installation

After uploading to PyPI, install using:

pip install Topsis-Nitish-102303239


Usage

Run from command line as:

topsis-nitish

Example:

topsis-nitish data.csv "1,1,1,1" "+,+,+,+" output-result.csv


Input Format

  • First column → Alternative names
  • Remaining columns → Numeric criteria values

Example:

Model,Price,Storage,Camera,Battery
A,250,64,12,3000
B,200,32,8,2500
C,300,128,16,3500
D,275,64,12,3300


Output

The output CSV file will contain:

  • Original data
  • Topsis Score
  • Rank

Error Handling

The program checks for:

  • File not found errors
  • Non-numeric values
  • Incorrect number of weights or impacts
  • Invalid impacts (+ or - only)

Author

Name: Nitish
Roll Number: 102303239

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for topsis_nitish_102303239-1.0.0.tar.gz
Algorithm Hash digest
SHA256 814c6f365e31fb6438d698980c15599010ca8f53435031672b205cc67d3e93d6
MD5 e64c8d82f87b664731fd578cf8795a2a
BLAKE2b-256 a2cd0cfd03890c0f5625f7e59c57a4911598d8ab257f4aaed78720da79bb89f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topsis_nitish_102303239-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8250f9b2b3f1a1a539b864e9af9604942015e855c40283494ad3bfb81e2a20f3
MD5 956509cd91f74c58e024dd2734070efd
BLAKE2b-256 ab2a4aa03ba339c3023db881518cf034f71895ba32857994c15b7bbfcda22993

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