A method for dispensing feed comprising: determining required daily energy andproteinintakes; providing a first dispensing unit configured to dispense a first feedtype having a firstprotein content and a first energy content; providing a second dispensing unitconfigured todispense a second feed type having a second protein content and a secondenergy content;determining a total amount of feed to be provided; selecting a first amount ofthe first feedtype and a second amount of the second feed type, the first and second amountstogetherforming the total amount of feed, the first and second amounts being selectedaccording to thefirst and second protein content and the first and second energy content ofthe first and secondtypes of feed such that the total amount of feed contains the daily energy andprotein intakes;and dispensing the selected first and second amounts of feed.