Skip to main content

Python package for solving MCDM problems using TOPSIS

Project description

Topsis-Arshia-102303144

Project Description

Topsis-Arshia-102303144 is a Python package for solving Multiple Criteria Decision Making (MCDM) problems using the Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS).

TOPSIS ranks alternatives based on their distance from an ideal best and an ideal worst solution. This package provides a simple command-line interface to perform TOPSIS analysis on CSV data files.


Course & Student Details

Course: Project-1 (UCS654)
Submitted by: Arshia Anand
Roll No: 102303144
Group: 3C15


Installation

Install via PyPI using pip:

pip install Topsis-Arshia-102303144

Usage

Run the TOPSIS analysis using:

topsis <InputDataFile> <Weights> <Impacts> <OutputResultFileName>

Arguments

InputDataFile: CSV file containing the dataset

Weights: Comma-separated numeric weights for each criterion

Impacts: Comma-separated impacts (+ for benefit, - for cost)

OutputResultFileName: Output CSV file containing TOPSIS scores and ranks

Example

topsis sample.csv "0.25,0.25,0.25,0.25" "+,+,-,+" result.csv

Sample 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

Sample Output

Topsis Score  Rank
0.691632      1
0.534737      2
0.534277      3
0.401046      4
0.308368      5

Important Notes

Input file must contain at least three columns

From the 2nd column to the last column, all values must be numeric

Number of weights must equal the number of impacts

Number of weights and impacts must match the number of criteria

Impacts must be either + (benefit) or - (cost)

Weights and impacts must be separated by commas (,)

License

MIT License. See the LICENSE file for details.

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_arshia_102303144-1.0.0.tar.gz (4.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_arshia_102303144-1.0.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for topsis_arshia_102303144-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8adcdf3df4139af49697412e7d31273049d90bf200c8d50400c0ef1960d69f54
MD5 c2f16c73ca8eaaa2234f06970eff1144
BLAKE2b-256 3c83df2d2661f9398116141af7b2065a61678b6fe3d88e1d148eae96677adee5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topsis_arshia_102303144-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ca1acb0ef01bbdc84d194ec094b85b7a68589fb4f5c7ed4bf1576142d690a9c
MD5 009ac3cc153ec91403fbd3884c064c5b
BLAKE2b-256 b1956d013e729674185acfd6872a6fa1b8484e1d97106d48d84cba25818f60fa

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