Name | topsis-chirag-102103278 JSON |
Version |
1.0.4
JSON |
| download |
home_page | |
Summary | A Python package to find TOPSIS for MCDM (Multi-Criteria Decision Analysis Method) |
upload_time | 2024-01-26 18:45:57 |
maintainer | |
docs_url | None |
author | Chirag Gupta |
requires_python | |
license | MIT |
keywords |
topsis
mcdm
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Topsis
TOPSIS( Technique for order for preference by similarity to Ideal solution ) for MCDM (Multiple criteria decision making) in Python compiled by Chirag Gupta, 102103278, TIET, Patiala.
## Installation
Use the package manager pip to install.
```
pip install topsis_chirag_102103278
```
## Usage
Enter csv filename followed by .csv extentsion, then enter the weights vector with vector values separated by commas, followed by the impacts vector with comma separated signs (+,-) and enter the output file name followed by .csv extension.
```topsis_chirag_102103278 [InputDataFile as .csv] [Weights as a string] [Impacts as a string] [ResultFileName as .csv]```
### Example
```topsis_chirag_102103278 sample.csv "1,1,1,1" "-,+,+,+" output.csv```
### Sample Input
| Fund | P1 | P2 | P3 | P4 | P5 |
| :---: | :---: | :---: | :---: | :---: | :---: |
| M1 | 0.72 | 0.52 | 7 | 56 | 16.06 |
| M2 | 0.83 | 0.69 | 3.7 | 37 | 10.56 |
| M3 | 0.81 | 0.66 | 4 | 30.4 | 8.97 |
| M4 | 0.77 | 0.59 | 3.6 | 44.1 | 12.27 |
| M5 | 0.82 | 0.67 | 7 | 34.6 | 10.77 |
| M6 | 0.72 | 0.52 | 3 | 58.5 | 15.69 |
| M7 | 0.85 | 0.72 | 4.2 | 50.5 | 14.07 |
| M8 | 0.64 | 0.41 | 3 | 38.5 | 10.64 |
### Sample Output
| Fund | P1 | P2 | P3 | P4 | P5 | TOPSIS Score | Rank |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| M1 | 0.72 | 0.52 | 7 | 56 | 16.06 | 0.6339125495800909 | 1 |
| M2 | 0.83 | 0.69 | 3.7 | 37 | 10.56 | 0.3751667010618832 | 6 |
| M3 | 0.81 | 0.66 | 4 | 30.4 | 8.97 | 0.4268895365063883 | 3 |
| M4 | 0.77 | 0.59 | 3.6 | 44.1 | 12.27 | 0.3631574031053784 | 8 |
| M5 | 0.82 | 0.67 | 7 | 34.6 | 10.77 | 0.6320591213396627 | 2 |
| M6 | 0.72 | 0.52 | 3 | 58.5 | 15.69 | 0.3687064767204701 | 7 |
| M7 | 0.85 | 0.72 | 4.2 | 50.5 | 14.07 | 0.3862956874804864 | 5 |
| M8 | 0.64 | 0.41 | 3 | 38.5 | 10.64 | 0.4069761888395339 | 4 |
## Please Note That
- The first column and first row are removed by the library before processing, in attempt to remove indices and headers. So the csv MUST follow the format as shown in sample.csv shown in the Example section.
- The input data file MUST contain three or more columns.
- The second to last columns of the data file MUST contain NUMERIC values.
- The number of weights, impacts and columns (second to last) MUST be SAME.
- Impacts MUST either be '+' or '-'.
- Impacts and Weights MUST be separated by , (comma).
## License
© 2024 Chirag Gupta
This repository is licensed under MIT License. See LICENSE for details.
Raw data
{
"_id": null,
"home_page": "",
"name": "topsis-chirag-102103278",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "TOPSIS,MCDM",
"author": "Chirag Gupta",
"author_email": "chirag1044gupta@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/a9/ec/bb6afc69296814c8bbf96e3e9b7c9a955e31a1407976da60f9a322818679/topsis_chirag_102103278-1.0.4.tar.gz",
"platform": null,
"description": "# Topsis\r\nTOPSIS( Technique for order for preference by similarity to Ideal solution ) for MCDM (Multiple criteria decision making) in Python compiled by Chirag Gupta, 102103278, TIET, Patiala. \r\n\r\n## Installation\r\nUse the package manager pip to install.\r\n```\r\npip install topsis_chirag_102103278\r\n```\r\n\r\n## Usage\r\nEnter csv filename followed by .csv extentsion, then enter the weights vector with vector values separated by commas, followed by the impacts vector with comma separated signs (+,-) and enter the output file name followed by .csv extension.\r\n\r\n```topsis_chirag_102103278 [InputDataFile as .csv] [Weights as a string] [Impacts as a string] [ResultFileName as .csv]```\r\n\r\n### Example\r\n```topsis_chirag_102103278 sample.csv \"1,1,1,1\" \"-,+,+,+\" output.csv```\r\n\r\n### Sample Input\r\n| Fund | P1 | P2\t| P3\t| P4\t| P5\t|\r\n| :---: | :---: | :---: | :---: | :---: | :---: |\r\n| M1\t| 0.72\t| 0.52\t| 7\t | 56\t| 16.06 |\r\n| M2\t| 0.83\t| 0.69\t| 3.7\t| 37\t| 10.56 |\r\n| M3\t| 0.81\t| 0.66\t| 4\t | 30.4\t| 8.97 | \r\n| M4\t| 0.77\t| 0.59\t| 3.6\t| 44.1\t| 12.27 |\r\n| M5\t| 0.82\t| 0.67\t| 7\t | 34.6\t| 10.77 |\r\n| M6\t| 0.72\t| 0.52\t| 3\t | 58.5\t| 15.69 |\r\n| M7\t| 0.85\t| 0.72\t| 4.2\t| 50.5\t| 14.07 |\r\n| M8\t| 0.64\t| 0.41\t| 3\t | 38.5\t| 10.64 |\r\n\r\n### Sample Output\r\n| Fund | P1 | P2\t| P3\t| P4\t| P5\t| TOPSIS Score | Rank |\r\n| :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |\r\n| M1\t| 0.72\t| 0.52\t| 7\t | 56\t| 16.06 | 0.6339125495800909 | 1 |\r\n| M2\t| 0.83\t| 0.69\t| 3.7\t| 37\t| 10.56 | 0.3751667010618832 | 6 |\r\n| M3\t| 0.81\t| 0.66\t| 4\t | 30.4\t| 8.97 | 0.4268895365063883 | 3 |\r\n| M4\t| 0.77\t| 0.59\t| 3.6\t| 44.1\t| 12.27 | 0.3631574031053784 | 8 |\r\n| M5\t| 0.82\t| 0.67\t| 7\t | 34.6\t| 10.77 | 0.6320591213396627 | 2 |\r\n| M6\t| 0.72\t| 0.52\t| 3\t | 58.5\t| 15.69 | 0.3687064767204701 |\t 7 |\r\n| M7\t| 0.85\t| 0.72\t| 4.2\t| 50.5\t| 14.07 | 0.3862956874804864 |\t 5 |\r\n| M8\t| 0.64\t| 0.41\t| 3\t | 38.5\t| 10.64 | 0.4069761888395339 | 4 |\r\n\r\n## Please Note That\r\n- The first column and first row are removed by the library before processing, in attempt to remove indices and headers. So the csv MUST follow the format as shown in sample.csv shown in the Example section.\r\n- The input data file MUST contain three or more columns.\r\n- The second to last columns of the data file MUST contain NUMERIC values.\r\n- The number of weights, impacts and columns (second to last) MUST be SAME.\r\n- Impacts MUST either be '+' or '-'.\r\n- Impacts and Weights MUST be separated by , (comma).\r\n\r\n## License\r\n\r\n\u00c2\u00a9 2024 Chirag Gupta\r\n\r\nThis repository is licensed under MIT License. See LICENSE for details.\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python package to find TOPSIS for MCDM (Multi-Criteria Decision Analysis Method)",
"version": "1.0.4",
"project_urls": null,
"split_keywords": [
"topsis",
"mcdm"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "eb93b960b21e8e9fa713c6492c7bbc134529f82581a19de3f2dbe86b121b08e4",
"md5": "4650f0188d8ac8442d2170425555526b",
"sha256": "e0e98fd8d25605cbc6c63277b7e5ed2a12408a4a7aacc2baaf833eda04768b5e"
},
"downloads": -1,
"filename": "topsis_chirag_102103278-1.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4650f0188d8ac8442d2170425555526b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5001,
"upload_time": "2024-01-26T18:45:54",
"upload_time_iso_8601": "2024-01-26T18:45:54.969377Z",
"url": "https://files.pythonhosted.org/packages/eb/93/b960b21e8e9fa713c6492c7bbc134529f82581a19de3f2dbe86b121b08e4/topsis_chirag_102103278-1.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a9ecbb6afc69296814c8bbf96e3e9b7c9a955e31a1407976da60f9a322818679",
"md5": "3e67ac0d723fc0412aac95c1a00976d9",
"sha256": "d09341f3d6e0b1be2c92bd51f6a30df4f74ea2278d587ab9f1e695564eb88936"
},
"downloads": -1,
"filename": "topsis_chirag_102103278-1.0.4.tar.gz",
"has_sig": false,
"md5_digest": "3e67ac0d723fc0412aac95c1a00976d9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4416,
"upload_time": "2024-01-26T18:45:57",
"upload_time_iso_8601": "2024-01-26T18:45:57.144484Z",
"url": "https://files.pythonhosted.org/packages/a9/ec/bb6afc69296814c8bbf96e3e9b7c9a955e31a1407976da60f9a322818679/topsis_chirag_102103278-1.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-26 18:45:57",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "topsis-chirag-102103278"
}