Skip to main content

Package for creating penalty models.

Project description

warning:

penaltymodel is deprecated. For solving problems with constraints, we recommend using the hybrid solvers in the Leap :tm: service. You can find documentation for the hybrid solvers at https://docs.dwavequantum.com.

https://img.shields.io/pypi/v/penaltymodel.svg https://img.shields.io/pypi/pyversions/penaltymodel.svg https://codecov.io/gh/dwavesystems/penaltymodel/branch/master/graph/badge.svg https://circleci.com/gh/dwavesystems/penaltymodel.svg?style=svg

penaltymodel

One approach to solve a constraint satisfaction problem (CSP) using an Ising model or a QUBO, is to map each individual constraint in the CSP to a ‘small’ Ising model or QUBO. This mapping is called a penalty model.

For more information, see penalty models.

Installation

To install the core package:

pip install penaltymodel

License

Released under the Apache License 2.0

Contributing

Ocean’s contributing guide has guidelines for contributing to Ocean packages.

Release Notes

penaltymodel makes use of reno to manage its release notes.

When making a contribution to penaltymodel that will affect users, create a new release note file by running

reno new your-short-descriptor-here

You can then edit the file created under releasenotes/notes/. Remove any sections not relevant to your changes. Commit the file along with your changes.

See reno’s user guide for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

penaltymodel-1.3.0.tar.gz (32.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

penaltymodel-1.3.0-py3-none-any.whl (36.1 kB view details)

Uploaded Python 3

File details

Details for the file penaltymodel-1.3.0.tar.gz.

File metadata

  • Download URL: penaltymodel-1.3.0.tar.gz
  • Upload date:
  • Size: 32.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for penaltymodel-1.3.0.tar.gz
Algorithm Hash digest
SHA256 34af628916420218b16a8ceca608abbf8530b731fe05902392a3a3bceee395d0
MD5 5ae366c094344a85d1a809cac946d0fa
BLAKE2b-256 02f63af591b63fca93de731711f8c985e5b7f5ef97de28e334ffeec413c31c82

See more details on using hashes here.

File details

Details for the file penaltymodel-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: penaltymodel-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 36.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for penaltymodel-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 543f596a5c1fb602d18355c46349e8ccb2842b335de86958d7525de0d993eda9
MD5 7216f70c4ac9ded53030fc3b4f918e01
BLAKE2b-256 2a16501a538776abb83ef02243e937fb7b196a7377e49bb474798ca8bc5a58a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page