Modeling and Simulation for Decision Support in Precision Livestock Farming