{"id":21954088,"url":"https://github.com/goessl/evolution","last_synced_at":"2025-10-15T04:19:22.589Z","repository":{"id":177888501,"uuid":"207770435","full_name":"goessl/Evolution","owner":"goessl","description":"Evolutionary optimization package.","archived":false,"fork":false,"pushed_at":"2019-09-11T10:40:57.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-10T02:41:03.544Z","etag":null,"topics":["evolution","evolutionary","evolutionary-algorithm","fitness","genetic-algorithm","java","mutation"],"latest_commit_sha":null,"homepage":null,"language":"Java","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/goessl.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":"2019-09-11T09:08:57.000Z","updated_at":"2019-09-11T10:40:59.000Z","dependencies_parsed_at":"2023-07-10T20:45:19.840Z","dependency_job_id":null,"html_url":"https://github.com/goessl/Evolution","commit_stats":null,"previous_names":["goessl/evolution"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/goessl/Evolution","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goessl%2FEvolution","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goessl%2FEvolution/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goessl%2FEvolution/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goessl%2FEvolution/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goessl","download_url":"https://codeload.github.com/goessl/Evolution/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goessl%2FEvolution/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279049730,"owners_count":26093336,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"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":["evolution","evolutionary","evolutionary-algorithm","fitness","genetic-algorithm","java","mutation"],"created_at":"2024-11-29T07:15:27.903Z","updated_at":"2025-10-15T04:19:22.561Z","avatar_url":"https://github.com/goessl.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Evolution\n\nPackage used for evolutionary optimization.\n\n## Usage\n\nThe object that should be optimized has to implement the Creature interface.\nThe interface includes teo methods, getFitness \u0026 evolve.\ngetFitness returns the fitness of the creature, that is a measurement of how\nwell a creature performes with it's specific genes.\nevolve takes a mutation factor as argument and returns a newborn offspring.\nThe offspring gene's difference to the parent gene's is proportional to the\nmutation factor.\n\nFor the optimization a Evolution is needed. It's construction needs an initial\ngeneration of creatures. This pool of creatures should have random genes that\nare still in proximity of the expected values.\nThen, by calling evolve the weaker half of creature gets replaced by the\nfitter half's offsprings by calling their evolve method with the given\nmutation factor.\nThis step is repeated many times with a decreasing mutation factor until the\nfittest creature's is within the wanted fitness.\n\nThe class NumberCreature is an example creature with a main method that shows\nthe usage of this package.\n\n## Getting Started\n\nSimply download this repository and add it to your project as a new package!\nDone!\n\n## TODO\n\n - [ ] Automatic mutation factor\n - [ ] Gene combining reproduction\n - [x] Documentation\n\n## License (MIT)\n\nMIT License\n\nCopyright (c) 2019 Sebastian Gössl\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoessl%2Fevolution","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoessl%2Fevolution","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoessl%2Fevolution/lists"}