Skip to main content

A Python package to perform TOPSIS (Technique for Order Preference by Similarity to Ideal Solution)

Project description

topsis_ineshkumar_102203363

topsis_ineshkumar_102203363 is a Python package that implements the Technique for Order Preference by Similarity to Ideal Solution (TOPSIS) method for multi-criteria decision analysis.

Installation

You can install the package using pip:

pip install topsis_ineshkumar_102203363

Usage

Input File Format

The input CSV file should have the following structure:

  • The first column should contain the names of the models.
  • The subsequent columns should contain the criteria values for each alternative.
  • The first row should contain the headers for each column.

Example:

model Criteria 1 Criteria 2 Criteria 3
m1 260 16 18
m2 208 13 10
m3 310 15 11

Command-line Usage

After installation, you can use the topsis command in the terminal:

topsis <input_file> <weights> <impacts> <output_file>
  • <input_file>: Path to the input CSV file.
  • <weights>: Comma-separated string of weights for the criteria.
  • <impacts>: Comma-separated string of '+' or '-' indicating the desirability of the criteria.
  • <output_file>: Path to the output CSV file to save the results.

Example

topsis data.csv "0.4,0.3,0.23" "+,-,+" results.csv

This command will process the data.csv file using the specified weights and impacts and output the results to results.csv.

NOTE

  • Ensure that the input file has at least three columns: one for alternatives and at least two for criteria.
  • All criteria columns should contain numeric values.
  • The number of weights and impacts must match the number of criteria.
  • Impacts should only be '+' or '-'.

License

This project is licensed under the 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_ineshkumar_102203363-1.0.4.tar.gz (3.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_ineshkumar_102203363-1.0.4-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file topsis_ineshkumar_102203363-1.0.4.tar.gz.

File metadata

File hashes

Hashes for topsis_ineshkumar_102203363-1.0.4.tar.gz
Algorithm Hash digest
SHA256 7e72b1858fc14e681258aa9c6e8e3656284684088bf104e1774a85eb3506f217
MD5 f4071e219b827d930c3f8c628966daee
BLAKE2b-256 ca6c587c18dee81410e58e795f2b92d1c0c8f555321bd168c003cc41ddb5f920

See more details on using hashes here.

File details

Details for the file topsis_ineshkumar_102203363-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_ineshkumar_102203363-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ca25106956321e1e4f1a57b7bba8c19efb51a92fd9da88905de2fdec66bc50fb
MD5 4ab44ead6d185430d32a3b3e3809adcc
BLAKE2b-256 88b0640c348d8d97e34517fecf0018aed13be723276ad9d8c9622d11fb7f7573

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