TIP: a Flexible Tool for Integrated Agriculture