A simulation model for managing perennial grass pastures. Part I—structure of the model