{"id":37063295,"url":"https://github.com/igormcsouza/pymetaheuristics","last_synced_at":"2026-01-14T07:04:30.789Z","repository":{"id":43337104,"uuid":"372638532","full_name":"igormcsouza/pymetaheuristics","owner":"igormcsouza","description":"Combinatorial Optimization problems with quickly good solving.","archived":false,"fork":false,"pushed_at":"2022-03-07T13:51:43.000Z","size":62,"stargazers_count":2,"open_issues_count":8,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-27T08:40:20.800Z","etag":null,"topics":["metaheuristics","optmization","python","solver"],"latest_commit_sha":null,"homepage":"","language":"Python","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/igormcsouza.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}},"created_at":"2021-05-31T22:04:22.000Z","updated_at":"2022-12-05T17:25:45.000Z","dependencies_parsed_at":"2022-09-03T04:40:59.981Z","dependency_job_id":null,"html_url":"https://github.com/igormcsouza/pymetaheuristics","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/igormcsouza/pymetaheuristics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igormcsouza%2Fpymetaheuristics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igormcsouza%2Fpymetaheuristics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igormcsouza%2Fpymetaheuristics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igormcsouza%2Fpymetaheuristics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igormcsouza","download_url":"https://codeload.github.com/igormcsouza/pymetaheuristics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igormcsouza%2Fpymetaheuristics/sbom","scorecard":{"id":482750,"data":{"date":"2025-08-11","repo":{"name":"github.com/igormcsouza/pymetaheuristics","commit":"447dbaf13d6b55db0c7f998f314d0a09572887c8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/delivery.yml:1","Warn: no topLevel permission defined: .github/workflows/integration.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/delivery.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/igormcsouza/pymetaheuristics/delivery.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/integration.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/igormcsouza/pymetaheuristics/integration.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/integration.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/igormcsouza/pymetaheuristics/integration.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/integration.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/igormcsouza/pymetaheuristics/integration.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/delivery.yml:15","Warn: pipCommand not pinned by hash: .github/workflows/integration.yml:12","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 0.1.1 not signed: https://api.github.com/repos/igormcsouza/pymetaheuristics/releases/44152485","Warn: release artifact 0.1.0 not signed: https://api.github.com/repos/igormcsouza/pymetaheuristics/releases/44068092","Warn: release artifact 0.1.1 does not have provenance: https://api.github.com/repos/igormcsouza/pymetaheuristics/releases/44152485","Warn: release artifact 0.1.0 does not have provenance: https://api.github.com/repos/igormcsouza/pymetaheuristics/releases/44068092"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2022-42969"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T17:01:27.261Z","repository_id":43337104,"created_at":"2025-08-19T17:01:27.261Z","updated_at":"2025-08-19T17:01:27.261Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28412502,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["metaheuristics","optmization","python","solver"],"created_at":"2026-01-14T07:04:30.285Z","updated_at":"2026-01-14T07:04:30.780Z","avatar_url":"https://github.com/igormcsouza.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pymetaheuristics\n\nCombinatorial Optimization problems with quickly good soving.\n\n[![Continuous Integration](https://github.com/igormcsouza/pymetaheuristics/actions/workflows/integration.yml/badge.svg)](https://github.com/igormcsouza/pymetaheuristics/actions/workflows/integration.yml)\n[![Coverage Status](https://coveralls.io/repos/github/igormcsouza/pymetaheuristics/badge.svg?branch=master)](https://coveralls.io/github/igormcsouza/pymetaheuristics?branch=master)\n[![PyPI version](https://badge.fury.io/py/pymetaheuristics.svg)](https://badge.fury.io/py/pymetaheuristics)\n\n\n## Introduction\n\nPymetaheuristics is a package to help build and train Metaheuristics to solve\nreal world problems mathematically modeled. It strives to generalize the\noverall idea of the technic and delivers to the user a friendly wrapper so the\ncientist may focus on the problem modeling rather than the heuristic\nimplementation. This package is an open source project so feel free to send\nyour implementations and fixes so they may be helpful for others too.\n\n## Requires\n\nOnly need **Python\u003e=3.7**. For now, no additional packages will be used.\n\n## Subpackages\n\nThe idea is to implement all possible Metaheuristics found on the market today\nand some helper functions to improve what is already there.\n**Note: This package is under construction, new features will come up soon.**\n\nWhat Metaheuristics can be found on this project?\n\n1. Genetic Algorithm\n\n## How to use\n\nFirst install the package (available on pypi)\n```bash\n$ pip install pymetaheuristics\n```\n\nImport the algorithm model you want to use to solve you problem. Implement the\nneeded functions and pass to the model. Train and get the results.\n```python\nfrom pymetaheuristics.genetic_algorithm.model import GeneticAlgorithm\n\nmodel = GeneticAlgorithm(\n    fitness_function=fitness_function,\n    genome_generator=genome_generator\n)\n\nresult = model.train(\n    epochs=15, pop_size=10, crossover=pmx_single_point, verbose=True)\n```\n\nEvery module has its integration test, which I submit the model for testing\nwith very know NP-Hard problems today (Knapsack, tsp, ...). If you want to see\nhow it goes, check out the integrations under the model testing folder.\n\n## How to contribute\n\nYour code and help is very appreciate! Please, send your issue and pr's \nwhenever is good for you! If needed, send an \n[email](mailto:igormcsouza@gmail.com) to me I'll be very glad to help. Let's \nbuild up together.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figormcsouza%2Fpymetaheuristics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figormcsouza%2Fpymetaheuristics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figormcsouza%2Fpymetaheuristics/lists"}