A device and computer program product arranged to manage a group of dairy animals including individually recognizing each animal by an animal identification system, milking the animals to give actual milk yields for each animal, and feeding the animals with a predetermined individual ration, collecting data regarding the group of dairy animals, which data includes for each animal at least the actual milk yield and an amount of the individual ration consumed by the animal, wherein subsequent individual milk yields are estimated using a model on the basis of said data, and wherein, for one or more animals, at least one of the individual ration and the milking of individual dairy animals is adjusted in a regulatory step of the model using a precondition.