Skip to main content

Implementation of Topsis

Project description

TOPSIS Implementation in

This repository contains a Python implementation of the Technique for Order Preference by Similarity to Ideal Solution (TOPSIS). TOPSIS is a multi-criteria decision-making method that helps in ranking a set of alternatives based on their proximity to the ideal solution.

Usage To use this TOPSIS implementation, follow these steps:

1.Ensure you have Python installed on your system.

2.Clone this repository to your local machine:

    git clone https://github.com/cheshtabiala/Assignment-Topsis

3.Navigate to the project directory:

    cd your-repo

4.Run the TOPSIS script with the required command-line arguments:

    python topsis.py <InputDataFile> <Weights> <Impacts> <ResultFileName>
    Example:python topsis.py input_data.csv "1,1,1,2" "+,+,-,+" result.csv

5.The TOPSIS analysis will be performed, and the result will be saved to the specified CSV file.

Command-line Arguments:

: Path to the input CSV file containing the decision matrix.

: Comma-separated weights for each criterion.

: Comma-separated impact signs for each criterion (use '+' for beneficial criteria and '-' for non-beneficial criteria).

: Desired name for the output CSV result file.

    Example:python topsis.py input_data.csv "1,1,1,2" "+,+,-,+" result.csv

Requirements: Python 3.x pandas numpy

Author: Cheshta Biala

License: This project is licensed under the MIT License - see the LICENSE.md 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-CheshtaBiala-102103545-1.0.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

Topsis_CheshtaBiala_102103545-1.0.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file Topsis-CheshtaBiala-102103545-1.0.0.tar.gz.

File metadata

File hashes

Hashes for Topsis-CheshtaBiala-102103545-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b2b3e4ca2fc0a2de32d35302922085ad4f00ddb196d22485844e2551167bea47
MD5 1825efb662ef2ac2d2573bfa71717565
BLAKE2b-256 2a3582ca457f3aec9bff5505df8ced4403e4526d64d4bedfd8e48d0b4ba10249

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Topsis_CheshtaBiala_102103545-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 003a0552688c8c7516ec43fc9311cfbbca47672cca0893923c04d83569ffc466
MD5 2100657945de0754705959e7bb083149
BLAKE2b-256 8c111e370afc26c0ee16100f3459bbd3175ad392ab11f83ae502abfbb5b90474

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