Is there a way to use Linear and Mixed Integer Programming to create groups while Minimizing the Average within the group in R?
I have a list of animals with their parents, that is used to calculate the relationship between them.
I am using the Rsymphony
R package to generate matings where each Female (Dam
column) is crosses only once and each male (Sire
column) is crossed twice. See bellow an reproducible example.