{"id":17111670,"url":"https://github.com/jbytecode/fuzzyplayground","last_synced_at":"2026-03-18T23:25:53.629Z","repository":{"id":219237058,"uuid":"748529846","full_name":"jbytecode/FuzzyPlayground","owner":"jbytecode","description":"Fuzzy Playground / Sandbox","archived":false,"fork":false,"pushed_at":"2024-10-16T12:02:44.000Z","size":89,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-10T23:56:22.869Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jbytecode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-26T07:17:56.000Z","updated_at":"2024-10-16T12:02:48.000Z","dependencies_parsed_at":"2024-01-29T12:31:25.824Z","dependency_job_id":"65e72cda-24c0-4942-9d0a-2672266a61c0","html_url":"https://github.com/jbytecode/FuzzyPlayground","commit_stats":null,"previous_names":["jbytecode/fuzzyplayground"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jbytecode/FuzzyPlayground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbytecode%2FFuzzyPlayground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbytecode%2FFuzzyPlayground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbytecode%2FFuzzyPlayground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbytecode%2FFuzzyPlayground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbytecode","download_url":"https://codeload.github.com/jbytecode/FuzzyPlayground/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbytecode%2FFuzzyPlayground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29200843,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T16:28:23.579Z","status":"ssl_error","status_checked_at":"2026-02-07T16:28:22.566Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T16:56:51.979Z","updated_at":"2026-02-07T17:02:23.521Z","avatar_url":"https://github.com/jbytecode.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![codecov](https://codecov.io/gh/jbytecode/FuzzyPlayground/graph/badge.svg?token=HXKTKKOTI6)](https://codecov.io/gh/jbytecode/FuzzyPlayground)\n\n# FuzzyPlayground\nFuzzy Playground / Sandbox\n\n### Installing \n\n```julia\n(@v1.10) pkg\u003e add https://github.com/jbytecode/FuzzyPlayground.git\n```\n\nor \n\n```julia\njulia\u003e using Pkg\njulia\u003e Pkg.add(url = \"https://github.com/jbytecode/FuzzyPlayground.git\")\n```\n\n\n### Experimental Topsis\n\n```julia\n\n# Example with 2 alternatives and 4 criteria\n# Fuzzy numbers are in form of Triangular (a, b, c)\n# \n# Reference:\n# \n# Kore, N. B., Ravi, K., \u0026 Patil, S. B. (2017). A simplified description of fuzzy TOPSIS method for multi criteria decision making. International Research Journal of Engineering and Technology (IRJET), 4(5), 2047-2050.\n\ndecmat = [\n            Triangular(3, 5, 7) Triangular(7, 9, 9) Triangular(1, 4, 7) Triangular(3, 5, 7)\n            Triangular(5, 7, 9) Triangular(5, 8, 9) Triangular(1, 3, 5) Triangular(1, 3, 5)\n         ]\n\nw =     [\n            Triangular(3, 6, 9),\n            Triangular(5, 8, 9),\n            Triangular(5, 8, 9),\n            Triangular(1, 4, 7),\n        ]\n\nfns = [minimum, maximum, maximum, maximum]\n\nresult = fuzzytopsis(decmat, w, fns)\n```\n\n\n### Evaluating Fuzzy Numbers:\n\n```julia\njulia\u003e f = Trapezodial(1, 2, 3, 20)\nTrapezodial(1, 2, 3, 20)\n\njulia\u003e observe(f, 0)\n0.0\n\njulia\u003e observe(f, 2)\n1.0\n\njulia\u003e observe(f, 3)\n1.0\n\njulia\u003e observe(f, 4)\n0.9411764705882353\n\njulia\u003e observe(f, 6)\n0.8235294117647058\n\njulia\u003e observe(f, 14)\n0.35294117647058826\n```\n\n### Multiple Decision Makers \n\nDetermining the decision matrix\n\n```julia\n# Two decision makers\n# Two alternatives \n# Four criteria\ndm1 = [\n    Triangular(3,5,7) Triangular(7,9,9) Triangular(1,3,5) Triangular(3,5,7);\n    Triangular(5,7,9) Triangular(5,7,9) Triangular(1,3,5) Triangular(1,3,5)\n]\n\ndm2 = [\n    Triangular(3,5,7) Triangular(7,9,9) Triangular(3,5,7) Triangular(3,5,7);\n    Triangular(5,7,9) Triangular(7,9,9) Triangular(1,3,5) Triangular(1,3,5)\n]\n\ndecmat = fuzzydecmat([dm1, dm2])\n```\n\nDetermining the aggregate weight vector\n\n\n```julia\n# These are decision makers' weight vectors\n# There are 2 decision makers.\nweights = [\n    [\n        Triangular(5, 7, 9),\n        Triangular(7, 9, 9),\n        Triangular(7, 9, 9),\n        Triangular(3, 5, 7),\n    ],\n    [\n        Triangular(3, 5, 7),\n        Triangular(5, 7, 9),\n        Triangular(5, 7, 9),\n        Triangular(1, 3, 5),\n    ],\n]\n\nsummarizedweights = prepare_weights(weights)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbytecode%2Ffuzzyplayground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbytecode%2Ffuzzyplayground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbytecode%2Ffuzzyplayground/lists"}