Skip to main content

TOPSIS CLI tool for multi-criteria decision making

Project description

Topsis-Lakshay-102303872

A Python package that implements TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) as a command-line tool.


Installation

Install the package from PyPI using pip:

pip install Topsis-Lakshay-102303872

Command Line Usage

After installation, the TOPSIS program can be executed using the topsis command.

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

Example

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

Input File Format

The input file must be a CSV file with:

  • First column containing alternative names (non-numeric)
  • Remaining columns containing numeric criteria values

Example data.csv:

Fund Name,P1,P2,P3,P4,P5
M1,0.67,0.45,6.5,42.6,12.56
M2,0.60,0.36,3.5,53.3,14.47
M3,0.82,0.67,3.8,63.1,17.10

Output File Format

The output CSV file contains all original columns along with:

  • Topsis Score
  • Rank

A higher Topsis Score indicates a better alternative.


Validations Performed

  • Correct number of command-line arguments
  • Input file existence check
  • Minimum of three columns in input file
  • Numeric values in criteria columns
  • Number of weights equals number of criteria
  • Number of impacts equals number of criteria
  • Impacts must be either + or -

Author

Lakshay
Roll Number: 102303872


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_lakshay_102303872-0.0.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

topsis_lakshay_102303872-0.0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file topsis_lakshay_102303872-0.0.1.tar.gz.

File metadata

File hashes

Hashes for topsis_lakshay_102303872-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5c4179b909d9e449151ecfa06310e370f191b8f68ca7d497a4c6403b1f8cbd38
MD5 43ae2e301032fdf5081333e8b5cc226c
BLAKE2b-256 9a08aee0458b970f9d76173097af0002eb8386e78d99be5840945a0440d956bc

See more details on using hashes here.

File details

Details for the file topsis_lakshay_102303872-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_lakshay_102303872-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 168bf00bcf8be644e622675dbc27183a6b7e272c9637b8d0da7e27c4cc316c53
MD5 4ddd8adcae9bfbf08246591c9b56964f
BLAKE2b-256 407fd2acf9ad291c76b05bd5ee68c27d58efa036e54600f21deed6201be825ad

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