Algorithm used to optimize the management of young bovine transfers between breeders and fatteners (batch creation and transfer distances). This tool has been developed within the Dynamo team, in charge of modeling the pathogen propagation in animal populations.