The dynamics of beef cattle production: model formulation, application and an example