{"id":32176126,"url":"https://github.com/dwavesystems/penaltymodel","last_synced_at":"2026-02-21T12:01:30.227Z","repository":{"id":27537973,"uuid":"109449503","full_name":"dwavesystems/penaltymodel","owner":"dwavesystems","description":"Utilities and interfaces for using penalty models.","archived":false,"fork":false,"pushed_at":"2025-08-26T16:26:42.000Z","size":731,"stargazers_count":19,"open_issues_count":6,"forks_count":21,"subscribers_count":7,"default_branch":"master","last_synced_at":"2026-02-19T07:12:33.548Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.ocean.dwavesys.com/projects/penaltymodel/en/latest","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dwavesystems.png","metadata":{"files":{"readme":"README.rst","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":"2017-11-03T22:50:38.000Z","updated_at":"2026-01-29T11:28:17.000Z","dependencies_parsed_at":"2024-06-18T22:48:59.708Z","dependency_job_id":"2260cb79-f251-41dd-826d-8a408bd450cb","html_url":"https://github.com/dwavesystems/penaltymodel","commit_stats":{"total_commits":598,"total_committers":13,"mean_commits":46.0,"dds":0.5652173913043479,"last_synced_commit":"02d671a1b3387c27caf1312fefc3a1ec297f019d"},"previous_names":[],"tags_count":80,"template":false,"template_full_name":null,"purl":"pkg:github/dwavesystems/penaltymodel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwavesystems%2Fpenaltymodel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwavesystems%2Fpenaltymodel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwavesystems%2Fpenaltymodel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwavesystems%2Fpenaltymodel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dwavesystems","download_url":"https://codeload.github.com/dwavesystems/penaltymodel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwavesystems%2Fpenaltymodel/sbom","scorecard":{"id":361136,"data":{"date":"2025-08-11","repo":{"name":"github.com/dwavesystems/penaltymodel","commit":"58c4824e7e2c28ef97bce324477890ba5711f675"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Code-Review","score":8,"reason":"Found 9/11 approved changesets -- score normalized to 8","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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"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":"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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: Apache License 2.0: 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":-1,"reason":"no releases found","details":null,"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":0,"reason":"11 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2018-34 / GHSA-2fc2-6r4j-p65h","Warn: Project is vulnerable to: PYSEC-2021-856 / GHSA-5545-2q6w-2gh6","Warn: Project is vulnerable to: PYSEC-2019-108 / GHSA-9fq2-x9r6-wfmf","Warn: Project is vulnerable to: PYSEC-2018-33 / GHSA-cw6w-4rcx-xphc","Warn: Project is vulnerable to: PYSEC-2021-857 / GHSA-f7c7-j99h-c22f","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm","Warn: Project is vulnerable to: PYSEC-2017-1 / GHSA-frgw-fgh6-9g52","Warn: Project is vulnerable to: PYSEC-2019-156 / GHSA-xp76-357g-9wqq","Warn: Project is vulnerable to: PYSEC-2023-102","Warn: Project is vulnerable to: PYSEC-2023-114","Warn: Project is vulnerable to: PYSEC-2022-238 / GHSA-h3qr-fjhm-jphw"],"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 28 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-18T10:53:06.728Z","repository_id":27537973,"created_at":"2025-08-18T10:53:06.728Z","updated_at":"2025-08-18T10:53:06.728Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29680147,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T11:29:27.227Z","status":"ssl_error","status_checked_at":"2026-02-21T11:29:20.292Z","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":[],"created_at":"2025-10-21T19:54:48.640Z","updated_at":"2026-02-21T12:01:30.215Z","avatar_url":"https://github.com/dwavesystems.png","language":"Python","funding_links":[],"categories":["Quantum annealing"],"sub_categories":[],"readme":":warning: *penaltymodel* is deprecated. For solving problems with constraints,\n    we recommend using the hybrid solvers in the Leap :tm: service. You can find\n    documentation for the hybrid solvers at https://docs.dwavequantum.com.\n\n.. image:: https://img.shields.io/pypi/v/penaltymodel.svg\n    :target: https://pypi.python.org/pypi/penaltymodel\n\n.. image:: https://img.shields.io/pypi/pyversions/penaltymodel.svg\n    :target: https://pypi.python.org/pypi/penaltymodel\n\n.. image:: https://codecov.io/gh/dwavesystems/penaltymodel/branch/master/graph/badge.svg\n    :target: https://codecov.io/gh/dwavesystems/penaltymodel\n\n.. image:: https://circleci.com/gh/dwavesystems/penaltymodel.svg?style=svg\n    :target: https://circleci.com/gh/dwavesystems/penaltymodel\n\n============\npenaltymodel\n============\n\n.. start_penaltymodel_about\n\nOne approach to solve a constraint satisfaction problem\n(`CSP \u003chttps://en.wikipedia.org/wiki/Constraint_satisfaction_problem\u003e`_) using\nan `Ising model \u003chttps://en.wikipedia.org/wiki/Ising_model\u003e`_ or a\n`QUBO \u003chttps://en.wikipedia.org/wiki/Quadratic_unconstrained_binary_optimization\u003e`_,\nis to map each individual constraint in the CSP to a 'small' Ising model or\nQUBO. This mapping is called a *penalty model*.\n\n.. end_penaltymodel_about\n\nFor more information, see\n`penalty models \u003chttps://docs.dwavequantum.com/en/latest/concepts/penalty.html\u003e`_.\n\nInstallation\n============\n\nTo install the core package:\n\n.. code-block:: bash\n\n    pip install penaltymodel\n\nLicense\n=======\n\nReleased under the Apache License 2.0\n\nContributing\n============\n\nOcean's\n`contributing guide \u003chttps://docs.dwavequantum.com/en/latest/ocean/contribute.html\u003e`_\nhas guidelines for contributing to Ocean packages.\n\nRelease Notes\n-------------\n\npenaltymodel makes use of `reno \u003chttps://docs.openstack.org/reno/\u003e`_ to manage\nits release notes.\n\nWhen making a contribution to penaltymodel that will affect users, create a new\nrelease note file by running\n\n.. code-block:: bash\n\n    reno new your-short-descriptor-here\n\nYou can then edit the file created under ``releasenotes/notes/``.\nRemove any sections not relevant to your changes.\nCommit the file along with your changes.\n\nSee reno's `user guide \u003chttps://docs.openstack.org/reno/latest/user/usage.html\u003e`_\nfor details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwavesystems%2Fpenaltymodel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdwavesystems%2Fpenaltymodel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwavesystems%2Fpenaltymodel/lists"}