Improving food production is now a difficult task because sustainable cropping depends upon many factors such as climate, pest management, land use and economics. Agronomists Craheix et al. provide guidelines to design software models that optimise the sustainability of farming systems.