penaltymodel#

Deprecated since version 1.3.0: penaltymodel is deprecated and will be removed in Ocean 10. For solving problems with constraints, we recommend using the hybrid solvers in the Leap service.

Reference documentation for penaltymodel:

About 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.

Usage Information#