{"id":24084031,"url":"https://github.com/st1lson/geneticalgorithm","last_synced_at":"2026-06-09T13:31:37.557Z","repository":{"id":104824987,"uuid":"423895246","full_name":"st1lson/GeneticAlgorithm","owner":"st1lson","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-16T12:05:29.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-27T01:53:21.052Z","etag":null,"topics":["algorithm","csharp","genetic-algorithm","knapsack-problem"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/st1lson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-11-02T15:20:11.000Z","updated_at":"2024-04-17T22:54:40.000Z","dependencies_parsed_at":"2023-05-30T08:15:40.862Z","dependency_job_id":null,"html_url":"https://github.com/st1lson/GeneticAlgorithm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/st1lson/GeneticAlgorithm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st1lson%2FGeneticAlgorithm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st1lson%2FGeneticAlgorithm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st1lson%2FGeneticAlgorithm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st1lson%2FGeneticAlgorithm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/st1lson","download_url":"https://codeload.github.com/st1lson/GeneticAlgorithm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st1lson%2FGeneticAlgorithm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34110011,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["algorithm","csharp","genetic-algorithm","knapsack-problem"],"created_at":"2025-01-10T00:19:07.259Z","updated_at":"2026-06-09T13:31:37.550Z","avatar_url":"https://github.com/st1lson.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GeneticAlgorithm\n## Algorithm information\n\nAn algorithm based on biologically inspired operators such as mutation, crossover and selection.\n\u003cbr /\u003e [Wikipedia article](https://en.wikipedia.org/wiki/Genetic_algorithm) about Genetic algorithm.\n\n## config.json example\nHere we can easily and quickly configure algorithm limitations.\n\n``` json\n{\n  \"Path\": \"default.txt\",\n  \"IterationsCount\": 1000,\n  \"Separators\": [\n    \"with weight\",\n    \"and cost\"\n  ],\n  \"PossibleItems\": [\n    \"Item names...\"\n  ],\n  \"MaxWeight\": 500,\n  \"ItemsCount\": 100,\n  \"MinItemCost\": 2,\n  \"MaxItemCost\": 30,\n  \"MinItemWeight\": 1,\n  \"MaxItemWeight\": 20,\n  \"PopulationCount\": 100,\n  \"EvolutionChance\": 0.05,\n  \"CrossingoverChance\": 0.5\n}\n```\n\n## Source file example\nThe first line stands for items count. For example use `100`.\n\u003cbr /\u003eThen follows enumeration of the items in the following format `Item with weight x and cost y` where `x` and `y` integers.\n\n```\n100\nItem with weight x and cost y\nLaptop with weight 5 and cost 25\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fst1lson%2Fgeneticalgorithm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fst1lson%2Fgeneticalgorithm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fst1lson%2Fgeneticalgorithm/lists"}