How to convert equality/inequality constraint to a BQM?
I need to submit a BQM to DWaveSampler. Since my problem has both objective and constraints, my understanding is that I need to add the latter as bqm to a composite BQM, which is then send to the solver (this can be done via bqm.update(contraint_n), where contraint_n is a dimod.binary.binary_quadratic_model.BinaryQuadraticModel).
My constraints are quite complicated and include many variables, how would you suggest to proceed in order to convert them to BQM?
Another possibility would be to use Pyqubo and use the .compile()_to_bqm method, but I could not find examples with complicated constraints and/or inequality constraints.
Thanks in advance,
Thank you in advance.