I have two vectors, one contains a series of integer values, the other contains a set of binary values.
Vector 1; integer values
Vector 2; binary values
In an integer programming formulation, how do I correctly represent the sum of the binary rows (which represent a value in Vector 1), where the Value in the binary vector is 1?
Example:
Vector 1:
2 4 5 2 5
7 3 1 2 3
Vector 2:
1 0 1 0 1
1 0 1 1 1
So the sum or row 1 in Vector 2 is 12, the sum of row 2 is 13. I need to represent this somehow but I'm not entirely sure how.