Skip to main content
Ctrl+K
Python  documentation - Home

Site Navigation

  • Industrial Optimization
  • Quantum Research
  • Ocean SDK
  • Leap Service
  • Concepts
    • Licenses
    • Bibliography
  • GitHub
  • Leap
  • Leap

Site Navigation

  • Industrial Optimization
  • Quantum Research
  • Ocean SDK
  • Leap Service
  • Concepts
    • Licenses
    • Bibliography
  • GitHub
  • Leap
  • Leap

Section Navigation

  • Get Started with Ocean Software
  • Reference Documentation
    • dimod
      • API Reference
        • Models: BQM, CQM, QM, Others
        • Generators and Application Modeling
        • Utilities
        • Samples
        • Vartype
        • Samplers and Composites
        • API for Samplers and Composites
        • Variables
        • Exceptions
        • Typing
        • C++ API
    • dwavebinarycsp
    • dwave-cloud-client
    • dwave-gate
    • dwave-hybrid
    • dwave-inspector
    • dwave-networkx
    • dwave-optimization
    • dwave-preprocessing
    • dwave-samplers
    • dwave-system
    • minorminer
    • penaltymodel
  • CLI
  • Source Code
  • Ocean SDK Release Notes
  • Contribute
  • Ocean SDK
  • Models: BQM, CQM, QM, Others
  • dimod.Constr...

dimod.ConstrainedQuadraticModel.add_constraint#

ConstrainedQuadraticModel.add_constraint(data, *args, **kwargs) → Hashable[source]#

Add a constraint to the model.

This method dispatches to one of several specific methods based on the type of the first argument. For a detailed description of the accepted argument types, see add_constraint_from_model(), add_constraint_from_comparison(), and add_constraint_from_iterable().

On this page
  • ConstrainedQuadraticModel.add_constraint()
Show Source

© Copyright D-Wave.

Ocean SDK version 8.4.0.