Mathematical programming models for farm planning