Skip to main content

TOPSIS implementation using command line

Project description

🧮 Topsis-JaspreetSingh-102303163

A simple and powerful Python implementation of the TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) method that runs directly from the command line after installation.

This package allows users to rank alternatives based on multiple criteria using weights and impacts — without writing any code.


🚀 Features

  • Works directly from command line
  • Reads any CSV file with numeric criteria
  • Accepts custom weights and impacts
  • Calculates Topsis Score and Rank
  • Generates output CSV automatically
  • Easy to install using pip

📦 Installation

pip install Topsis-JaspreetSingh-102303163

▶️ How to Use

After installation, simply run:

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

Arguments Explained

Argument Description
data.csv Input CSV file
"1,1,1,2" Weights for each numeric column
"+,+,-,+" Impacts (+ for benefit, - for cost)
result.csv Output file with Topsis Score and Rank

📄 Input CSV Format

  • First column: Alternative names (non-numeric)
  • Remaining columns: Numeric criteria values

Example:

Model Price Mileage Safety Comfort
A 25000 18 7 8
B 27000 15 9 6

📤 Output

The output CSV will contain two extra columns:

  • Topsis Score
  • Rank

🧠 About TOPSIS

TOPSIS is a multi-criteria decision-making method that identifies solutions closest to the ideal and farthest from the worst case.


👨‍💻 Author

Jaspreet Singh
Roll No: 102303163


🌐 Project 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_jaspreetsingh_102303163-0.3.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_jaspreetsingh_102303163-0.3-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file topsis_jaspreetsingh_102303163-0.3.tar.gz.

File metadata

File hashes

Hashes for topsis_jaspreetsingh_102303163-0.3.tar.gz
Algorithm Hash digest
SHA256 01927971faac700472b38876c8b0c1f31559243389092d866173a00ba32b9d01
MD5 8e888b5ff66b6809cdcd097d15a2690b
BLAKE2b-256 35db9c4d3e2ec37fea95b7a2d3188942b4de4834993d87ca0730690c99579d15

See more details on using hashes here.

File details

Details for the file topsis_jaspreetsingh_102303163-0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_jaspreetsingh_102303163-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f678ccadce70f582cbd5589ef0cf5d0d743138429a80d945a3c235b77416e930
MD5 9f418962d8dfc9aa9a805d7352415f15
BLAKE2b-256 32f4e60ae04b93ef0a6f49a4651b00ae41bfc2655ff9d7cf95d6ecec982b2e25

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