Skip to main content

No project description provided

Project description

TOPSIS Package

This is a Python implementation of the TOPSIS (Technique for Order Preference by Similarity to Ideal Solution) method. It helps evaluate and rank alternatives based on multiple criteria.


Installation

Install the package using pip:

pip install Topsis-MedhaSharma-102217238

---

Verify Installation

After installation, verify it using:

pip show Topsis-MedhaSharma-102217238

This will show details about the installed package, including its version, dependencies, and other metadata.

Input File Requirements

File Format: The input file must be a .csv file.

Columns: The first column should contain the names of alternatives (e.g., M1, M2, M3). The remaining columns should contain numeric values for criteria.

Usage

After installation, you can run the program using the command line.

Syntax:

python -m topsis <input_file> <weights> <impacts> <result_file>

Example Command:

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

Output File

The output file will contain:

All columns from the input file. Two additional columns: Topsis Score: The calculated score for each alternative. Rank: The rank of each alternative (1 = best).

Detailed Steps for Beginners

Prepare Your Input File:

  1. Use a spreadsheet program (e.g., Excel) to create a .csv file.
  2. Ensure the first column has names, and the rest have numeric data.

Run the Command:

  1. Open the terminal in the directory where your input file is located.
  2. Run the TOPSIS command as explained above.

View the Results:

Open the output file (result.csv) in any spreadsheet program.

Common Issues

I don't have Python installed:

Download Python from python.org and install it.

I get a ModuleNotFoundError:

Ensure the package is installed using pip install.

I see unexpected results:

  1. Double-check the weights and impacts.
  2. Ensure all criteria values are numeric.

Project details


Release history Release notifications | RSS feed

This version

0.5

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

topsis_medhasharma_102217238_v02-0.5.tar.gz (3.1 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_medhasharma_102217238_v02-0.5.tar.gz.

File metadata

File hashes

Hashes for topsis_medhasharma_102217238_v02-0.5.tar.gz
Algorithm Hash digest
SHA256 1a508dc1a67c34dcce5ab6f33e5c85f31721f4562fa9fee41f9d7eb87953800e
MD5 c6a6771119d7e55714657791542e2745
BLAKE2b-256 04c14f15c2bbe448b5db10cc27e5fc68db1acd450f36be5620e468316d4b799a

See more details on using hashes here.

File details

Details for the file Topsis_MedhaSharma_102217238_v02-0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_MedhaSharma_102217238_v02-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b26d3e9ccaf3f531ae61c87326e1d04daf64748190c8cb0421b5c8be5b7bf0e0
MD5 524f0bb4a393f72634267b225243726b
BLAKE2b-256 6a768272b9951f1f0e7880ccc607cada11b516a20bce297ca6868e0b4a53c808

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