Add the sum of the number of ones.
Generate data associated to constraints.