Skip to main content

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

Project description

topsis_Bhavya_Jaiswal_1022203087

topsis_Bhavya_Jaiswal_1022203087 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_Bhavya_Jaiswal_1022203087

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 Criteria 4 Criteria 5 Criteria 6
A1 400 3.5 2500 80 7.2 150
A2 350 4.0 2600 85 6.8 170
A3 420 3.8 2550 78 7.5 160
A4 390 3.6 2480 82 7.0 155

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.2,0.1,0.3,0.15,0.15,0.1" "+,-,+,+,-,+" 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_bhavya_jaiswal_102203087-1.0.3.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file topsis_bhavya_jaiswal_102203087-1.0.3.tar.gz.

File metadata

File hashes

Hashes for topsis_bhavya_jaiswal_102203087-1.0.3.tar.gz
Algorithm Hash digest
SHA256 73c0a7b5ae1c70a615cb86f2baba165ac060b07ff9b337e849834fbff76ec00c
MD5 fcd3b011feabe45e5e8ec5c42d52ffdb
BLAKE2b-256 c55609c1be049d0c4a5ee13010ccf60d51d49fa959669e96b57a367d068e2fe5

See more details on using hashes here.

File details

Details for the file topsis_Bhavya_Jaiswal_102203087-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for topsis_Bhavya_Jaiswal_102203087-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dbb3d79cd38701b3e74669613caa62af862930e014d037f281e393255d94c7dd
MD5 d1f9e093941d631b6ebd4743b90bbcce
BLAKE2b-256 1193abed61d7e698793f98e3e4045422dace0756b9639bac22ef80960deeb615

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