Design and evaluation of rule-based cropping systems