Application of Mathematical Programming to a Large-scale Agricultural Production and Distribution System