Weaned individuals report
There are often important events in your simulation where you need to report details of the individuals affected. This example shows how to report details of each individual as it is weaned from it's mother.


You will need to add an APSIM Report component to your simulation. In future we may develop an automated version of this report.
This example assumes the Ruminant Herd is named "Ruminants".
Once this report is added you will need to assign the following settings.

[Clock].Today as Date
[Ruminants].ReportIndividual.Individual.ID as UId
[Ruminants].ReportIndividual.Individual.Breed as Breed
[Ruminants].ReportIndividual.Individual.HerdName as Herd
[Ruminants].ReportIndividual.Individual.Weight as Weight
[Ruminants].ReportIndividual.Individual.Age as Age
[Ruminants].ReportIndividual.Individual.Sex as Sex
[Ruminants].ReportIndividual.Category as Category
This report utilises the ReportIndividual property of the Ruminant herd that contains a Ruminant named "Individual" which you can access to report any property of a Ruminant. In this example we know that this Ruminant is the last individual to be weaned as this report fill be written immediately after the WeanOccurred event is fired by the Ruminant herd (see Event property below).
There are many other Ruminant properties that can be added as needed as additional lines.
The wean Category property reports the style of weaning the occurred (natural, by weight, by age, by weight and age) and is a property of the ReportIndividual component not the individual (Ruminant) as used for the individual based properties

[Ruminants].WeanOccurred

Run your simulation and the breeding details report will be in the datastore with the same name as given to the report
This report may produce a large table when simulating large herds over extended periods, so the report can be disabled when not needed.
See also