Skip to main content

The module, topis requires pandas, math and sys modules to function This module is used to print the score and rank after using TOPSIS (Technique for Order Preference based on Similarity to Ideal Solution)

Project description

Submitted by:
Name: Nimish Lakhmani
Roll No: 102017084
Group: 3CS4

Installation

Install this package in the system using pip command.

bash pip install Topsis-Nimish-102017084

Usage

  • Import the installed library using the following command.

bash import Topsis

You can import it using the first word coming before hypen (-) in library's name as shown above.

  • Enter the three parameters in three lines:
    • .csv filename, followed by .csv extension
    • values of weights, each separated by comma(,)
    • values of impacts, either '+' or '-', each separated by comma(,)

bash sample.csv 0.25,0.25,0.25,0.25 -,+,+,+

Example of input & output

Input:

  • sample.csv file, depicts the dataset of mobile phones having varying features.
Model Price (in $) Storage Space (in GB) Camera (in MP) Looks
M1 250 16 12 Excellent
M2 200 16 8 Average
M3 300 32 16 Good
M4 275 32 8 Good
M5 225 16 16 Below Average
  • weights = [0.25,0.25,0.25,0.25]
  • impacts = [-,+,+,+]

Output:

Model Price (in $) Storage Space (in GB) Camera (in MP) Looks Topsis Score Rank
M1 250 16 12 Excellent 0.526983 3
M2 200 16 8 Average 0.190599 5
M3 300 32 16 Good 0.809401 1
M4 275 32 8 Good 0.688168 2
M5 225 16 16 Below Average 0.422630 4

Important Points

  • The first column is not considered while solving the MCDM Problem. Make sure the csv file follows the format as shown in sample.csv.
  • Any column (from 2nd to last) containing categorical values is converted into numeric column .

License

MIT

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

Topsis_Nimish_102017084-1.0.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file Topsis_Nimish_102017084-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for Topsis_Nimish_102017084-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2dbfd6b0ebeef828e67c12e3e166c377af222ac59ebd2e7e5b71ce38496c71bb
MD5 118edf6b9edc692126af71ceefe9c4f3
BLAKE2b-256 faf82f81562e39ed1fc3058ab7146c8dc9d99ee8cb2c872a02879e37e25c9c37

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