Skip to main content

topsis package for decision making

Project description

Topsis

TOPSIS (Technique for Order of Preference by Similarity to Ideal Solution) is a decision-making method based on the concept that the best solution is the one closest to the positive-ideal solution and farthest from the negative-ideal one. The alternatives are ranked using an overall index calculated from the distances to the ideal solutions.

Function Parameters

The topsis function takes four arguments:

  1. Data.csv file: The input CSV file containing the data for decision-making.
  2. Weights: A string representing the weights for each criterion, separated by commas. For example, "1,1,1,1,1".
  3. Impacts: A string representing the impacts for each criterion, specified as either '+' or '-'. For example, "+,-,+,-,+".
  4. Result file: The name of the output file that will contain Topsis Score and Rank information.

How to Use

To use the Topsis package, follow these steps:

  1. Open your terminal.

  2. Type the following command to install the Topsis package:

    pip install Topsis-Vanshika-102103484
    
  3. To get started quickly, use the following Python code:

    from topis_pckg.topsis import topsis
    topsis('inputfilename','Weights','Impacts','Outputfilename')
    

    Make sure to replace 'inputfilename', 'Weights', 'Impacts', and 'Outputfilename' with your actual file names and values. Ensure that the weights and impacts are specified in double quotes, as shown in the example.

By following these steps, you can efficiently use the Topsis package to calculate scores and ranks based on your decision-making criteria.

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_Vanshika_102103484-0.0.1.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

Topsis_Vanshika_102103484-0.0.1-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page