The QUBO formulation does not allow for any constraints. Nonetheless, many real world problems contain (in)equality constraints.
These constraints are included into the objective function by means of a penalty function [1]}.
A penalty function for a constraint should be zero when the constraint is met and positive otherwise.
