Topsis-Paras-102203836


NameTopsis-Paras-102203836 JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://github.com/ParasJain19/Topsis-PARAS-102203836
SummaryCalculate TOPSIS score and rank alternatives.
upload_time2025-01-17 20:42:58
maintainerNone
docs_urlNone
authorParas Jain
requires_pythonNone
licenseNone
keywords topsis ranking decision making mcdm
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # TOPSIS

This script calculates the **TOPSIS** (Technique for Order Preference by Similarity to Ideal Solution) score and ranks alternatives based on the provided decision matrix, weights, and impacts. It uses the weights and impacts to determine the ideal best and worst values, then calculates the distance of each alternative from these values to derive the final score and ranking.

## Installation

There are no external dependencies, but you need to have **Python** and **pandas** installed to run the script.

```pip install Topsis-Paras-102203836```

## How to use it?
### Step 1: Prepare the Data
The input data should be a CSV file containing the following columns:

The first column should contain the fund names.
The remaining columns should contain the criteria values for each alternative (row).

### Step 2: Run the Script
To run the script, use the following command in the terminal:

python <your-script-name>.py <input-file> <weights> <impacts> <output-file>
Example:
python topsis.py data.csv "1,1,1,2,1" "+,+,-,+,-" results.csv
Where:
<your-script-name>.py is the name of the script file (e.g., topsis.py).
<input-file> is your input CSV file (e.g., data.csv).
<weights> is a comma-separated string of weights for each criterion (e.g., "1,1,1,2,1").
<impacts> is a comma-separated string of impacts for each criterion (e.g., "+,+,-,+,-").
<output-file> is the file where the results will be saved (e.g., results.csv).

### Step 3: Output
The output will be a CSV file with the calculated TOPSIS scores and ranks for each alternative.
...

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ParasJain19/Topsis-PARAS-102203836",
    "name": "Topsis-Paras-102203836",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "Topsis, Ranking, Decision Making, MCDM",
    "author": "Paras Jain",
    "author_email": "pjain3_be22@thapar.edu",
    "download_url": "https://files.pythonhosted.org/packages/65/f3/e16ed7ea2463966b1e7b873cd8a941c63ba1859c36268211029ab6057de8/topsis_paras_102203836-1.0.2.tar.gz",
    "platform": null,
    "description": "# TOPSIS\r\n\r\nThis script calculates the **TOPSIS** (Technique for Order Preference by Similarity to Ideal Solution) score and ranks alternatives based on the provided decision matrix, weights, and impacts. It uses the weights and impacts to determine the ideal best and worst values, then calculates the distance of each alternative from these values to derive the final score and ranking.\r\n\r\n## Installation\r\n\r\nThere are no external dependencies, but you need to have **Python** and **pandas** installed to run the script.\r\n\r\n```pip install Topsis-Paras-102203836```\r\n\r\n## How to use it?\r\n### Step 1: Prepare the Data\r\nThe input data should be a CSV file containing the following columns:\r\n\r\nThe first column should contain the fund names.\r\nThe remaining columns should contain the criteria values for each alternative (row).\r\n\r\n### Step 2: Run the Script\r\nTo run the script, use the following command in the terminal:\r\n\r\npython <your-script-name>.py <input-file> <weights> <impacts> <output-file>\r\nExample:\r\npython topsis.py data.csv \"1,1,1,2,1\" \"+,+,-,+,-\" results.csv\r\nWhere:\r\n<your-script-name>.py is the name of the script file (e.g., topsis.py).\r\n<input-file> is your input CSV file (e.g., data.csv).\r\n<weights> is a comma-separated string of weights for each criterion (e.g., \"1,1,1,2,1\").\r\n<impacts> is a comma-separated string of impacts for each criterion (e.g., \"+,+,-,+,-\").\r\n<output-file> is the file where the results will be saved (e.g., results.csv).\r\n\r\n### Step 3: Output\r\nThe output will be a CSV file with the calculated TOPSIS scores and ranks for each alternative.\r\n...\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Calculate TOPSIS score and rank alternatives.",
    "version": "1.0.2",
    "project_urls": {
        "Download": "https://github.com/ParasJain19/Topsis-PARAS-102203836/archive/v1.0.0.tar.gz",
        "Homepage": "https://github.com/ParasJain19/Topsis-PARAS-102203836"
    },
    "split_keywords": [
        "topsis",
        " ranking",
        " decision making",
        " mcdm"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c067da8e6e9e580b9780ac17d33b2cb289c205a162d3524c2504308783f24be9",
                "md5": "7d3ee060d55b08193d14934ae169e012",
                "sha256": "3eaa2689717a64d51694309d1b4d5736aae723b803c983d66da2c926f267405a"
            },
            "downloads": -1,
            "filename": "Topsis_Paras_102203836-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7d3ee060d55b08193d14934ae169e012",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3854,
            "upload_time": "2025-01-17T20:42:56",
            "upload_time_iso_8601": "2025-01-17T20:42:56.018015Z",
            "url": "https://files.pythonhosted.org/packages/c0/67/da8e6e9e580b9780ac17d33b2cb289c205a162d3524c2504308783f24be9/Topsis_Paras_102203836-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "65f3e16ed7ea2463966b1e7b873cd8a941c63ba1859c36268211029ab6057de8",
                "md5": "a241c947bd808190654c3b046aafb078",
                "sha256": "d8fc465684e7dc9fd2c60320ed08de8c4e5c4f1b406a0645f066d11396ae6eec"
            },
            "downloads": -1,
            "filename": "topsis_paras_102203836-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "a241c947bd808190654c3b046aafb078",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3584,
            "upload_time": "2025-01-17T20:42:58",
            "upload_time_iso_8601": "2025-01-17T20:42:58.765158Z",
            "url": "https://files.pythonhosted.org/packages/65/f3/e16ed7ea2463966b1e7b873cd8a941c63ba1859c36268211029ab6057de8/topsis_paras_102203836-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-17 20:42:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ParasJain19",
    "github_project": "Topsis-PARAS-102203836",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "topsis-paras-102203836"
}
        
Elapsed time: 4.62513s