Skip to main content

A Python package for TOPSIS decision making

Project description


# Topsis-Tanya-102303077

## Project Description

**For:** Project-1 (UCS633 / UCS654 – Predictive Analytics)  
**Submitted by:** Tanya  
**Roll Number:** 102303077  

**Topsis-Tanya-102303077** is a Python package designed to solve **Multiple Criteria Decision Making (MCDM)** problems using the **Technique for Order of Preference by Similarity to Ideal Solution (TOPSIS)** method.

The package ranks multiple alternatives based on their relative distance from the ideal best and ideal worst solutions. It is implemented as a **command-line tool**, making it easy to use for real-world decision-making applications.

---

## Installation

Install the package using `pip`:

```bash
pip install Topsis-Tanya-102303077

Usage

Run the package from the command line by providing:

  • Input CSV file
  • Weights vector
  • Impacts vector
  • Output file name
topsis data.csv "1,1,1,2" "+,-,-,+" result.csv

If vectors contain spaces, they must be enclosed within double quotes (" ").


Input Format

  • Input file must be in CSV format
  • First column contains alternatives (e.g., items, models, options)
  • Remaining columns contain numeric criteria values
  • Minimum of three columns required
  • No categorical values allowed in criteria columns

Example

Sample Input File (data.csv)

Fund Name,P1,P2,P3,P4
M1,0.67,0.45,6.5,42.6
M2,0.60,0.36,3.6,53.3
M3,0.82,0.67,3.8,63.1
M4,0.60,0.36,3.5,69.2
M5,0.76,0.58,4.8,43.0

Command

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

Output

The output CSV file contains:

  • Original input data
  • TOPSIS Score for each alternative
  • Rank based on TOPSIS score
    (Higher score indicates better rank)

Features

  • Command-line based execution
  • Supports user-defined weights and impacts
  • Input validation and error handling
  • Ranks alternatives using TOPSIS method
  • Generates results in CSV format

Notes

  • Number of weights must match number of criteria
  • Number of impacts must match number of criteria
  • Impacts must be either + or -
  • Input CSV must contain only numeric values (except first column)

License

MIT License


---

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_tanya_102303077-1.0.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

topsis_tanya_102303077-1.0.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file topsis_tanya_102303077-1.0.2.tar.gz.

File metadata

  • Download URL: topsis_tanya_102303077-1.0.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for topsis_tanya_102303077-1.0.2.tar.gz
Algorithm Hash digest
SHA256 cd6ab55df95bc620d99dbd5762154fa64cc91c1b11b78a74dea2138f7d0686a1
MD5 c7416ab7a0735159e272d5a0d2ca37f8
BLAKE2b-256 d05c3575a75f1dcf04943deacd24f30c4636492dd2c77705c6930c40ad932542

See more details on using hashes here.

File details

Details for the file topsis_tanya_102303077-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_tanya_102303077-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 63e1202ebef1ed2db3a57abddf19902e498ccd041c93b8d05ceb45bf8e03b82e
MD5 b72acd938c4a6e1fcb591c84729e0e11
BLAKE2b-256 331c00486e052012c6eba3c90f75f2c5075ee3f9ab2fde607f2cee2242775d0f

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