dimod icon indicating copy to clipboard operation
dimod copied to clipboard

Add a CQM method to create a binary indicator variable for a threshold value of another variable

Open JoelPasvolsky opened this issue 4 years ago • 1 comments

Application Enable easy construction of binary indicator variables with values set by other problem variables; for example, True when an integer variable is above a threshold

Proposed Solution image

Additional Context See example in https://docs.ocean.dwavesys.com/en/stable/examples/hybrid_cqm_stock_selling.html

JoelPasvolsky avatar Nov 19 '21 18:11 JoelPasvolsky

Another use case is to use an indicator to enforce only one of the constraints. image https://github.com/dwave-examples/job-shop-scheduling-cqm

mhramani avatar Nov 19 '21 19:11 mhramani