Skip to main content

A Python package for TOPSIS method

Project description

Topsis-Sharv-102303341

A Python package to implement TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) method.

Installation

pip install Topsis-Sharv-102303341

Usage

Command Line

topsis <InputDataFile> <Weights> <Impacts> <ResultFileName>

Example:

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

Input File Format

The input file should be a CSV or Excel file where:

  • The first column contains the names/labels of the alternatives.
  • The remaining columns contain numeric values for the criteria.
Alternative C1 C2 C3 C4
M1 250 16 12 5
M2 200 16 8 3
M3 300 32 16 4

Arguments

  1. InputDataFile: Path to the input CSV or Excel file.
  2. Weights: Comma-separated weights for the criteria (e.g., "0.25,0.25,0.25,0.25").
  3. Impacts: Comma-separated impacts ('+' for beneficial, '-' for non-beneficial) (e.g., "+,+,+,-").
  4. ResultFileName: Path to save the output file (CSV).

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_sharv_102303341-1.0.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

topsis_sharv_102303341-1.0.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for topsis_sharv_102303341-1.0.0.tar.gz
Algorithm Hash digest
SHA256 60d5d2a0bbca1f8544fff0380584929fa79178ea53784560e36eeae51bd3b1c1
MD5 71d3bfb5b08ab99a9faf55c96e970201
BLAKE2b-256 04b1b674ea574c2d2354a144e1767d663248d75bbcf204df3e6c3839c11dc677

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for topsis_sharv_102303341-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2bf3d9e397a1ac627ae5dd3996362bb6efdca1180e9eb5fb29dbbf99cbea3c2b
MD5 159efe092058aefbbc36c55055b0e488
BLAKE2b-256 374806ec46b1497ed8b05e8f89bc1892351851abd76b98fa9c473eb21b2d204a

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