Defining Models
Dynex SDK supports three model types, each suited to a different class of problems. All models wrap a dimod object and pass through toDynexSampler.
Model Selection Guide
BQM — Binary Quadratic Model
The most common model type. Represents an objective function over binary variables (0/1 or ±1).Using PyQUBO
Working with named variables
CQM — Constrained Quadratic Model
For problems where constraints are first-class: equality and inequality constraints are encoded directly without penalty terms.CQM is ideal when constraints cannot be easily penalized. The SDK handles constraint-to-QUBO conversion internally.